Summary of common Cisco switch commands

Source: Internet
Author: User
Tags cisco switch

Common commands for Cisco switches -- set the switch Password

A. Change the remote TELNNET Password

 
 
  1. Switch#configure terminal  
  2.  
  3. Switch(config)#line vty 0 4  
  4.  
  5. Switch(config-line)#password qycx123  
  6.  
  7. Switch(config-line)#login  
  8.  
  9. Switch(config-line)#exit 

B. Change the password when entering the global configuration mode.

 
 
  1. Switch#configure terminal  
  2.  
  3. Switch(config)#enable secret qycx123 

Common commands for Cisco switches-create and divide VLANs

A. Create a VLAN

 
 
  1. Switch # vlan database
  2.  
  3. Switchvlan) # vlan 99 name office

    (Create vlan 99 and name it office)

B. Divide ports into VLANs

 
 
  1. Switch (config) # interface fastEthernet 0/8
  2.  
  3. Switch (config-if) # switchport mode access
  4.  
  5. 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.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.