cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
583
Views
5
Helpful
2
Replies

Two IPV6 prefixes have same meaning under prefix-set in ASR9K?

wfqk
Level 5
Level 5

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

1 Accepted Solution

Accepted Solutions

blau grana
Level 7
Level 7

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
Best Regards Please rate all helpful posts and close solved questions

View solution in original post

2 Replies 2

blau grana
Level 7
Level 7

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
Best Regards Please rate all helpful posts and close solved questions

Thank you!

Review Cisco Networking for a $25 gift card