Note
This is the recommended method for configuring IPv6 next-hop.
IPv6 next-hop configured within a route-map is used to reach a remote IPv6 network. This route-map can then be attached to a neighbor or a peer- group in the outbound direction.
In the above example, the configuration that must be applied to the interface, on which the eBGP session is to be enabled, is shown in the green box.
This is the consolidated configuration on the interface on which eBGP (MP-BGP) is configured.
interface eth 0/23 ip address 192.168.23.2/24 ipv6 address 192:168:23::2/64 router bgp neighbor 192.168.23.3 remote-as 4 address-family ipv6 unicast redistribute static neighbor 192.168.23.3 activate neighbor 192.168.23.3 route-map out rmap1
The following configuration must be applied globally on R2.
route-map rmap1 permit 15 set ipv6 next-hop 192:168:23::2
Consider the following when using route-maps to configure the next-hop.
The same route-map cannot be used by IPv4 and IPv6 neighbors to modify next-hop.
There might be a marginal increase in convergence time when using out-bound policy.
Outbound policy can also be used to modify next-hop for a regular IPv4/IPv6 eBGP session.