Click on the switch in the simulator, it is equivalent to the real to the PC through the control line to connect the real switch
Since I want to telnet to the switch to the session, because Telnet work in the TCP/IP model to the application layer, since to let the application layer to communicate to the words, I first want to ensure that the network layer communication, since to ensure network layer communication, that is, with ping to test, it is necessary to match the IP address first
First configure the PC IP address (192.168.1.1/24), and then to the switch to configure the IP address, because the switch is a Layer two switch, its upper to the port is also a layer two port, it does not recognize the IP bar, but as a two-tier switch, the default has a VLAN1, and all to the port by default in the VLAN 1 inside, as VLAN 1 has two concepts, the first concept in the two layer is an admin domain, and the other three layer is a virtual to three layer interface, so the IP is equipped with VLAN 1 to the interface; method Interface Vlan1
IP address 192.168.1.2 255.255.255.0
Ping 192.168.1.2 on PC If you can ping the network layer, link layer, physical layer can communicate
Next start running us to telnet,telnet it is the application layer to the Protocol, it can also be regarded as a service, as a service has a server and client, to run Telnet, first on the server to Telnet configuration OK, the Telnet server is the switch end, configuration method
SW (config) #line vty 0 4 (vty is the Telnet line, enter 0 to 4 to 5 lines below)
SW (config-line) #password 123 Configure the password under these 5 lines
SW (Config-line) #login when the other side telnet through No. 0 line or 1th line or 4th line, I switch to perform password detection.
On the PC side of the Telnet 192.168.1.2 will pop up to your user input password, when you enter 123, you can enter the switch to user mode (user mode is > mode), but in user mode can not configure the switch, To enter administrator mode, you can configure the switch by
SW (config) #enable password 456 switch from user mode to admin mode on switch local to password is 456
The PC performs Telnet 192.168.1.2, through the input line below to 123 password into the switch to user mode, at this time in the input enable, enter the Enable password 456 can be remote into the switch to the administrator mode
The most popular Telnet