Configuring a route map for BGP4+ prefixes
Route maps can be applied to IPv6 unicast address prefixes either as the inbound or
outbound routing policy for neighbors under the specified address family.
- Enter the
configure terminalcommand to access global configuration mode. - Enter the
ipv6 prefix-listcommand and enter a name to configure an IPv6 prefix list.The prefix list name, sequence number, and permits packets are specified. - Enter the
route-mapcommand with the permit keyword, and specify a route map name, to define the route map and enter route map configuration mode. - Enter the
match ipv6 addresscommand and specify the name of a prefix list. - Enter the
exitcommand to return to global configuration mode. - Enter the
router bgpcommand to enable BGP routing. - Enter the
local-ascommand to configure the autonomous system number (ASN) in which your device resides. - Enter the
neighbor remote-ascommand, specifying an IPv6 address, to specify the ASN in which the remote neighbor resides. - Enter the
address-family ipv6 unicastcommand to enter IPv6 address family configuration mode. - Enter the
neighbor activatecommand to enable the exchange of information with the neighbor. - Enter the
neighbor route-mapcommand and specify the out keyword to apply a route map to outgoing routes.
The following example applies a route map, “myroutemap”, as the outbound routing policy for a neighbor.
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)# match ipv6 address prefix-list myprefixlist device(config-route-map-myroutemap)# 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