local-ipv4-address
Syntax
local-ipv4-address local ipv4 address;
Hierarchy Level
[edit logical-systems logical-system-name protocols bgp family address-family], [edit logical-systems logical-system-name protocols bgp group group-name family address-family], [edit logical-systems logical-system-name protocols bgp group group-name neighbor address family address-family], [edit protocols bgp family address-family], [edit protocols bgp group group-name family address-family], [edit protocols bgp group group-name neighbor address family address-family]
Description
Specify the local IPv4 address of a device that is also configured with an IPv6 address in a dual-stack environment. This enables BGP to advertise IPv4 unicast reachability with IPv4 next hop to remote IPv4 hosts over an IPv6 BGP session.
BGP advertises IPv4 unicast reachability with IPv4 next hop over an IPv6 BGP session only where IPv4 is configured at both endpoints. You cannot configure this feature for the inet6 unicast, inet6 multicast, or inet6 labeled-unicast address families because BGP already has the capability to advertise these address families over an IPv6 BGP session.
The configured local-ipv4-address
is used only when
BGP advertises routes with self-next hop. When IBGP advertises routes
learned from EBGP peers, or the route reflector advertises BGP routes
to its clients, BGP does not change the route next hop and ignores
the configured local-ipv4-address
and uses the original
IPv4 next hop.
Required Privilege Level
routing—To view this statement in the configuration.
routing-control—To add this statement to the configuration.
Release Information
Statement introduced in Junos OS Release 16.1.