Accessing the CLI via PuTTY with a Console Connection
Step 1. Connect the switch to the computer using a standard 9-pin serial cable.
The Cisco DB9 to RJ45 Console Cable also supports console connections, but only if the switch has an RJ45 Console port. An RJ45 Console port resembles an Ethernet port and is labeled CONSOLE on the back of the switch.
Newer laptops don’t have Serial ports on them, so in this case you have to use a USB to Serial adapter. When plugging that into a computer it assigns a COM port number to it that is not COM1. If this is the case for you, you need to know where to look to find the correct COM port number when setting up the connection with PuTTY. Right-click on the Windows logo/Start menu and click on Device Manager to open it.
In the Device Manager, you would look to see what COM port is given to the USB adapter. In this case you would need to use COM4 for the Serial line to make the connection.
Step 2. Open the PuTTY application. The PuTTY Configuration window opens:
Step 3. Under the Connection Type field, click the Serial radio button.
Step 4. In the Category navigation field, choose Serial.
The Options controlling local serial lines page opens:
Step 5. In the Serial line to connect to field, enter the COM port that your device is connected to. The default COM port is COM1.
Step 6. In the Speed (baud) field, enter the digital transmission speed that is compatible with the switch. For 300 and 500 Series Managed Switches, the speed must be set to 115200.
Step 7. In the Data bits field, enter the number of data bits used for each character. The recommended value is 8.
Step 8. In the Stop bits field, enter the number of bits to be sent at the end of every character. The stop bit informs the machine that it has reached the end of a byte. The recommended value is 1.
Step 9. In the Parity drop-down menu, select the method of detecting errors in transmission. The recommended method for detecting errors in transmission is None.
Step 10. In the Flow Control drop-down menu, select the method of preventing data overflow. The recommended method for preventing data overflow is None.
Step 11. (Optional) In order to save the connection settings for future use, go to the Category navigation pane and choose Session. If you do not wish to save the connection settings, skip to Step 14.
Step 12. Under the Saves Sessions field, enter a name for the settings to be saved as.
Step 13. Click Save.
Step 14. Click Open.
The COM1 – PuTTY console window opens.
Step 15. Hit Enter on the keyboard to activate the Command Line Interface (CLI). The log in prompt is displayed:
Step 16. Enter the User Name. The default username is cisco.
Step 14. Enter the Password. The default password is cisco.
reference
https://www.cisco.com/c/en/us/support/docs/smb/switches/cisco-small-business-300-series-managed-switches/smb4984-access-the-cli-via-putty-using-a-console-connection-on-300-a.html
CLIλ₯Ό μ¬μ©νμ¬ μ€μμΉμμ IP μ£Όμ μ€μ ꡬμ±
CLIλ₯Ό ν΅ν΄ μ€μμΉμ IP μ£Όμ ꡬμ±
μ€μ: μ€μμΉκ° λκΈ° μ€μμΉκ° μλ μ€ννΉ λͺ¨λ μ€ νλμ μλ κ²½μ° μ€ννΉ νμ± μ ν μ€μ λ€νΈμν¬μμ μ°κ²°μ λμ§ μλλ‘ κ³ μ IP μ£Όμλ₯Ό ꡬμ±νλ κ²μ΄ μ’μ΅λλ€. μ€ν λ°μ΄ μ€μμΉκ° μ€νμ μ μ΄ν λ DHCPλ₯Ό μ¬μ©ν λ μ€νμ μλ μ‘ν°λΈ-μ§μ μ λμμ λ°μ κ²κ³Ό λ€λ₯Έ IP μ£Όμλ₯Ό λ°μ μ μκΈ° λλ¬Έμ λλ€.
κ³ μ IP μ£Όμ ꡬμ±
μ΄ μλ리μ€μμλ DHCP μλ²μ κ°μ©μ± μμ΄ μ€μμΉκ° μ€μ λ©λλ€. μ€μμΉμμ κ³ μ IP μ£Όμλ₯Ό ꡬμ±νλ €λ©΄ λ€μ λ¨κ³λ₯Ό μνν©λλ€.
1λ¨κ³. μ§λ ¬ μΌμ΄λΈμ μ¬μ©νμ¬ μ»΄ν¨ν°λ₯Ό μ€μμΉμ μ§μ μ°κ²°ν©λλ€.
μ€μμΉμ SSHλ₯Ό μΆκ°νλ €λ κ²½μ° μ¬κΈ°λ₯Ό ν΄λ¦νμ¬ μ€μμΉμ λν CLI μ‘μΈμ€ κΆν λΆμ¬μ λν λ¬Έμλ₯Ό νμΈνμμμ€.
2λ¨κ³. μ€μμΉ μ½μμ λ‘κ·ΈμΈν©λλ€. κΈ°λ³Έ μ¬μ©μ μ΄λ¦ λ° λΉλ°λ²νΈλ cisco/ciscoμ λλ€. μ μ¬μ©μ μ΄λ¦ λλ λΉλ°λ²νΈλ₯Ό ꡬμ±ν κ²½μ° λμ μ격 μ¦λͺ μ μ λ ₯ν©λλ€.

3λ¨κ³. μ€μμΉμ Privileged EXEC λͺ¨λμμ λ€μμ μ λ ₯νμ¬ Global Configuration λͺ¨λλ‘ λ€μ΄κ°λλ€.
SG350X#configure4λ¨κ³. Global Configuration λͺ¨λμμ λ€μμ μ λ ₯νμ¬ μΈν°νμ΄μ€ 컨ν μ€νΈλ₯Ό μ λ ₯ν©λλ€.
SG350X(config)#interface [interface-id | vlan-id
5λ¨κ³. λ€μ μ€ νλλ₯Ό μ λ ₯νμ¬ μΈν°νμ΄μ€μ IP μ£Όμλ₯Ό μ μνλ €λ©΄ IP μ£Όμ μΈν°νμ΄μ€ 컨νΌκ·Έλ μ΄μ λͺ λ Ήμ μ λ ₯ν©λλ€.
- ip μ£Όμ [ip-address] {{mask | prefix-length}}— reload λͺ λ Ήμ μ¬μ©νμ¬ μ€μμΉλ₯Ό μ¦μ λ€μ λ‘λν©λλ€.
- ip μ£Όμ [ip-address] {{mask | prefix-length}} [default-gateway-ip-address] — {{hh:mm λ€μ λ‘λλ₯Ό μ¬μ©ν©λλ€. | mm | at hh:mm [day month]} λͺ λ Ήμ μ¬μ©νμ¬ μμ½λ μ€μμΉ λ€μ λ‘λλ₯Ό μ§μ ν©λλ€.
μ΅μ μ λ€μκ³Ό κ°μ΅λλ€.
- ip address — IP μ£Όμλ₯Ό μ§μ ν©λλ€.
- mask — IP μ£Όμμ λ€νΈμν¬ λ§μ€ν¬λ₯Ό μ§μ ν©λλ€.
- prefix-length — IP μ£Όμ μ λμ¬λ₯Ό ꡬμ±νλ λΉνΈ μλ₯Ό μ§μ ν©λλ€. μ λμ¬ κΈΈμ΄ μμλ μ¬λμ(/)κ° μμΌ ν©λλ€. λ²μλ 8~30μ λλ€.
6λ¨κ³. (μ ν μ¬ν) μΈν°νμ΄μ€μμ IP μ£Όμλ₯Ό μ κ±°νλ €λ©΄ λ€μμ μ λ ₯νμ¬ no νμμ IP address λͺ λ Ήμ μ¬μ©ν©λλ€.
SG350X(config-if)#no ip address7λ¨κ³. end λͺ λ Ήμ μ λ ₯νμ¬ μ€μμΉμ Privileged EXEC λͺ¨λλ‘ λμκ°λλ€.
SG350X(config-if)#end
8λ¨κ³. (μ ν μ¬ν) μΈν°νμ΄μ€μ IP μ£Όμ 컨νΌκ·Έλ μ΄μ λ° μ 보λ₯Ό νμνλ €λ©΄ Privileged EXEC λͺ¨λμμ λ€μ λͺ λ Ήμ μ λ ₯ν©λλ€.
SG350X#show ip interface
9λ¨κ³. (μ ν μ¬ν) ꡬμ±λ μ€μ μ μμ κ΅¬μ± νμΌμ μ μ₯νλ €λ©΄ λ€μμ μ λ ₯ν©λλ€.
SG350X#copy running-config startup-config
10λ¨κ³. (μ ν μ¬ν) Overwrite file [startup-config]... ν둬ννΈκ° λνλλ©΄ ν€λ³΄λμμ Yes λλ Nμ Noλ‘ λλ¦ λλ€.

μ΄μ μ€μμΉμ κ³ μ IP μ£Όμ μ€μ μ ꡬμ±νμ΄μΌ ν©λλ€.
DHCPλ₯Ό ν΅ν΄ IP μ£Όμ ꡬμ±
μ΄ μλ리μ€μμλ μ€μμΉκ° νμ± DHCP μλ² μν μ νλ λΌμ°ν°μ μ°κ²°λ©λλ€. DHCPλ₯Ό ν΅ν΄ μ€μμΉμ IP μ£Όμλ₯Ό ꡬμ±νλ €λ©΄ λ€μ λ¨κ³λ₯Ό μνν©λλ€.
1λ¨κ³. μ§λ ¬ μΌμ΄λΈμ μ¬μ©νμ¬ μ»΄ν¨ν°λ₯Ό μ€μμΉμ μ§μ μ°κ²°ν©λλ€.
2λ¨κ³. μ€μμΉ μ½μμ λ‘κ·ΈμΈν©λλ€. κΈ°λ³Έ μ¬μ©μ μ΄λ¦ λ° λΉλ°λ²νΈλ cisco/ciscoμ λλ€. μ μ¬μ©μ μ΄λ¦ λλ λΉλ°λ²νΈλ₯Ό ꡬμ±ν κ²½μ° λμ μ격 μ¦λͺ μ μ λ ₯ν©λλ€.

3λ¨κ³. μ€μμΉμ Privileged EXEC λͺ¨λμμ λ€μμ μ λ ₯νμ¬ Global Configuration λͺ¨λλ‘ λ€μ΄κ°λλ€.
SG350X#configure4λ¨κ³. Global Configuration λͺ¨λμμ λ€μμ μ λ ₯νμ¬ μΈν°νμ΄μ€ 컨ν μ€νΈλ₯Ό μ λ ₯ν©λλ€.
SG350X(config)#interface [interface id | vlan-id]
5λ¨κ³. μΈν°νμ΄μ€ 컨ν μ€νΈμμ λ€μμ μ λ ₯νμ¬ DHCP μλ²μμ IP μ£Όμλ₯Ό μ»μ΅λλ€.
SG350X(config-if)#interface [interface id | vlan-id]μ§μ λ μΈν°νμ΄μ€μ λλ°μ΄μ€κ° ꡬμ±λμλ€λ μλ¦Όμ΄ νμλ©λλ€.

6λ¨κ³. (μ ν μ¬ν) μΈν°νμ΄μ€μμ IP μ£Όμλ₯Ό μ κ±°νλ €λ©΄ λ€μμ μ λ ₯νμ¬ IP μ£Όμ DHCP λͺ λ Ήμ no νμμ μ¬μ©ν©λλ€.
SG350X(config-if)#no ip address dhcp7λ¨κ³. end λͺ λ Ήμ μ λ ₯νμ¬ μ€μμΉμ Privileged EXEC λͺ¨λλ‘ λμκ°λλ€.
SG350X(config-if)#end8λ¨κ³. (μ ν μ¬ν) μΈν°νμ΄μ€μ IP μ£Όμ 컨νΌκ·Έλ μ΄μ λ° μ 보λ₯Ό νμνλ €λ©΄ Privileged EXEC λͺ¨λμμ λ€μ λͺ λ Ήμ μ λ ₯ν©λλ€.
SG350X#show ip interface
9λ¨κ³. (μ ν μ¬ν) DHCP ν΄λΌμ΄μΈνΈ μΈν°νμ΄μ€μ IP μ£Όμ 컨νΌκ·Έλ μ΄μ λ° μ 보λ₯Ό νμνλ €λ©΄ νΉκΆ EXEC λͺ¨λμμ λ€μ λͺ λ Ήμ μ λ ₯ν©λλ€.
SG350X#show ip dhcp client interface
10λ¨κ³(μ ν μ¬ν) ꡬμ±λ μ€μ μ μμ κ΅¬μ± νμΌμ μ μ₯νλ €λ©΄ λ€μμ μ λ ₯ν©λλ€.
SG350X#copy running-config startup-config
11λ¨κ³. (μ ν μ¬ν) Overwrite file [startup-config]... ν둬ννΈκ° λνλλ©΄ ν€λ³΄λμμ Yes λλ Nμ Noλ‘ λλ¦ λλ€.

μ΄μ μ€μμΉμμ DHCP IP μ£Όμ μ€μ μ ꡬμ±νμ΄μΌ ν©λλ€.
reference
https://www.cisco.com/c/ko_kr/support/docs/smb/switches/cisco-350-series-managed-switches/smb5557-configure-the-internet-protocol-ip-address-settings-on-a-swi.html





















Comments
Post a Comment