Cisco configuration :
Switch Command Mode
--Switch>
-- switch> : user mode
--switch>enable
--switch# privileged mode (generally used to view configuration information)
----switch#configure terminal Global configuration mode (the configuration information made takes effect on the entire device)
--switch ( configure ) #interfacefastEthernet0/1 (" 0 " for module number, " 1 " for port number)
-- switch ( configure ) #( interface mode )
--back button
-- Exit: go back to the previous step
-- End : return directly
-- Ctrl+z: shortcut key
-- never timeout
--Switch(config)#line console 0
--Switch(config-line)#exec-timeout 0 0 means never timeout (default time is 10 minutes)
-- Switch disable DNS lookup
--switch(configure)#:no ip domain-lookup
Router# erase startup clear configuration
If you type the wrong command and the command line gets stuck, press ctrl+shift+6 to interrupt
--copy running-config starup-configor
-- Router# write to save the configuration
-- Router(config)# hostname R1 change the name
-- R1# show version View current configuration
-- R1# show ip route View route
-- ip dhcp set dhcp server
-- switchport access vlan vlan-id add port to vlan
--noshutdown activate port
--show interface show interface
-- show vlan brief show vlan information
--erase nvram delete saved configuration file
Configure console password
--Router>enable
--Router# configure terminal
--Router(config)# line console 0
--Router(config-line)# login
--Router(config-line)# password 1234
--Router(config-line)#按ctrl+z
--Router#exit