Configure the Primary Address for an Interface
The primary address on an interface is the address that is used by default as the local address for broadcast and multicast packets sourced locally and sent out the interface. For example, the local address in the packets sent by a
ping interface so-0/0/0.0 255.255.255.255command is the primary address on interfaceso-0/0/0.0. The primary address flag also can be useful for selecting the local address used for packets sent out unnumbered interfaces when multiple non-127 addresses are configured on the loopback interface,lo0. By default, the primary address on an interface is selected as the numerically lowest local address configured on the interface.To set a different primary address, include the
primarystatement:primary;You can configure this statement at the following hierarchy levels: