[Contents] [Prev] [Next] [Index] [Report an Error]

Configuring the Local IP Address

You can specify the address of the local end of a BGP session. You generally do this to explicitly configure the system’s IP address from BGP’s point of view. This IP address can be either an IPv6 or IPv4 address. Typically, an IP address is assigned to a loopback interface, and that IP address is configured here. This address is used to accept incoming connections to the peer and to establish connections to the remote peer. To assign a local address, include the local-address statement:

local-address address;

Note: A BGP session can still be established when only one of the paired routers has a local address configured.

For a list of hierarchy levels at which you can include this statement, see the statement summary section for this statement.

If you include the default-address-selection statement in the configuration, the software chooses the system default address as the source for most locally generated IP packets. For more information, see the JUNOS System Basics Configuration Guide. For protocols in which the local address is unconstrained by the protocol specification, for example IBGP and multihop EBGP, if you do not configure a specific local address when configuring the protocol, the local address is chosen using the same methods as other locally generated IP packets.


[Contents] [Prev] [Next] [Index] [Report an Error]