Cisco switch vlan Division

Source: Internet
Author: User
Tags cisco switch

Cisco switch vlan division // Add vlanSwitch> enableSwitch # vlan dataSwitch (vlan) # vlan 10 name v1VLAN 10 added: Name: v1Switch (vlan) # vlan 20 name v2VLAN 20 added: Name: v2Switch (vlan) # vlan 30 name v3VLAN 30 added: Name: v3Switch (vlan) # exitAPPLY completed. exiting .... // Add an interface Switch for the vlan # config tEnter configuration commands, one per line. end with CNTL/Z. switch (config) # int f0/1 Switch (config-if) # switchport mode access Swi Tch (config-if) # switchport acc vlan 10 Switch (config-if) # no shutdown Switch (config-if) # exit // leave the Switch (config) to the Administrator) # int range f0/2-15Switch (config-if-range) # switchport mode accSwitch (config-if-range) # switchport acc vlan 20 Switch (config-if-range) # no shSwitch (config-if-range) # exitSwitch (config) # int range f0/16-24Switch (config-if-range) # switchport mode access Switch (config-if-range) # switchport access vl An 30 Switch (config-if-range) # no shSwitch (config-if-range) # exit // activate the vlan and add an ip address to vlan 10 to manage the Switch (config) # int vlan 10 Switch (config-if) # ip add 192.168.1.1 255.255.255.0 // add an ip address to vlan 10 for Management Switch (config-if) # no shSwitch (config-if) # exitSwitch (config) # int vlan 20 Switch (config-if) # no shSwitch (config-if) # exitSwitch (config) # int vlan 30 Switch (config-if) # no sh ^ Switch (config-if) # exit // specify the Gateway Switch (config) # I P default-gateway 192.168.1.254Switch (config) # end // detection configuration Switch # show vlan brief // The above is the detection result VLAN Name Status Ports ---- -------------------------------- ----------- Listen 1 default active 10 v1 active Fa0/120 v2 active Fa0/2, fa0/3, Fa0/4, Fa0/5 Fa0/6, Fa0/7, Fa0/8, Fa0/9 Fa0/10, Fa0/11, Fa0/12, fa0/13 Fa0/14, Fa0/1530 v3 active Fa0/16, Fa0/17, Fa0/18, Fa0/19 Fa0/20, Fa0/21, Fa0 /22, fa0/23 Fa0/241002 fddi-default active 1003 token-ring-default active 1004 fddinet-default active 1005 trnet-default active Switch # // Save the configuration Switch # write Building configuration... [OK] Switch # supplement: // delete an interface's vlanSwitch> enableSwitch # configConfiguring from terminal, memory, or network [terminal]? Enter configuration commands, one per line. end with CNTL/Z. switch (config) # int f0/5 Switch (config-if) # no switchport access vlanSwitch (config-if) # endSwitch # Check the spanning tree information of a specific port Switch # show spanning-tree? Switch # show spanning-tree vlan? Specify the vlan to display its STP configuration Switch # show spanning-tree vlan 10

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.