08-26-2011 04:11 AM - edited 03-07-2019 01:54 AM
Hi
I am trying to add a few vlans to a trunk port but it seems like i can only add one vlan. The scenario is i am connecting the switch to a linux box. I have successfully created vlans on the switch. Here is what i am doing.
switch(config-if)#switchport trunk encapsulation dot1q
switch(config-if)#switchport trunk native vlan 11
switch(config-if)#switchport mode trunk
switch(config-if)#switchport trunk allowed vlan add 192
But it only adds one vlan as you can see from the following command
switch#show running-config interface fastEthernet 0/3
Building configuration...
Current configuration:
!
interface FastEthernet0/3
description "non bridged interface on the xennode"
switchport trunk encapsulation dot1q
switchport trunk native vlan 11
switchport mode trunk
end
Following are the details of the IOS
IOS (tm) C3500XL Software (C3500XL-C3H2S-M), Version 12.0(5)WC16, RELEASE SOFTWARE (fc1)
Any ideas?
Thanks in advance
Regards
Brijesh
Solved! Go to Solution.
08-26-2011 04:44 AM
Since you did not previously restrict any vlans across the trunk , all vlans are already allowed across the trunk by default and thus why you cannot add anything because all vlans are already allowed.
08-26-2011 04:50 AM
Or in other words if you remove the "add" keyword above you will only allow vlan 192 on the trunk. Then if you want to "add" another vlan to the trunk you should use the "add" keyword.
08-26-2011 04:44 AM
Since you did not previously restrict any vlans across the trunk , all vlans are already allowed across the trunk by default and thus why you cannot add anything because all vlans are already allowed.
08-26-2011 04:50 AM
Or in other words if you remove the "add" keyword above you will only allow vlan 192 on the trunk. Then if you want to "add" another vlan to the trunk you should use the "add" keyword.
08-26-2011 04:47 PM
Thanks guys
It worked perfectly
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