cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
454
Views
15
Helpful
4
Replies

tengig interface not allowing to specify vlans on trunk /catalyst 9400

Hi,

 

I am trying to configure the following command on a ten gig interface on a 9400 series switch, but it does not work:

 

switchport trunk allowed vlan add xxxx,xxx,xxx

 

the command is accepted when i hit enter, but does not show in the running config. instead it is showing as a full trunk. 

The interface has been configured as a trunk with a native vlan, so has basic config at the moment.

 

Please can you advise how i can have the interface accepted pruned vlans ?

 

Best Regards,

 

Sabeel

4 Replies 4

balaji.bandi
Hall of Fame
Hall of Fame

we need more information, what version of code running :

is that standard VLAN or extended vlan ?

 

in general below config should work : ( example, replace with correct interface)

 

vlan 10,20,30
!
interface gigabitethernet 1/0/1
switchport mode trunk
switchport trunk allowed vlan 10,20,30

 

post output :

show version

show run interfaces gigabitethernet 1/0/1
show interfaces gigabitethernet 1/0/1 switchport

 

BB

***** Rate All Helpful Responses *****

How to Ask The Cisco Community for Help

the SW refuse to pruning range of VLAN from trunk that include the internal VLAN ID.

here you remove all internal VLAN and specify only some VLAN ID.

you need to allow internal VLAN ID and then add some VLAN ID.

 

the add VLAN must be in range of normal VLAN ID as shown below 

10tab02.jpg

reccon
Level 1
Level 1

"switchport trunk allowed vlan add xxxx,xxx,xxx" adds vlans to an existing "switchport trunk allowed vlan xxxx,xxxx" on that interface.

 

If no "switchport trunk allowed vlan xxxx,xxxx" exists on that port, the "switchport trunk allowed vlan add xxxx,xxx,xxx" command is ignored.

Giuseppe Larosa
Hall of Fame
Hall of Fame

Hello @SabeelShakeel00430 ,

it may be simpler

if currently the interface is a trunk carrying all vlans you need to use the command

interface type x/y

switchport trunk allowed vlan X,Y,Z

 

The usage of the add keyword is thought for a trunk that has already a manual set of VLANs allowed to add one or more VLANs to that set.

 

if you try to use switchport trunk allowed vlan add to a default trunk you get no change because the VLAN(s) you are adding are already allowed in the range 1.4094   the IEEE 802.1Q usable range of VLANs

 

Hope to help

Giuseppe

 

Getting Started

Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community: