First, experimental purpose: To complete the initialization of a switch configuration, and can be logged on with telnet
Second, the topology diagram is as follows:
Third, the experimental steps
1. Create a switch (S1) and a host (PC1)
2. Set the IP address to the PC1 host First:
3,S1 configuration:
Enter the S1 command line interface
switch>enable --Entering privileged mode
Switch#configure Terminal --Enter global configuration mode
switch (config) #hostname S1 --Modify switch host name S1(easy to identify)
S1 (config) #enable password 111 --Set plaintext admin password to 111
S1 (config) #enable secret 222 --Set the encryption password to 222(the plaintext will not work after the encryption password is set)
S1 (config) #line vty 0 5 --Set the number of virtual terminals (typically 5 , up to three)
S1 (config-line) #password 333 --Set the Telnet password to 333
S1 (config-line) #login --login password must be configured after login , if not, remote login password is invalid
S1 (config-line) #exit --return to the previous level (global configuration mode)
S1 (config) #interface vlan 1 --Enter VLAN 1 Port
S1 (config-if) #ip address 192.168.1.1 255.255.255.0 --Configure the vlan1 with an IP address so PC1 and S1 can ping interoperability
S1 (config-if) #no shutdown --activating VLAN 1 Port
S1 (config-if) #end --Return to privileged mode
s1#copy running-config startup-config --Save configuration (from memory RAM to hard disk NVRAM)
s1#show running-config --View switch configuration
4. Go to PC1 host command line interface
(1) First check whether interoperability:
# ping 192.168.1.1
(2)telnet Login
# telnet 192.168.1.1 --telnet telnet S1 switch
Password 333 --Enter password
#S1 --Log in successfully
Cisco (Cisco)-Switch initialization configuration