How to realize remote control of network equipment
First, take a look at how the device is managed:
Local management-managed through the console port, no password is required by default
Remote administration-managed through the vty port; password is required by default
Console line (reverse line):
Crystal head-RS232-> usb-> RS232
Crystal head-USB
Location of the console port:
Equipment front panel
Device rear panel
Note:
The port will be clearly marked-console
Prerequisite for remote control of the switch:
1. Set the IP address (IP on PC and IP on the switch)
Select the third picture to configure the switch.
Switch > enable enters privileged mode
Switch#config terminal enters global configuration mode
Switch (config) # no ipdomain lookup turns off the domain name query function
Switch (config) # interface vlan 1 enters the virtual port
Switch (config-if) # ip address 192.168.1.2 255.255.255.0 configure IP address
Switch (config-if) # no shutdown Open Port
Note:
Because the switch port cannot be configured with IP, open the virtual port.
2. Make sure that the host and the device are on the same network segment. IP of PC's IP:192.168.1.1; switch: 192.168.1.2
3. Close the login on vty, or set the password on vty
Switch (config) # line vty 0 4
Switch (config-line) # no login shuts down the login protocol on vty
Or
SW1 (config-line) # password "password" set password on vty
4. Set the password for user mode to enter privileged mode
SW1 (config) # enable secret "password" sets the ciphertext password
5. Configure privileged password:
Password required when entering privileged mode through user mode
Command:
Switch > enable
Switch#configure terminal
Switch (config) # enable password 123456 (the configured password exists in the configuration file in clear text)
Switch (config) # enable secret 123456 (configured password is stored in ciphertext and configuration file)
When both modes exist at the same time, secret has a high priority.
Verification method:
1. Switch# show running-config (view the running configuration file)
2. Switch# disable (exit from privileged mode to user mode)
Switch > enable (from user mode to privileged mode)
After the above steps are completed, unplug the console cable and plug in the network cable.
Remote access Protocol:
Enter telnet 192.168.1.2 on the PC side