| 4.5 | Trunking | ||
| 4.5.3 | Removing VLANs from a trunk |
By default, all VLANs are transported
across a trunk link when you issue the
set trunk
command. However,
there are instances where the trunk link should not carry all VLANs:
By default, a Cisco IOS command-based switch 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.
The example in Figure In order to remove a VLAN from a trunk link on a set command-based switch, use the following command:
The example in Figure You can verify that trunking has been
configured and verify the settings by using the show
trunk [mod_num/port_num]
command from privileged mode on the switch, as shown in Figure The example in Figure If you wish to remove a large number of VLANs from a trunk link, it is probably easier to clear all VLANs from the trunk link before specifying the VLANs that are supposed to be on the link.
|