Configuring Logical Units on the Loopback Interface for Routing Instances in Layer 3 VPNs

For Layer 3 VPNs (VRF routing instances), you can configure a logical unit on the loopback interface into each VRF routing instance that you have configured on the router. Associating a VRF routing instance with a logical unit on the loopback interface allows you to easily identify the VRF routing instance.

Doing this is useful for troubleshooting:

You can also configure a firewall filter for the logical unit on the loopback interface; this configuration allows you to filter traffic for the VRF routing instance associated with it.

The following describes how firewall filters affect the VRF routing instance depending on whether they are configured on the default loopback interface, the VRF routing instance, or some combination of the two. The “default loopback interface” refers to lo0.0 (associated with the default routing table), and the “VRF loopback interface” refers to lo0.n, which is configured in the VRF routing instance.

To configure a logical unit on the loopback interface, include the unit statement:

unit number {family inet {address address;}}

You can include this statement at the following hierarchy levels:

To associate a firewall filter with the logical unit on the loopback interface, include the filter statement:

filter {input filter-name;}

You can include this statement at the following hierarchy levels:

To include the lo0.n interface (where n specifies the logical unit) in the configuration for the VRF routing instance, include the following statement:

interface lo0.n;

You can include this statement at the following hierarchy levels:

For more information about how to configure firewall filters, see the Junos Policy Framework Configuration Guide.