Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?

 
 

Layer 3 Logical Interfaces

Understanding Layer 3 Logical Interfaces

A Layer 3 logical interface is a logical division of a physical interface that operates at the network level and therefore can receive and forward 802.1Q VLAN tags. You can use Layer 3 logical interfaces to route traffic among multiple VLANs along a single trunk line that connects a Juniper Networks switch to a Layer 2 switch. Only one physical connection is required between the switches. .

Note:

You can also use Layer 3 logical interfaces to provide alternative gateway addresses for smart DHCP relay. The logical tunnel (lt) and virtual loopback tunnel (vt) interfaces are not supported in logical interfaces.

To create Layer 3 logical interfaces on a switch, enable VLAN tagging, partition the physical interface into logical partitions, and bind the VLAN ID to the logical interface.

We recommend that you use the VLAN ID as the logical interface number when you configure the logical interface. QFX Series and EX4600 switches support a maximum of 4089 VLANs, which includes the default VLAN. You can assign VLAN ID in the range of 1 through 4094.

VLAN tagging places the VLAN ID in the frame header, allowing each physical interface to handle multiple VLANs. When you configure multiple VLANs on an interface, you must also enable tagging on that interface. Junos OS on switches supports a subset of the 802.1Q standard for receiving and forwarding routed or bridged Ethernet frames with single VLAN tags and running Virtual Router Redundancy Protocol (VRRP) over 802.1Q-tagged interfaces.

Configuring a Layer 3 Logical Interface

Devices use Layer 3 logical interfaces to divide a physical interface into multiple logical interfaces, each corresponding to a VLAN. Layer 3 logical interfaces route traffic between subnets.

To configure Layer 3 logical interfaces, enable VLAN tagging and partition one or more physical ports into multiple logical interfaces, each corresponding to a VLAN ID.

Before you begin, make sure you set up your VLANs. See Configuring VLANs on Switches.

To configure Layer 3 logical interfaces:

  1. Enable VLAN tagging:
  2. Bind each VLAN ID to a logical interface:

Verifying That Layer 3 Logical Interfaces Are Working

Purpose

After configuring Layer 3 logical interfaces, verify that they are set up properly and transmitting data.

Action

  1. To determine if you have successfully created the logical interfaces and the links are up:

  2. Use the ping command from a device on one subnet to an address on another subnet to determine if packets were transmitted correctly on the logical interface VLANs:

Meaning

The output confirms that the logical interfaces have been created and the links are up.