Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?

 
 

VLAN Sub-Interfaces

VLAN sub-interfaces are like logical interfaces on a physical switch or router. They access only tagged packets that match the configured VLAN tag. A sub-interface has a parent interface. A parent interface can have multiple sub-interfaces, each with a VLAN ID. When you run the cloud-native router, you must associate each sub-interface with a specific VLAN. Starting in Juniper Cloud-Native Router Release 23.2, the cloud-native router supports the use of VLAN sub-interfaces in L3 mode along with the previously supported L2 mode.

Configuration Example

The VLAN sub-interfaces are configured using the Netowrk Attachment Definition (NAD) and pod YAML manifests. Please see the Cloud-Native Router Use-Cases and Configuration Overview and relevant configuration examples for more information.

The Cloud-Native Router controller interface configuration viewed using the show configuration command is as shown below (the output is trimmed for brevity).

For L2 mode:

For L3 mode:

On the vRouter, a VLAN sub-interface configuration is as shown below:

For L2 mode:

For L3 mode: