cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
13521
Views
13
Helpful
17
Replies

Can you have a native vlan on a access port

GlynnNewey0470
Level 1
Level 1

On a trunked port for a wap we enable a native vlan for non tagged traffic to be passed to the port which I understand.

I have noticed on some non Cisco hardware that you can define the native vlan on a access port as well as a trunked port. So any non tagged data can be passed to a access port if there is no tagged data.

Can you define a native vlan on a Cisco switch access port (I am guessing yes with all the functionality Cisco offers).

What would be a scenario that would require a native vlan for a access port ? other than just untagged data

2 Accepted Solutions

Accepted Solutions

Hello,

what non-Cisco hardware allows an access port to have a native Vlan ? I have never seen it on any Cisco device, as the native Vlan is usually tied to the trunk config...

Would be interesting to know which devices let you do that...

View solution in original post

David,

I very much like your approach - probably because we both see it the same way : )

Indeed, on an access port, the access VLAN is the native VLAN, because by definition, the traffic on native VLAN is untagged which is always the case for the access VLAN on an access port.

However, Glynn's question may also mean: Is it possible to have switchport trunk native vlan ... configured on an access port? The answer in that case would be: Yes, but the command would be ignored because the port is operating as an access port, not as a trunk, and so all commands starting with switchport trunk are ignored even if configured.

My 0.02€.

Best regards,
Peter

View solution in original post

17 Replies 17

marce1000
Hall of Fame
Hall of Fame
- At least a port can not be access port and trunk togethet.

M.


-- Each morning when I wake up and look into the mirror I always say ' Why am I so brilliant ? '
    When the mirror will then always repond to me with ' The only thing that exceeds your brilliance is your beauty! '

Hello,

what non-Cisco hardware allows an access port to have a native Vlan ? I have never seen it on any Cisco device, as the native Vlan is usually tied to the trunk config...

Would be interesting to know which devices let you do that...

Jon Marshall
Hall of Fame
Hall of Fame

 

To answer your specific question as far as I know on Cisco switches the native vlan is only used on trunk ports. 

 

Jon

as i know, only trunk port can configure with native vlan. that helps to pass un-tagged traffic thorough trunks.

Please rate this and mark as solution/answer, if this resolved your issue
Good luck
KB

Hello.

The VLAN assigned to an access port IS the native VLAN. If you think about it the native VLAN is the one that is sent untagged on the trunk. When you assign a VLAN on an access port say VLAN 5, when the switch has traffic destined for VLAN 5 it will send to that access port and Untag it before it sends to the PC therefore making it the native VLAN. It just usually not refereed to it like that. But the functionality is the same.

 

Hope that helps

-David

David,

I very much like your approach - probably because we both see it the same way : )

Indeed, on an access port, the access VLAN is the native VLAN, because by definition, the traffic on native VLAN is untagged which is always the case for the access VLAN on an access port.

However, Glynn's question may also mean: Is it possible to have switchport trunk native vlan ... configured on an access port? The answer in that case would be: Yes, but the command would be ignored because the port is operating as an access port, not as a trunk, and so all commands starting with switchport trunk are ignored even if configured.

My 0.02€.

Best regards,
Peter

Like @David Ruess and @Peter Paluch, I too would normally say a Cisco access port's assigned VLAN much behaves like a Cisco native VLAN port on a Cisco trunk, i.e. frames for that VLAN will be sent untagged, and if an untagged frame is received, it will be "within" the VLAN assigned to the access port.

However, I believe (?) a Cisco trunk port will also accept received frames tagged for the native VLAN.  I.e. incoming packets can be without a VLAN tag or with a VLAN tag for the native VLAN.  Both would be forwarded into the native VLAN.  I don't believe (?) a Cisco access port will accept a VLAN tagged frame (except when a voice VLAN has also been assigned to that port, and then, the VLAN tag must match the voice VLAN).

I recall (?) other vendor's "trunk" ports, behave more in conformance with RFCs, than Cisco's (Cisco implementations often predate RFCs, and they aren't always revised to fully conform so as to maintain backward Cisco capability pre-RFC).  Perhaps something similar with access ports.(?)

BTW, it's not uncommon to find other vendors' network equipment work a bit differently from Cisco (or also possibly other vendors too).  Sometimes getting different vendor equipment to "play nice together" can be "interesting" (as in the [possible] Chinese curse).

Hi Joseph,

To my best recollections,

  • On trunks, Catalyst switches will accept tagged frames on/in the native VLAN. After all, this is inevitable if the traffic in the native VLAN needs to be marked with an explicit Class-of-Service (CoS) value because the CoS field is an integral part of the VLAN tag. The only way, then, is to tag even the native VLAN traffic.
  • On access ports, the behavior varied between platforms:
    • Old Catalyst switches (Cat 2950, 3550) accepted tagged traffic on access ports if the VLAN ID was 0 or matched the access VLAN ID. The port did not need to be configured with a voice VLAN, but if it was, it would also accept tagged traffic on the voice VLAN, of course.
    • Newer Catalysts (starting from Cat 2960) accept tagged traffic on access ports if the voice VLAN is configured, and then the accepted tagged traffic would be for VLAN IDs 0, access VLAN, and voice VLAN.

Admittedly, tagged traffic on an access port is an unusual occurrence and different platforms will very likely vary in their behavior so I wouldn't claim that the behavior described above would apply across all Catalyst portfolio.

Best regards,
Peter

Thanks Peter, VLAN 0 tags, for CoS purposes, slipped my mind.

Not really surprising the different Cisco generation switch behaviors you mention.  I.e. you don't always need to mix vendors for "interesting" "let's all play nice together", laugh.

Hey Joe : )

Regarding the surprisingness - or not - this behavior is specific to the ASIC on which the switch is built. 2950/3550 used one generation of the ASIC, 2960/3560/3750 used another one, 3650/3850 yet another one, and I'm not even going to talk about the plethora of ASICs used on the different linecard types of 4500, 6500, now 9500... Some ASICs form a continuing evolution line, but often, a new ASIC is an entirely new implementation, a new take on the thing. And especially with rare and corner cases like these, the behavior may vary wildly.

Best regards,
Peter

Peter, sort of ditto for QoS on switches and their line cards too.

I believe that there are 2 ways of approaching the questions asked in the original post. Several of the posts (especially Peter's excellent explanation) focus on what commands are you able to enter without encountering a syntax error. From that perspective yes it is possible to configure a native vlan on an access port. The other way of looking at the question is the perspective of what are the behaviors of the interface. If you configure an access port with native vlan does the behavior change. From this question asked in the original post "What would be a scenario that would require a native vlan for a access port ?" I believe the original poster is more interested in the behaviors then in what syntax is allowed. 

 

HTH

Rick

Hi Peter,

If access port is configured with native vlan how does the traffic flow through L2 domain? Does this mean that the traffic received on such access port is forwarded in native vlan on trunk? So basically if I have device connected on native vlan 10, in order to reach default gateway, I have to put default gateway in the native vlan, as well? I am confused because I understand I can have one port configured with access vlan 10 and other with switchport trunk native vlan 10. How can this work?

There are several things in your question that I do not understand. Let me offer this explanation and if it does not satisfy you then please provide clarification. If a switch port is configured as an access port in vlan 10 it can also have configuration that the native vlan is vlan 10. If a frame is received that is untagged it is treated as belonging in vlan 10 and can be forwarded to other ports in vlan 10 (including to a port configured as a trunk that includes vlan 10, vlan 10 is not necessarily the native vlan). If a frame is received that is tagged as being in vlan 10 it is treated as belonging in vlan 10 and can be forwarded to other ports in vlan 10 (including to a port configured as a trunk that includes vlan 10, vlan 10 is not necessarily the native vlan). If a frame is received that is tagged as being in some other vlan (which would indicate some error in the configuration of the peer device) it will not be forwarded to any port.

The gateway for vlan 10 must be an interface (or subinterface) that belongs in vlan 10.

HTH

Rick