09-20-2013 10:21 PM - edited 03-07-2019 03:35 PM
How to remove particular vlan in trunk link?
Solved! Go to Solution.
09-21-2013 02:46 AM
Hi,
Let's say you want to remove vlan 69 from interface fa0/1
Switch(config)#interface fa0/1
Switch(config-if)#switchport trunk allowed vlan remove 69
Switch(config-if)#end
gentleman above is right, however if you want to know all the possibilities that you have, take a look at the command itselft and syntax description:
switchport trunk allowed vlan vlan_list
vlan-list format is all | none | [add | remove | except] vlan-atom [,vlan-atom...] where:
all | specifies all VLANs from 1 to 4094. This keyword is not allowed on commands that do not permit all VLANs in the list to be set at the same time. |
none | means an empty list. This keyword is not allowed on commands that require certain VLANs to be set or at least one VLAN to be set. |
add | adds the defined list of VLANs to those currently set instead of replacing the list. Valid IDs are from 1 to 1005; extended-range VLANs (VLAN IDs greater than 1005) are valid in some cases. |
except | lists the VLANs that should be calculated by inverting the defined list of VLANs. (VLANs are added except the ones specified.) Valid IDs are from 1 to 1005. Separate nonconsecutive VLAN IDs with a comma; use a hyphen to designate a range of IDs. |
remove | removes the defined list of VLANs from those currently set instead of replacing the list. Valid IDs are from 1 to 1005; extended-range VLAN IDs are valid in some cases. |
vlan-atom | is either a single VLAN number from 1 to 4094 or a continuous range of VLANs described by two VLAN numbers, the lesser one first, separated by a hyphen. |
Best regards,
Jan
09-20-2013 10:40 PM
Switchport trunk remove vlan ..
Sent from Cisco Technical Support iPhone App
09-20-2013 11:48 PM
Swithport trunk allow vlan remove
Sent from Cisco Technical Support iPhone App
09-21-2013 02:46 AM
Hi,
Let's say you want to remove vlan 69 from interface fa0/1
Switch(config)#interface fa0/1
Switch(config-if)#switchport trunk allowed vlan remove 69
Switch(config-if)#end
gentleman above is right, however if you want to know all the possibilities that you have, take a look at the command itselft and syntax description:
switchport trunk allowed vlan vlan_list
vlan-list format is all | none | [add | remove | except] vlan-atom [,vlan-atom...] where:
all | specifies all VLANs from 1 to 4094. This keyword is not allowed on commands that do not permit all VLANs in the list to be set at the same time. |
none | means an empty list. This keyword is not allowed on commands that require certain VLANs to be set or at least one VLAN to be set. |
add | adds the defined list of VLANs to those currently set instead of replacing the list. Valid IDs are from 1 to 1005; extended-range VLANs (VLAN IDs greater than 1005) are valid in some cases. |
except | lists the VLANs that should be calculated by inverting the defined list of VLANs. (VLANs are added except the ones specified.) Valid IDs are from 1 to 1005. Separate nonconsecutive VLAN IDs with a comma; use a hyphen to designate a range of IDs. |
remove | removes the defined list of VLANs from those currently set instead of replacing the list. Valid IDs are from 1 to 1005; extended-range VLAN IDs are valid in some cases. |
vlan-atom | is either a single VLAN number from 1 to 4094 or a continuous range of VLANs described by two VLAN numbers, the lesser one first, separated by a hyphen. |
Best regards,
Jan
Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community: