The basic configuration commands are as follows:
1, switch & gt enabled? Enter privileged mode
2. Switch # configuration terminal? Enter global configuration mode
3. Switch (Configuration) # Hostname? Set the hostname of the switch.
4. Switch (Configuration) # Enable Password? Password to enter privileged mode (saved in clear text)
5、Switch(config)#enablesecret? Encrypted password (stored in encrypted form) (preferred)
6. Switch (configuration) #ipdefault-gateway? Configure the switch gateway
7. Switch (configuration) #showmac-address-table? View MAC address
8. Switch (configuration) log synchronization? Prevents console information from overwriting input on the command line.
9. Does the switch (configuration) have no IP domain lookup? Turn off DNS lookup.
10, switch (configuration) execution timeout 00? Block session exit
Extended data:
Cisco General Configuration Command:
First, the use of Telnet remote management
1, switch (configuration) # line vty 0 4? Enter the virtual terminal
2. Switch (configuration line) # password? Set the login password
3. Switch (configuration line) # login? Require password verification
Second, the console password.
1, switch (configuration) # line console 0? Input console port
2. Switch (configuration line) # password xx?
3.switch(config-line)# Set the login password login? Allow login
Third, restore the factory configuration.
Switch (configuration) #erasestartup-config
Switch (Configuration) Delete vlan.dat