cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
5853
Views
5
Helpful
5
Replies

switcport trunk allowed vlan

jmyatt209
Level 1
Level 1

Hi 

I am setting up a network of 9200L access switches connecting to pair of 9407 core switches.

When I set up the uplink to core switch with the configuration:

core(config)#int gi 1/2/0/13
core(config-if)#switchport trunk allowed vlan add 10,31,33,50,100

then check the trunks on the vlan I get 

 

core#sh int gi 1/2/0/13 trunk

Port Mode Encapsulation Status Native vlan
Gi1/2/0/13 on 802.1q trunk-inbndl 1
(Po31)

Port Vlans allowed on trunk
Gi1/2/0/13 1-4093

Port Vlans allowed and active in management domain
Gi1/2/0/13 1,10-13,31,33,50,100,600,700,801

Port Vlans in spanning tree forwarding state and not pruned
Gi1/2/0/13 1,10-13,31,33,50,100,600,700,801

 

also if I do a 

 

core#sh run int gi 1/2/0/13
Building configuration...

Current configuration : 131 bytes
!
interface GigabitEthernet1/2/0/13
description uplink to aus-mel-asw31
switchport mode trunk
channel-group 31 mode active
end

 

The command allowing only certain vlan's is not there.

 

Any ideas?

 

1 Accepted Solution

Accepted Solutions

 

Use this command without add keyword,

try and send me result 

View solution in original post

5 Replies 5

Leo Laohoo
Hall of Fame
Hall of Fame

@jmyatt209 wrote:
core(config)#int gi 1/2/0/13
core(config-if)#switchport trunk allowed vlan add 10,31,33,50,100

It is  bug.  This alone is not allowed because this interface is part of a port channel (Po 31).  Adding/removing VLANs can only be allowed on the port channel.  

happens on all port types though:

 

#sh run int gi 2/2/0/14
Building configuration...

Current configuration : 112 bytes
!
interface GigabitEthernet2/2/0/14
description uplink to aus-mel-asw54 Gig 1/0/24
switchport mode trunk
end

#conf t
Enter configuration commands, one per line. End with CNTL/Z.
(config)#int gi 2/2/0/14
(config-if)#switchport trunk allowed vlan add 10,31,33,50,100
(config-if)#^Z
#sh run int gi 2/2/0/14
Building configuration...

Current configuration : 112 bytes
!
interface GigabitEthernet2/2/0/14
switchport mode trunk
end

 

 

The "add" keyword should only be used when you already have assigned vlans to that interface and now you want to add some more. If there are no vlans to begin with then you use this command; 

switchport trunk allowed vlan 10,31,33,50,100

now if you want to add say vlan 200 to this list you use the add keyword

switchport trunk allowed vlan add 200

 

HTH

 

 

Use this command without add keyword,

try and send me result 

that worked

 

(config)#int gi 1/0/24
(config-if)#switchport trunk allowed vlan 10,31,33,50,100
(config-if)#^Z
#sh run int gi 1/0/24
Building configuration...

Current configuration : 171 bytes
!
interface GigabitEthernet1/0/24
description trunk to Warehouse switch gi1/0/23
switchport trunk allowed vlan 10,31,33,50,100
switchport mode trunk
end

 

Review Cisco Networking for a $25 gift card