Reset Search
 

 

Article

Route-map applied to BGP neighbor peer-group under address-family ipv6-unicast does not work.

« Go Back

Information

 
TitleRoute-map applied to BGP neighbor peer-group under address-family ipv6-unicast does not work.
Symptoms
Configure route map DENY_ANYv6 with a rule to filter any IPv6 route:

route-map DENY_ANYv6 deny 10
match ipv6 address prefix-list DENY_ANYv6
ipv6 prefix-list DENY_ANYv6 seq 10 deny ::/0 le 128


Define an IPv6 BGP neighbor peer-group PeerGroup6 and apply route-map DENY_ANYv6 to it. Route map DENY_ANYv6 suppose to filter any IPv6 route, but it fails to filter the route. However if similar IPv4 route-map applied to an IPv4 BGP peer-group it works fine.

BGP configuration:
address-family ipv6 unicast
..
neighbor Group6 route-map in DENY_ANYv6
neighbor Group6 route-map out DENY_ANYv6
neighbor 2016:1::2 activate
exit-address-family

NOTE: Above route-map applied to IPv6 BGP neighbor peer-group does not work. It fails to filter the IPv6 route.
Environment
Software Release: N/A
Fixed in Version: N/A
Cause
Unlike IPv4 BGP neighbor peer-group IPv6 BGP neighbor peer-group is not activated by default, user need to activate the peer group explicitly under "address-family ipv6-unicast"

BGP configuration:
address-family ipv6 unicast
..
neighbor Group6 route-map in DENY_ANYv6
neighbor Group6 route-map out DENY_ANYv6
neighbor 2016:1::2 activate
neighbor Group6 activate
>>>>>>>>>>>>>>>> This configuration was missing.
exit-address-family

After activating the IPv6 BGP peer-group, it should start working as given below.

MLX# sh ipv6 bgp neighbor 2016:1::2 received-routes
There are 65 received routes from neighbor 2016:1::2
Searching for matching routes, use ^C to quit...
Status A:AGGREGATE B:BEST b:NOT-INSTALLED-BEST C:CONFED_EBGP D:DAMPED
E:EBGP H:HISTORY I:IBGP L:LOCAL M:MULTIPATH m:NOT-INSTALLED-MULTIPATH
S:SUPPRESSED F:FILTERED s:STALE
Prefix Next Hop MED LocPrf Weight Status
1 1:1:1::1/128 2016:1::2 0 100 0 EF
AS_PATH: 64601
2 1:1:1::2/128 2016:1::2 0 100 0 EF
AS_PATH: 64601
3 1:1:1::3/128 2016:1::2 0 100 0 EF
AS_PATH: 64601
4 1:1:1::4/128 2016:1::2 0 100 0 EF
AS_PATH: 64601
5 1:1:1::5/128 2016:1::2 0 100 0 EF

MLX#sh ipv6 bgp neighbor 2016:1::2 advertised-routes
No routes are advertised to Neighbor 2016:1::2


NOTE: So above routes are filtered received from neighbor as well did not advertise routes to neighbor.
Resolution
For IPv6 BGP peer group, one must perform the tasks listed below:
1. Create a peer group.
2. Add a neighbor to the local device.
3. Assign the IPv6 neighbor to the peer group.
4. Activate the IPv6 neighbor and peer group.

router bgp
neighborGroup6 peer-group
..............
address-family ipv6 unicast
..........
neighbor 2016:1::2 activate
neighbor Group6 activate
exit-address-family

Additional notes
Route-map needs to be applied to individual IPv6 BGP neighbor.

address-family ipv6 unicast

neighbor 2016:1::2 activate
neighbor 2016:1::2 route-map in DENY_ANYv6
neighbor 2016:1::2 route-map out DENY_ANYv6
exit-address-family

Feedback

 

Was this article helpful?


   

Feedback

Please tell us how we can make this article more useful.

Characters Remaining: 255