dot1q native vlan
To assign the native VLAN ID of a physical interface trunking 802.1Q VLAN traffic, use the dot1q native vlan command in interface configuration mode. To remove the VLAN ID assignment, use the no form of this command.
dot1q native vlan vlan-id
Syntax Description
vlan-id |
Trunk interface ID. Range is from 1 to 4094 inclusive (0 and 4095 are reserved). |
Command Default
No default behavior or values
Command Modes
Interface configuration
Command History
Release |
Modification |
---|---|
Release 3.0 |
This command was introduced. |
Release 5.0.0 |
This command was introduced. |
Usage Guidelines
The dot1q native vlan command defines the default, or native VLAN, associated with a 802.1Q trunk interface. The native VLAN of a trunk interface is the VLAN to which all untagged VLAN packets are logically assigned.
Note |
The native VLAN cannot be configured on a subinterface of the trunk interface. The native VLAN must be configured with the same value at both ends of the link, or traffic can be lost or sent to the wrong VLAN. |
Task ID
Task ID |
Operations |
---|---|
vlan |
read, write |
Examples
The following example shows how to configure the native VLAN of a TenGigE0/2/0/4 trunk interface as 1. Packets received on this interface that are untagged, or that have an 802.1Q tag with VLAN ID 1, are received on the main interface. Packets sent from the main interface are transmitted without an 802.1Q tag.
RP/0/RP0RSP0/CPU0:router(config)# interface TenGigE 0/2/0/4
RP/0/RP0RSP0/CPU0:router(config-if)# dot1q native vlan 1