Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?

 
 

native-vlan-id

Syntax

Hierarchy Level

For platforms without ELS:

For MX Series routers and platforms with ELS:

Description

Configure the VLAN identifier to associate untagged packets received on a trunk interface.

You must configure a logical interface with the VLAN ID that is same as the native VLAN ID confiured on the interface, to receive the untagged packets on the interface.

To configure the logical interface, include the vlan-id statement (matching the native-vlan-id statement on the physical interface) at the [edit interfaces interface-name unit logical-unit-number] hierarchy level.

When the native-vlan-id statement is included with the flexible-vlan-tagging statement, untagged packets are accepted on the same mixed VLAN-tagged port and on the interfaces that are configured for Q-in-Q tunneling.

When the native-vlan-id statement is combined with the interface-mode statement, untagged packets are accepted and forwarded within the bridge domain or VLAN that is configured with the matching VLAN ID.

Note:

Starting in Junos OS Release 17.1R1, you can send untagged traffic without a native VLAN ID to the remote end of the network. To do this, remove the native VLAN ID from the untagged traffic configuration by setting the no-native-vlan-insert statement. If you do not configure this statement, the native VLAN ID is added to the untagged traffic.

Default

By default, the untagged packets are dropped on trunk interfaces. That is, if you do not configure the native-vlan-id option on trunk interfaces, the untagged packets are dropped.

Options

vlan-id—Numeric identifier of the VLAN.

  • Range: 1 through 4094

number—VLAN ID number.

  • Range: 0 through 4094.

Required Privilege Level

routing—To view this statement in the configuration.

routing-control—To add this statement to the configuration.

interface—To view this statement in the configuration.

interface-control—To add this statement to the configuration.

Release Information

Statement introduced in Junos OS Release 8.3.

Statement introduced in Junos OS Release 12.2 for ACX Series Universal Metro Routers.