Cisco Support Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Announcements

Welcome to Cisco Support Community. We would love to have your feedback.

For an introduction to the new site, click here. If you'd prefer to explore, try our test area to get started. And see here for current known issues.

New Member

switches - trunk link

How to remove particular vlan in trunk link?

Everyone's tags (1)
1 ACCEPTED SOLUTION

Accepted Solutions
Silver

Re: switches - trunk link

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

3 REPLIES
New Member

Re: switches - trunk link

Switchport trunk remove vlan ..

Sent from Cisco Technical Support iPhone App

VIP Purple

Re: switches - trunk link

Swithport trunk allow vlan remove command under interface config

Sent from Cisco Technical Support iPhone App

Silver

Re: switches - trunk link

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

155
Views
0
Helpful
3
Replies