.. _example_protocols_bgp_neighbor_address-family_ipv6-unicast_nexthop-self: ############ Nexthop-Self ############ This scenario demonstrates how to configure nexthop-self for IPv6 BGP neighbors. The nexthop-self command sets the router's own address as the next-hop for routes advertised to this neighbor. This is commonly used in iBGP to ensure routes learned from eBGP have a reachable next-hop within the iBGP domain. .. image:: nexthop-self.svg :width: 800 ****************************************************************************** Test iBGP IPv6 - Without nexthop-self reflected route has unreachable next-hop ****************************************************************************** Description =========== Test that without ``nexthop-self``, routes advertised to iBGP peer DUT1 keep the original next-hop (DUT2: 2001:db8:2::200). Since DUT1 has no route to 2001:db8:2::/64, the next-hop is inaccessible and the route is not usable. Scenario ======== .. include:: nexthop-self/testibgpipv6-withoutnexthop-selfreflectedroutehasunreachablenext-hop .. raw:: html
********************************** Test iBGP IPv6 - With nexthop-self ********************************** Description =========== Test to verify that with nexthop-self, the next-hop is changed to DUT0's address. DUT0 receives route from eBGP peer DUT2 and advertises to iBGP peer DUT1. With nexthop-self, DUT1 sees DUT0's address as the next-hop. Scenario ======== .. include:: nexthop-self/testibgpipv6-withnexthop-self .. raw:: html