CISCO switch VLAN configuration

Source: Internet
Author: User
Tags cisco switch

1. Create a vlan on the vswitch

Create a vtp management domain

To create a vlan on a vswitch, you must first create a vtp management domain so that it can verify the current vlan on the network.

The Catalyst 4000 Series Switch module only supports 802.1q.

Determine whether the hardware supports trunk and whether the hardware supports trunk encapsulation: show portcapabilities

Run clear config allvtp command:

Configure the VTP management domain on the IOS-based switch or add a management domain:

Switch # vlan database

Witch (vlan) # vtp domain-name

Configure the VTP management domain on a CLI-based switch:

Switch (enable) set vtp [domain-name] passwd password:

Witch # vlan database

Witch (vlan) # vtp domain-name

Witch (vlan) # vtp {sever | cilent | transparent}

Witch (vlan) # vtp password

Configure the VTP mode on a CLI-based switch:

Switch (enable) set vtp [domain-name] [mode {sever | cilent | transparent}] [password]

Verify vtp Configuration:

How vtp domain

How vtp statistics

Configure the VTP version on the IOS-based switch:

VTP version 1 is the default configuration

Witch # vlan database

Witch (vlan) # vtp v2-mode

Configure the VTP version on the CLI-based switch:

Witch (enable) set vtp v2 enable to enable VTP tailoring on IOS-based switches:

Witch # vlan database

Witch (vlan) # vtp pruning

Start VTP tailoring on a CLI-based switch:

Witch (enable) set vtp pruning enable

(Set vtp pruneeligble vlan-range)

Vtp pruning not available:

Clear vtp pruneeligble vlan-range

Verify vtp trim Configuration:

How trunk

2. Create a Vlan and configure the static VLAN on the IOS-based switch:

Witch # vlan database

Witch (vlan) # vlan-num name vlan-name

Witch (vlan) # exit

Witch # configure teriminal

Witch (config) # interface module/number

Witch (config-if) # switchport mode access

Witch (config-if) # switchport access vlan-num

Witch (config-if) # end

Configure static VLAN on a CLI-based switch:

Witch (enable) set vlan-num [name]

Witch (enable) set vlan-num mod-num/port-list Verify Configuration: show vlan

3. Configure the trunk Link

The trunk is a point-to-point link between two catalyst Switch ports or between the catalyst Switch and the router.

Trunk links can carry multiple VLANs.

Configure trunk links on IOS-based switches

Witch (config) # interface mod/port

Witch (config-if) # switchport mode trunk

Witch (config-if) # switchport trunk encapsulation {isl | dotlq}

Witch (config-if) # switchport trunk allowed vlan remove vlan-list

Witch (config-if) # switchport trunk allowed vlan add vlan-list

Configure the trunk link on the CLI-based switch:

Witch (enable) set trunk module/port [on | off | desirable | auto | nonegotiate]

Vlan-range

Article entry: csh responsible editor: csh

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.