Specifications

2-872
Catalyst 4500 Series Switch Cisco IOS Command Reference—Release IOS XE 3.3.0XO(15.1(1)XO)
OL_28738 -01
Chapter 2 Cisco IOS Commands for the Catalyst 4500 Series Switches
switchport private-v lan trunk al lowed vlan
switchport private- vlan trunk allowed vlan
To configure a list of the allowed normal VLANs on a private VLAN trunk port, use the switchport
private-vlan trunk allowed vlan command. To remove all the allowed normal VLANs from a private
VLAN trunk port, use the no form of this command.
switchport private-vlan trunk allowed vlan { vlan-li st} all | none | [add | remove | except]
vlan_atom [,vlan_atom.. .]
no switchport private-vlan trunk allowed vlan
Syntax Description
Defaults A ll allowed normal VLAN s are removed from a private VLAN trun k port.
Command Modes Interface configuration mode
Usage Guidelines By default, no normal VLANs are allowed unless you explicitly configure the VLANs to be allowed.
Use this command only for normal VL ANs on a private VLAN trunk port.
Use the switchport private-vlan association trunk command to configure a port that can carry private
VLANs on a private VLAN trunk port.
Examples This exampl e shows how to configure the private VLAN trunk port that carries norma l VLANs 1 to10:
Switch(config-if)# switchport private-vlan trunk allowed vlan 1-10
Switch(config-if)#
This example shows how to remove all the allowed normal VLANs from a private VLAN trunk port:
Switch(config-if)# no switchport private-vlan trunk allowed vlan
Switch(config-if)#
vlan_list Sets the list of allowed VLANs; see the “Usage Guidelines” section for formatting
guidelines for vlan_l ist.
all Specifies all VLANs from 1 to 4094. This keyword is not supported on commands
that do not permit all VLANs in the list to be set at the same time.
none Indicates an empty list. This keyword is not supported on commands that require
certain VLANs to be set or at least one VLAN to be set.
add (Optional) Adds the defined list of VLANs to those currently set instead of
replacing the list.
remove (Optional) Removes the defined list of VLANs from those currently set instead of
replacing the list.
except (Optional) Lists the VLANs that should be ca lculated by inverting the defined list
of VLANs.
vlan_atom Either a single VLAN number from 1 to 4094 or a continuou s range of VLANs
described by two VLAN numbers, the lesse r one first, separate d by a hyphen.