Common commands for Cisco switches -- set the switch Password
A. Change the remote TELNNET Password
- Switch#configure terminal
-
- Switch(config)#line vty 0 4
-
- Switch(config-line)#password qycx123
-
- Switch(config-line)#login
-
- Switch(config-line)#exit
B. Change the password when entering the global configuration mode.
- Switch#configure terminal
-
- Switch(config)#enable secret qycx123
Common commands for Cisco switches-create and divide VLANs
A. Create a VLAN
- Switch # vlan database
-
- Switchvlan) # vlan 99 name office
(Create vlan 99 and name it office)
B. Divide ports into VLANs
- Switch (config) # interface fastEthernet 0/8
-
- Switch (config-if) # switchport mode access
-
- Switch (config-if) # switchport access vlan 99
(Divide the 8-day fast Ethernet port into vlan 99)
Common commands for Cisco switches-Debugging commands
A. display all the configuration commands: Switch # show run
B. Display All interface statuses: Switch # show ip int brief
C. Display All VLAN information: Switch # show vlan brief
For details about common commands of Cisco switches, refer to: vswitch router configuration: Cisco Networking instances.