Command
Switchport Trunk Allowed Vlan
Use
Restricts the VLANs that can travel between a trunk on the switch.
Syntax
Switch(config-if)#switchport trunk allowed vlan <vlan #>
Example
In this example, allowed VLAN is set for int fa0/19 on SW3.
SW3(config)#int fa0/19 |
Here’s the trunk information for SW3 after the changes. Notice the ‘Port Vlans allowed on trunk for fa0/19’ section.
SW3(config-if)#do show int trunk Port Vlans allowed on trunk Port Vlans allowed and active in management domain Port Vlans in spanning tree forwarding state and not pruned Port Vlans in spanning tree forwarding state and not pruned |