01-17-2017 08:34 AM - edited 03-05-2019 07:51 AM
Do you think the below two prefixes are different under prefix-set ABCD
1111:2222:3333:4444:5555:6666:7777:8888
1111:2222:3333:4444:5555:6666:7777:8888/128
I think these two expressions have different meaning. Second one indicates its mask 128, but first one does not. Can we consider the first one’s mask is also 128 by default? If so, when the two routes are put under prefix-set in ASR9K, the two prefixes have the same meaning?
Please see the below two:
prefix-set ABCD
1111:2222:3333:4444:5555:6666:7777:8888
and
prefix-set ABCD
1111:2222:3333:4444:5555:6666:7777:8888/128
thank you
Solved! Go to Solution.
01-17-2017 11:42 AM
Hi,
documentation is always your friend :)
http://www.cisco.com/c/en/us/td/docs/routers/asr9000/software/asr9k_r6-1/routing/configuration/guide/b-routing-cg-asr9k-61x/b-routing-cg-asr9k-61x_chapter_01011.html#con_1228824
"If a prefix match specification has no mask length, then the default mask length is 32 for IPv4 and 128 for IPv6."
XR will allow you to configure lot of combinations but per documentation it will always match same prefix
RP/0/0/CPU0:ios#sh run | begin prefix
Building configuration...
prefix-set ABC
1111:2222:3333:4444:5555:6666:7777:8888/128,
1111:2222:3333:4444:5555:6666:7777:8888/128
end-set
!
prefix-set TEST
1111:2222:3333:4444:5555:6666:7777:8888
end-set
!
prefix-set TEST-1
1111:2222:3333:4444:5555:6666:7777:8888/128
end-set
!
prefix-set TEST-2
1111:2222:3333:4444:5555:6666:7777:8888,
1111:2222:3333:4444:5555:6666:7777:8888/128
end-set
!
end
01-17-2017 11:42 AM
Hi,
documentation is always your friend :)
http://www.cisco.com/c/en/us/td/docs/routers/asr9000/software/asr9k_r6-1/routing/configuration/guide/b-routing-cg-asr9k-61x/b-routing-cg-asr9k-61x_chapter_01011.html#con_1228824
"If a prefix match specification has no mask length, then the default mask length is 32 for IPv4 and 128 for IPv6."
XR will allow you to configure lot of combinations but per documentation it will always match same prefix
RP/0/0/CPU0:ios#sh run | begin prefix
Building configuration...
prefix-set ABC
1111:2222:3333:4444:5555:6666:7777:8888/128,
1111:2222:3333:4444:5555:6666:7777:8888/128
end-set
!
prefix-set TEST
1111:2222:3333:4444:5555:6666:7777:8888
end-set
!
prefix-set TEST-1
1111:2222:3333:4444:5555:6666:7777:8888/128
end-set
!
prefix-set TEST-2
1111:2222:3333:4444:5555:6666:7777:8888,
1111:2222:3333:4444:5555:6666:7777:8888/128
end-set
!
end
01-18-2017 05:27 PM
Thank you!
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