cancel
Showing results forĀ 
Search instead forĀ 
Did you mean:Ā 
cancel
2246
Views
0
Helpful
3
Replies

Add vlan to a trunk port on 3500XL

bridgepatel
Level 1
Level 1

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

2 Accepted Solutions

Accepted Solutions

glen.grant
VIP Alumni
VIP Alumni

   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.

View solution in original post

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.

View solution in original post

3 Replies 3

glen.grant
VIP Alumni
VIP Alumni

   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.

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.

Thanks  guys

It worked perfectly

Review Cisco Networking for a $25 gift card