06-20-2011 08:36 AM - edited 03-07-2019 12:53 AM
Hi,
If an access vlan port is configured in following way, is it wrong?
what is the use of "switchport trunk native vlan 52" in below configuration and if correct, what function does it do.
interface FastEthernet1/11
description aadg_GFM
switchport
switchport access vlan 52
switchport trunk native vlan 52
switchport mode access
Thank you all.
06-20-2011 08:37 AM
It's doing nothing as the port is set to mode access.
If the switch was changed to mode trunk, Vlan52 would be the native Vlan.
06-20-2011 08:39 AM
That config is not required, as the switchport is in "Access" mode and not "Trunking". If the port was in trunking mode - any layer 2 frames on the port with no 802.1q tag will be placed into VLAN 52.
06-20-2011 08:48 AM
thank you, that helped me grasp it.
Last question, in which scenario is it possible that frames on a trunked port will come without 802.1q tag. And what happens if a trunk is not configured with native vlan. what are the consequences of it.
thank you.
06-20-2011 10:37 AM
With the use of the native vlan keyword, you are able to send frames without 802.1q tags. In your case, Vlan 52 would be untagged if you were to configure the switchport as trunk.
If the port is not configured with the native vlan, it will use Vlan 1 as the default native vlan. In other words, only Vlan 1 traffic will be sent untagged.
Regards,
Edison
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide