cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
2059
Views
0
Helpful
6
Replies

Vlans allowed on trunk

darren862
Level 1
Level 1

When I do a show interface trunk

I see  vlans allowed on trunk 1-4094

I also see vlans allowed in active management domain 1,7,88  ( the ones I allowed on the trunk)

I dont wat all vlans to be allowed on the trunk. How do i get just the 1,7,88 to appear on Vlans allowed on trunk and get rid of 1-4094

6 Replies 6

John Blakley
VIP Alumni
VIP Alumni

Darren,

Suppose that you are using interface fa0/1, you would configure the port like:

int fa0/1

switch trunk encaps dot1q

switch mode trunk

switch trunk allowed vlan add 1,7,88

John

HTH, John *** Please rate all useful posts ***

Hi John,

Please correct me if i am wrong, i think Darren is asking how to make only vlans 1,7,88 to be alowed on the trunk and only those vlans to be visible when he sees output of show interface trunk command... so i think "switchport turnk allowed vlan add 1,7,88" is not required, as all vlans are already allowed by default, to its not necessary to add 1,7,88 specifically again.

Hi Darren,

You should configure your trunk interface as below, by this you will be able to see only vlans 1,7,88 allowed:

!

interface FastEthernet0/1

switchport trunk encapsulation dot1q

switchport trunk allowed vlan 1,7,88

switchport mode trunk

no shutdown

!

Regards,

Manjunath

Hello John,

  I think the add should be omitted. The add keyword, I think, would add to the current list of VLANs. I believe the following will meet the requirement.

int fa0/1

switch trunk encaps dot1q

switch mode trunk

switchport trunk allowed vlan 7,88

regards,

ryan

Yes...I mistyped the 'add'...leave it out. :-) I was doing some other things this morning...

HTH, John *** Please rate all useful posts ***

I figured it out, my Cisco 4500 does not have the option for dot1q

interface Fa0/1

switchport trunk ( there is no encapuclation) from what I read its set by

default in this version of the IOS.

So here is what I did.

interface Fa0/1

switchport mode trunk

switchport trunk allowed vlan remove 2-4094

switchport trunk allowed vlan add 7,88

This allowed me to only pass vlan 1,7,88

Thank you all for your input

Glad to hear it...

please rate all helpful posts

HTH, John *** Please rate all useful posts ***
Review Cisco Networking products for a $25 gift card