Specifically, refer to the following command:
1 Local operation
(1) Set password for privileged mode
switch>enable//Entering privileged mode
Switch#configure Terminal//Enter configuration mode
Switch (config) #enable password 123456//set Privileged mode password
(2) Enable Vlan1 and configure IP address
Switch (config) #interface vlan 1//Enter VLAN1
Switch (CONFIG-IF) #no shutdown//Open Vlan1
Switch (config-if) #ip address 192.168.1.100 255.225.255.0//Configure IP address for VALN1
(3) Set the password for vty (virtual line)
Switch (config) #line vty 0 4//Enter VTY0--4 interface
Switch (config-line) #password 456789//Set Password
2 Remote Control
Pc>telnet 192.168.1.100
Password 456789 (enter password for vty)
switch>en
Password 123456 (enter privileged mode password)
switch#-------Remote control allows remote control of the switch at the PC terminal
How Cisco switches implement remote control