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

Trunk only two vlans, cannot remove others

I have a 3550 switch that I am trying to set up a trunk port and only trunk two VLANs.

When I try to remove all VLANs other than what I want, I get this message:

"Command rejected: Bad VLAN allowed list.

VLANs 1,1002-1005 are required."

Do I have to allow these VLANs?

5 REPLIES
Blue

Re: Trunk only two vlans, cannot remove others

Yes. You can never disallow vlans 1002 through 1005. Those are native to the IOS.

All you have to do is type "switchport trunk allowed vlan x,y,z"

The rest will be pruned by default.

New Member

Re: Trunk only two vlans, cannot remove others

thanks everyone

Re: Trunk only two vlans, cannot remove others

Wilson,

Those are default VLANs that you couldn't remove in the past. But the newer IOS lets you remove the default VLANs from the trunk. Here's a small capture from my lab switch.

SW1-3550#show run int f0/24

Building configuration...

Current configuration : 154 bytes

!

interface FastEthernet0/24

switchport trunk encapsulation dot1q

switchport trunk allowed vlan 100

switchport mode trunk

switchport nonegotiate

end

SW1-3550#show int trunk

Port Mode Encapsulation Status Native vlan

Fa0/24 on 802.1q trunking 1

Port Vlans allowed on trunk

Fa0/24 100

Port Vlans allowed and active in management domain

Fa0/24 100

Port Vlans in spanning tree forwarding state and not pruned

Fa0/24 100

HTH

Sundar

Blue

Re: Trunk only two vlans, cannot remove others

Sundar, you can prune those vlans by default by not including them in the 'allowed vlan' statement. Correct?

Re: Trunk only two vlans, cannot remove others

Correct.

180
Views
15
Helpful
5
Replies
CreatePlease to create content