Default vlan

Answered Question
Jul 31st, 2012

I hear that all ports have a default vlan, usually 1. what happens when we set a port to access port 10? Does it still have a default vlan or just vlan 10?

I have this problem too.
0 votes
Correct Answer by answanso about 1 year 8 months ago

Atle,

The default VLAN is simply stating what VLAN all the ports will belong to in the switches default configuration. This is always VLAN for Cisco devices. In fact you cannot modify or delete VLAN 1. Changing the switchport access vlan x under the interface takes the access port out of the default VLAN and puts it into the defined VLAN.

The Native VLAN has to do with trunking (switchport trunk native vlan x), not with access ports. The Native VLAN is defined on a trunk and is used with protocols like Dot1q to define which VLAN will be untagged. Without this command, the default native VLAN is 1, which is also the default VLAN of the switch.

HTH

Anthony

  • 1
  • 2
  • 3
  • 4
  • 5
Average Rating: 4.8 (4 ratings)
CrononNOC Tue, 07/31/2012 - 07:16

That port would no longer be in vlan1 but vlan10.  sh vlan. Hope this helps.

darren.g Tue, 07/31/2012 - 18:32

Atle Dale wrote:

I hear that all ports have a default vlan, usually 1. what happens when we set a port to access port 10? Does it still have a default vlan or just vlan 10?

In default configuration, all ports on a Cisco switch are in VLAN 1, which is the default "native" (untagged) VLAN.

If you enter the command

switchport access vlan 10

into a given ports configuration, then that port is no longer a member of the native VLAN, but rather a member of VLAN 10, and no traffic not intended for VLAN 10 will transit that port.

Cheers.

CSCO12035638 Wed, 08/01/2012 - 00:03

ok, I think what really confuses me here, is that the default vlan is also native. So, first it is native vlan 1 and then it is a normal access port vlan. To make it native, I will have to make the port a trunk port and add a native vlan to that, correct? I cannot make the access port native ever again, it only appliers to the default vlan 1?

Correct Answer
answanso Wed, 08/01/2012 - 00:50

Atle,

The default VLAN is simply stating what VLAN all the ports will belong to in the switches default configuration. This is always VLAN for Cisco devices. In fact you cannot modify or delete VLAN 1. Changing the switchport access vlan x under the interface takes the access port out of the default VLAN and puts it into the defined VLAN.

The Native VLAN has to do with trunking (switchport trunk native vlan x), not with access ports. The Native VLAN is defined on a trunk and is used with protocols like Dot1q to define which VLAN will be untagged. Without this command, the default native VLAN is 1, which is also the default VLAN of the switch.

HTH

Anthony

Sandeep Choudhary Wed, 08/01/2012 - 00:53

HI Alte,

ok, I think what really confuses me here, is that the default vlan is also native.

Yes the default vlan is 1 and it is also called as a native vlan.

So, first it is native vlan 1 and then it is a normal access port vlan.

Yes its a normal access ports, when it is vlan 1.

To make it native, I will have to make the port a trunk port and add a native vlan to that, correct?

only vlan 1 is called native vlan, other vlan are not native. (You can only use native word with vlan 1).

if you add two vlan to a port then its not called a native port ...it just a trunk port.

I cannot make the access port native ever again, it only appliers to the default vlan 1?

if you will use only one blan(Vlan1) on a port then its automatically a native vlan ports.

Regards

Please rate if it helps.

CSCO12035638 Wed, 08/01/2012 - 00:58

"To make it native, I will have to make the port a trunk port and add a native vlan to that, correct?

only vlan 1 is called native vlan, other vlan are not native. (You can only use native word with vlan 1).

if you add two vlan to a port then its not called a native port ...it just a trunk port."

-I think you might be wrong here. I am pretty sur eyou can set a native vlan on a trunk port?

Sandeep Choudhary Wed, 08/01/2012 - 01:02

HI Atle,

Dont het me wrong.

My meaning is that ....yes you can use vlan 1 on a trunk port but you can not say that it is native trunk port....it is called normal trunk port.

TRunk port can be used with any vlans.

Regards

CSCO12035638 Wed, 08/01/2012 - 01:10

yes, I thought so. Trunk ports can be used with any vlans, and a trunk port can also have a native vlan or it can not have a native vlan. Correct?

CSCO12035638 Fri, 08/03/2012 - 02:23

I still think we do not understand each other..

You said:

"

To make it native, I will have to make the port a trunk port and add a native vlan to that, correct?

only vlan 1 is called native vlan, other vlan are not native. (You can only use native word with vlan 1).

if you add two vlan to a port then its not called a native port ...it just a trunk port.

"

I think this is wrong, if it is not I am sorry:

We agree that a trunk port can have a native vlan. But on the trunk we can make whatever vlan we want native. How can you say we can only use the word native with vlan 1?

answanso Fri, 08/03/2012 - 02:42

The statement is incorrect, you can modify the native VLAN with command I mentioned above.

Thanks

Anthony

Actions

Login or Register to take actions

This Discussion

Posted July 31, 2012 at 6:54 AM
Stats:
Replies:13 Avg. Rating:4.75
Views:1210 Votes:0
Shares:0
Tags: vlan
+

Related Content

Discussions Leaderboard