Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?

 

default-address-selection

 

Syntax

Hierarchy Level

Release Information

Statement introduced in Junos OS Release 11.1 for the QFX Series.

Statement introduced in Junos OS Release 14.1X53-D20 for the OCX Series.

Description

Use the loopback interface, lo0, as the source address for all locally generated IP packets when the packet is sent through a routed interface, but not when the packet is sent through a local interface such as fxp0. The lo0 interface is the interface to the switch’s Routing Engine.

Default

The default address is used as the source address for all locally generated IP packets on outgoing interfaces that are unnumbered. If an outgoing interface is numbered, the default address is chosen using the following sequence:

  • The primary address on the loopback interface lo0 that is not 127.0.0.1 is used.

  • The primary address for the primary interface or the preferred address (if configured) for the primary interface is used.

    By default, the primary address on an interface is selected as the numerically lowest local address configured on the interface.

    An interface’s primary address is used by default as the local address for broadcast and multicast packets sourced locally and sent out through the interface. An interface’s preferred address is the default local address used for packets sourced by the local switch to destinations on the subnet. By default, the numerically lowest local address configured for the interface is chosen as the preferred address on the subnet.

    To configure a different primary address or preferred address, include the primary or preferred statement at the [edit interfaces interface-name unit logical-unit-number family family address address] or [edit logical-systems logical-system-name interfaces interface-name unit logical-unit-number family family address address] hierarchy levels.

Required Privilege Level

system—To view this statement in the configuration.

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