Cisco Support Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Announcements
Webcast-Catalyst9k
New Member

Changing Native Vlan on Cat OS

Does anyone know how to change the Native Vlan on a switchport running CatOs?

4 REPLIES
Cisco Employee

Re: Changing Native Vlan on Cat OS

set vlan x/y

New Member

Re: Changing Native Vlan on Cat OS

what I am trying to accomplish is trunking multiple vlans on one port and define one of those vlans as the Native Vlan. There will be an access point attached to the port running multiple vlans and the AP wants a "native vlan" defined?

IOS allows you to define a Native vlan for any port trunking multiple vlans, but I can't find that same support for CatOS

Cisco Employee

Re: Changing Native Vlan on Cat OS

You'll need to use the set vlan command. Here is an example from my lab switch. Note that the native VLAN is 1(by default) and I change it to 999

4k> (enable) sh trunk 2/1

* - indicates vtp domain mismatch

Port Mode Encapsulation Status Native vlan

-------- ----------- ------------- ------------ -----------

2/1 desirable dot1q trunking 1

Port Vlans allowed on trunk

-------- ---------------------------------------------------------------------

2/1 1-1005

Port Vlans allowed and active in management domain

-------- ---------------------------------------------------------------------

2/1 1,11-12,16-17,20,22,24,26,28,30,34,36,38,40,50-51,60,65,67,72,90,101-102,104,106,111-112,130,134,136,139,142,145,149-150,152,156,160,170,198,200,203,240,254,257-258,500,666,772,900,996-1000

Port Vlans in spanning tree forwarding state and not pruned

-------- ---------------------------------------------------------------------

2/1 1,11-12,16-17,20,22,24,26,28,30,34,36,38,40,50-51,60,65,67,72,90,101-102,104,106,111-112,130,134,136,139,142,145,149-150,152,156,160,170,198,200,203,240,254,257-258,500,666,772,900,996-1000

4k> (enable) set vlan 999 2/1

VLAN 999 modified.

VLAN 1 modified.

VLAN Mod/Ports

---- -----------------------

999 2/1

4k> (enable) sh trunk 2/1

* - indicates vtp domain mismatch

Port Mode Encapsulation Status Native vlan

-------- ----------- ------------- ------------ -----------

2/1 desirable dot1q trunking 999

Port Vlans allowed on trunk

-------- ---------------------------------------------------------------------

2/1 1-1005

Port Vlans allowed and active in management domain

-------- ---------------------------------------------------------------------

2/1 1,11-12,16-17,20,22,24,26,28,30,34,36,38,40,50-51,60,65,67,72,90,101-102,104,106,111-112,130,134,136,139,142,145,149-150,152,156,160,170,198,200,203,240,254,257-258,500,666,772,900,996-1000

Port Vlans in spanning tree forwarding state and not pruned

-------- ---------------------------------------------------------------------

2/1 11-12,16-17,20,22,24,26,28,30,34,36,38,40,50-51,60,65,67,72,90,101-102,104,106,111-112,130,134,136,139,142,145,149-150,152,156,160,170,198,200,203,240,254,257-258,500,666,772,900,996-998,1000

New Member

Re: Changing Native Vlan on Cat OS

Thanks!!!

Thats the answer!

316
Views
5
Helpful
4
Replies
CreatePlease to create content