04-07-2024 02:05 AM
I'm studying and this has me confused as I am trying to match 2001:db8:acad:224::1 and 2001:db8:acad:225::1
The prefix list below I assumed captures these bgp route advertisements from the peer
,
ipv6 prefix-list EVEN-NETWORK-6 permit 2001:db8:acad:224::/63 route-map ROUTE-BALANCE6 permit 10 match ipv6 address prefix-list EVEN-NETWORK-6 set local-preference 200 exit router bgp 41 bgp router-id 3.3.3.3 neighbor 2001:db8:acad:2000::1 remote-as 15 neighbor 2001:db8:acad:2001::1 remote-as 15 neighbor 209.165.200.226 remote-as 15 neighbor 209.165.200.226 update-source loopback 0 neighbor 209.165.200.226 ebgp-multihop 3 address-family ipv4 unicast neighbor 209.165.200.226 activate no neighbor 2001:db8:acad:2000::1 activate no neighbor 2001:db8:acad:2001::1 activate network 209.165.227.1 mask 255.255.255.255 exit address-family ipv6 unicast no neighbor 209.165.200.226 activate neighbor 2001:db8:acad:2000::1 activate neighbor 2001:db8:acad:2001::1 activate neighbor 2001:db8:acad:2001::1 route-map ROUTE-BALANCE6 in
Now the answer key says to do this, to catch both the prefixes and apply local pref:
no ipv6 prefix-list EVEN-NETWORK-6 permit 2001:db8:acad:224::/63 R3(config)# ipv6 prefix-list EVEN-NETWORK-6 sequence 5 permit 2001:db8:acad:224::/64 R3(config)# ipv6 prefix-list EVEN-NETWORK-6 sequence 10 permit 2001:db8:acad:225::/64
Now the answer key is right and I am wrong,
Why didn't the original prefix list match those routes?
Solved! Go to Solution.
04-07-2024 07:31 AM
Hi @hfakoor222 ,
The prefix-list you initially configured only matches the prefix 2001:db8:acad:224::/63 (exact match). If you want the prefix-list to match the /63 and the more specific prefixes (i.e. 2001:db8:acad:224::/64 and 2001:db8:acad:225::/64) you need to modify it as follow:
ipv6 prefix-list EVEN-NETWORK-6 permit 2001:db8:acad:224::/63 le 64
Regards,
04-07-2024 07:31 AM
Hi @hfakoor222 ,
The prefix-list you initially configured only matches the prefix 2001:db8:acad:224::/63 (exact match). If you want the prefix-list to match the /63 and the more specific prefixes (i.e. 2001:db8:acad:224::/64 and 2001:db8:acad:225::/64) you need to modify it as follow:
ipv6 prefix-list EVEN-NETWORK-6 permit 2001:db8:acad:224::/63 le 64
Regards,
04-07-2024 09:46 AM - edited 04-07-2024 09:46 AM
Thanks.
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide