Port persists on vlan1, even after doing 'native vlan 9'

Answered Question
May 19th, 2009

My goal is to unassign all ports from vlan1.

I did the 'switchport trunk native vlan 9'. However, port g0/24 persists on vlan1.

What am I missing?

sw2#show run int g0/24

Building configuration...

Current configuration : 226 bytes

!

interface GigabitEthernet0/24

switchport trunk encapsulation dot1q

switchport trunk native vlan 9 <===========================

switchport trunk allowed vlan 9

switchport mode trunk

speed 100

duplex full

end

sw2#show vlan

VLAN Name Status Ports

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

1 default active Gi0/24, Gi0/25, Gi0/26

I have this problem too.
0 votes
Correct Answer by Giuseppe Larosa about 7 years 6 months ago

Hello Marlon,

'switchport access vlan x' will be effective when port is an access port again

From a technical point of view if the port is a trunk and vlan1 is not permitted on it you can say it is not part of vlan1.

This show reports administrative information.

Hope to help

Giuseppe

  • 1
  • 2
  • 3
  • 4
  • 5
Overall Rating: 5 (1 ratings)
Loading.
glen.grant Tue, 05/19/2009 - 16:37

Thats because the access vlan is still 1 , if you change the access port to 9 it will change , switchport access vlan 9 . Are those trunks working currently , usually a trunk will not even show what the access vlan is if the trunk is working. The show vlan command tells you what vlan the port would be in if it was in access mode and not trunk mode.

news2010a Tue, 05/19/2009 - 17:58

Traffic is flowing and I can get to other devices via the trunk.

Hey, is there any implication in doing the 'switchport access vlan x' on a port which is actually on a trunk?

I always thought that or you are in trunk or you are in 'mode access'... that's new to me.

Correct Answer
Giuseppe Larosa Wed, 05/20/2009 - 02:23

Hello Marlon,

'switchport access vlan x' will be effective when port is an access port again

From a technical point of view if the port is a trunk and vlan1 is not permitted on it you can say it is not part of vlan1.

This show reports administrative information.

Hope to help

Giuseppe

rakesh.hegde Fri, 05/22/2009 - 04:28

As mentioned on your other post below, this is because either gig 0/24 is down or not trunking. It's got nothing to with native vlans. The port is considered to be in administratively configured vlan(vlan 1 if not conigured) if it can not beceome a trunk.

show int gig 0/24 switchport should help

http://forum.cisco.com/eforum/servlet/NetProf;jsessionid=F5FBE89F4279D5CCDB2646773121B968.SJ1B?page=netprof&forum=Network%20Infrastructure&topic=LAN%2C%20Switching%20and%20Routing&topicID=.ee71a04&fromOutline=&CommCmd=MB%3Fcmd%3Ddisplay_location%26location%3D.2cd319f6

-Rakesh

dasmith58 Fri, 05/22/2009 - 09:45

You have to put the interface on the other end of the trunk link in native vlan 9 as well.

Actions

This Discussion