Using Route Map

Note

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.

Click to expand in new window
Using outbound route-map
Using outbound route-map

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 

Recommendations when using outbound route-maps

Consider the following when using route-maps to configure the next-hop.