Configure a Route Map for BGP4+ Prefixes

  1. Access global configuration mode.
    device# configure terminal
  2. Configure an IPv6 prefix list to filter traffic.
    A prefix list consists of at least one conditional statement that executes an action if a route matches a specified prefix.
    device(config)# ipv6 prefix-list myprefixlist permit 2001:db8::/32
    This example creates a prefix list named myprefixlist that allows routes with the prefix of 2001:db8::/32.
  3. Create a route map instance and allow a matching pattern.
    device(config)# route-map myroutemap permit 10
    This example creates a route map called myroutemap and allows a matching pattern of 10.
  4. Configure the route map to match IPv6 routes that are specified by the prefix list.
    device(config-route-map-myroutemap/permit/10)# match ipv6 address prefix-list myprefixlist
  5. Return to global configuration mode.
    device(config-route-map-myroutemap/permit/10)# exit
  6. Access BGP configuration mode.
    device(config)# router bgp
  7. Specify the autonomous system in which your device resides.
    device(config-bgp-router)# local-as 1000
  8. Specify the autonomous system in which the remote neighbor resides.
    device(config-bgp-router)# neighbor fe80:4398:ab30:45de::1 remote-as 1001
  9. Access IPv6 address family configuration mode.
    device(config-bgp-router)# address-family ipv6 unicast
  10. Enable the exchange of information with the neighbor.
    device(config-bgp-ipv6u)# neighbor fe80:4398:ab30:45de::1 activate
  11. Apply the route map to the neighbor's outgoing routes.
    device(config-bgp-ipv6u)# neighbor fe80:4398:ab30:45de::1 route-map out myroutemap
    For an example of applying a route map as the inbound routing policy, see the Extreme SLX-OS Command Reference.

This example summarizes the commands in this procedure.

device# configure terminal
device(config)# ipv6 prefix-list myprefixlist seq 10 permit 2001:db8::/32
device(config)# route-map myroutemap permit 10
device(config-route-map-myroutemap/permit/10)# match ipv6 address prefix-list myprefixlist
device(config-route-map-myroutemap/permit/10)# exit
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)# 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