10-14-2020 06:34 PM
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?
Solved! Go to Solution.
10-14-2020 07:39 PM
10-14-2020 06:59 PM - edited 10-14-2020 07:00 PM
@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.
10-14-2020 07:13 PM
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
10-14-2020 07:57 PM
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
10-14-2020 07:39 PM
Use this command without add keyword,
try and send me result
10-14-2020 07:53 PM
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
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