Cisco WS-C2960S-24PD-L Software Guide - Page 251
Disabling a Trunk Port, Defining the Allowed VLANs on a Trunk
View all Cisco WS-C2960S-24PD-L manuals
Add to My Manuals
Save this manual to your list of manuals |
Page 251 highlights
Chapter 8 Configuring VLANs How VLAN Trunks Work Disabling a Trunk Port You can disable trunking on a port by returning it to its default static-access mode. Beginning in privileged EXEC mode, follow these steps to disable trunking on a port: Step 1 Step 2 Command configure terminal interface interface_id Step 3 Step 4 Step 5 no switchport mode end show interface interface-id switchport Purpose Enter global configuration mode. Enter the interface configuration mode and the port to be added to the VLAN. Return the port to its default static-access mode. Return to privileged EXEC. Verify your entries. In the display, check the Negotiation of Trunking field. Defining the Allowed VLANs on a Trunk By default, a trunk port sends to and receives traffic from all VLANs in the VLAN database. All VLANs, 1 to 1005, are allowed on each trunk. However, you can remove VLANs from the allowed list, preventing traffic from those VLANs from passing over the trunk. To restrict the traffic a trunk carries, use the remove vlan-list parameter to remove specific VLANs from the allowed list. A trunk port can become a member of a VLAN if the VLAN is enabled, if VTP knows of the VLAN, and if the VLAN is in the allowed list for the port. When VTP detects a newly enabled VLAN and the VLAN is in the allowed list for a trunk port, the trunk port automatically becomes a member of the enabled VLAN. When VTP detects a new VLAN and the VLAN is not in the allowed list for a trunk port, the trunk port does not become a member of the new VLAN. Beginning in privileged EXEC mode, follow these steps to modify the allowed list of a ISL or 802.1Q trunk: Step 1 Step 2 Step 3 Step 4 Step 5 Step 6 Step 7 Command Purpose configure terminal Enter global configuration mode. interface interface_id Enter interface configuration mode and the port to be added to the VLAN. switchport mode trunk Configure VLAN membership mode for trunks. switchport trunk allowed vlan remove vlan-list Define the VLANs that are not allowed to send and receive on the port. The vlan-list parameter is a range of VLAN IDs Separate nonconsecutive VLAN IDs with a comma and no spaces; use a hyphen to designate a range of IDs. Valid IDs are from 2 to 1001. end Return to privileged EXEC. show interface interface-id switchport allowed-vlan Verify your entries. copy running-config startup-config Save the configuration. 78-6511-08 Catalyst 2900 Series XL and Catalyst 3500 Series XL Software Configuration Guide 8-29