03-05-2012 06:58 AM - edited 03-07-2019 05:20 AM
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
03-05-2012 07:02 AM
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
03-05-2012 07:49 AM
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
03-05-2012 07:51 AM
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
03-05-2012 08:30 AM
Yes...I mistyped the 'add'...leave it out. :-) I was doing some other things this morning...
03-05-2012 09:20 AM
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
03-05-2012 09:28 AM
Glad to hear it...
please rate all helpful posts
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide