Cisco switch basic configuration and Console port connection

Source: Internet
Author: User

Vswitch configuration command Basics

User Mode hostname #;

Privileged mode hostname (config )#;

Global configuration mode hostname (config-if )#;

Vswitch password settings:

 
 
  1. Switch> enable; enter privileged Mode
  2. Switch # config terminal; enter global configuration mode
  3. Switch (config) # hostname csico; set the vswitch Host Name
  4. Switch (config) # enable secret csico1; set the privileged encryption Password
  5. Switch (config) # enable password csico8; set a privileged non-password
  6. Switch (config) # line console 0; enter the console Port
  7. Switch (config-line) # line vty 0 4; enter the virtual terminal
  8. Switch (config-line) # login; virtual terminal allows login
  9. Switch (config-line) # password csico6; set the virtual terminal logon password csico6
  10. Switch # exit; return command

Basic vswitch Configuration

Including VLAN creation, deletion, port attribute settings, configure the trunk port, add a port to the vlan, and configure VTP:

 
 
  1. Switch # vlan database; go to VLAN settings
  2. Switch (vlan) # vlan 2; Create VLAN 2
  3. Switch (vlan) # vlan 3 name vlan3; Create VLAN 3 and name it vlan3
  4. Switch (vlan) # no vlan 2; Delete vlan 2
  5. Switch (config) # int f0/1; enter port 1
  6. Switch (config) # speed? View the subcommands of the speed command
  7. Switch (config) # speed 100 sets the port speed to 100 mb/s (10/auto)
  8. Switch (config) # duplex? View duplex sub-commands
  9. Switch (config) # duplex full set this port to full duplex (auto/half)
  10. Switch (config) # description TO_PC1. This port is described as TO_PC1.
  11. Switch (config-if) # switchport access vlan 2; Add vlan 2 to the current port
  12. Switch (config-if) # switchport mode trunk; set it to trunk mode (access mode)
  13. Switch (config-if) # switchport trunk allowed vlan 1 and 2; set the allowed vlan
  14. Switch (config-if) # switchport trunk encap dot1q; Set vlan Relay
  15. Switch (config) # vtp domain vtpserver; set the same vtp domain Name
  16. Switch (config) # vtp password; set the vtp password
  17. Switch (config) # vtp server; Set vtp server mode
  18. Switch (config) # vtp client; Set vtp client Mode

Basic vswitch settings

Including setting IP addresses, default gateways, domain names, domain name servers, configuring and viewing MAC address tables:

 
 
  1. Switch (config) # interface vlan 1; enter vlan 1
  2. Switch (config-if) # ip address 192.168.1.1 255.255.255.0; set the ip address
  3. Switch (config) # ip default-gateway 192.168.1.6; set the default gateway
  4. Switch (config) # ip domain-name cisco.com
  5. Switch (config) # ip name-server 192.168.1.18
  6. Switch (config) # mac-address-table? View mac-address-table sub-commands
  7. Switch (config) # mac-address-table aging-time 100 set the timeout value to 100 ms
  8. Switch (config) # mac-address-table permanent restart c01.bbcc f0/3 add permanent address on port f0/3
  9. Switch (config) # mac-address-table restricted static multicast c02.bbcc f0/6 f0/7 add static address target port f0/6 Source Port f0/7
  10. Switch (config) # end
  11. Switch # show mac-address-table view the entire MAC address table
  12. Switch # clear mac-address-table restricted static clear restricted static address

Switch display command

 
 
  1. Switch # write; save configuration information
  2. Switch # show vtp; view vtp configuration information
  3. Switch # show run; view current configuration information
  4. Switch # show vlan; view vlan configuration information
  5. Switch # show interface; view port information
  6. Switch # show int f0/0; view the specified port information
  7. Switch # show int f0/0 status; view the status of the specified port
  8. Switch # dir flash:; view flash

The basic commands of vswitches are described in this article. The above knowledge points are required by beginners in learning or even Cisco certification. There are not many content. I hope you have understood them.

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.