cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
333
Views
0
Helpful
3
Replies

switches - trunk link

kcsureshbabu
Level 1
Level 1

How to remove particular vlan in trunk link?

1 Accepted Solution

Accepted Solutions

Jan Hrnko
Level 4
Level 4

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

Syntax Description

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

View solution in original post

3 Replies 3

shanilkumar2003
Level 1
Level 1

Switchport trunk remove vlan ..

Sent from Cisco Technical Support iPhone App

Swithport trunk allow vlan remove command under interface config

Sent from Cisco Technical Support iPhone App

Jan Hrnko
Level 4
Level 4

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

Syntax Description

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

Getting Started

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:

Review Cisco Networking products for a $25 gift card