Configuring BGP4+ neighbors using link-local addresses

BGP4+ neighbors can be configured using link-local addresses.
  1. Enter the configure terminal command to access global configuration mode.
    device# configure terminal
  2. Enter the router bgp command to enable BGP routing.
    device(config)# router bgp
  3. Enter the local-as command to configure the autonomous system number (ASN) in which your device resides.
    device(config-bgp-router)# local-as 1000
  4. Enter the neighbor remote-as command, specifying an IPv6 address, to specify the ASN in which the remote neighbor resides.
    device(config-bgp-router)# neighbor fe80:4398:ab30:45de::1 remote-as 1001
  5. Enter the neighbor update-source command to specify an interface.
    device(config-bgp-router)# neighbor fe80:4398:ab30:45de::1 update-source ethernet 1/3/1
  6. Enter the address-family ipv6 unicast command to enter IPv6 address family configuration mode.
    device(config-bgp-router)# address-family ipv6 unicast
  7. Enter the neighbor activate command to enable the exchange of information with the neighbor.
    device(config-bgp-ipv6u)# neighbor fe80:4398:ab30:45de::1 activate
  8. Enter the neighbor route-map command and specify the out keyword to apply a route map to outgoing routes.
    device(config-bgp-ipv6u)# neighbor fe80:4398:ab30:45de::1 route-map out myroutemap
  9. Enter the exit command until you return to global configuration mode.
    device(config-bgp-ipv6u)# exit
  10. Enter the route-map name permit command to define the route map and enter route map configuration mode.
    device(config)# route-map myroutemap permit 10
  11. Enter the set ipv6 next-hop command and specify an IPv6 address to set the IPv6 address of the next hop.
    device(config-routemap-myroutemap)# set ipv6 next-hop 2001::10

The following example configures a neighbor using a link-local address and configures a route map to set up a global next hop for packets destined for the neighbor.

device# configure terminal
device(config)# router bgp
device(config-bgp-router)# local-as 1000
device(config-bgp-router)# neighbor fe80:4398:ab30:45de::1 remote-as 1001
device(config-bgp-router)# neighbor fe80:4398:ab30:45de::1 update-source ethernet 1/3/1
device(config-bgp-router)# address-family ipv6 unicast
device(config-bgp-ipv6u)# neighbor fe80:4398:ab30:45de::1 activate
device(config-bgp-ipv6u)# neighbor fe80:4398:ab30:45de::1 route-map out myroutemap
device(config-bgp-ipv6u)# exit
device(config)# route-map myroutemap permit 10
device(config-route-mapmyroutemap)# set ipv6 next-hop 2001::10