Adds or removes VLANs on a Layer 2 interface in trunk mode.
Interface subtype configuration mode
A transport VF C-TAG can be any VLAN ID that is not used in other classifications or as a 802.1Q VLAN.
To add the tagged VLAN 100 to a specific Ethernet interface:
device# configure terminal switch(config)# interface ethernet 0/9 switch(conf-if-eth-0/9)# switchport trunk allowed vlan add 100
To remove the tagged VLAN 100 from the interface:
device# configure terminal switch(config)# interface ethernet 0/9 switch(conf-if-eth-0/9)# switchport trunk allowed vlan remove 100
Configure a classified VLAN with a C-TAG:
device# configure terminal switch(config)# interface ethernet 0/1 switch(config-if-eth-0/1)# switchport trunk allowed vlan add 5000 ctag 100 switch(config-if-eth-0/1)# switchport trunk allowed vlan add 6000 ctag 200
An 802.1Q vlan specified as a user VLAN cannot be used as a C-TAG in a classified VLAN. The following show conflicts.
device# configure terminal switch(config)# interface ethernet 0/1 switch(config-if-eth-0/1)# switchport trunk allowed vlan add 8000 ctag 100 switch(config-if-eth-0/1)# %Error: C-tag is already used.
device# configure terminal switch(config)# interface ethernet 0/1 switch(config-if-eth-0/1)# switchport trunk allowed vlan add 8000 ctag 888 switch(config-if-eth-0/1)# %Error: Ctag is configured in the allowed range on this port.