03-13-2018 02:16 AM - edited 03-05-2019 10:05 AM
Hello,
I'm trying to remember how a prefix list works. On a router of ours we have:
ip prefix-list BGP-ACCEPT-FROM-A-to-B
seq 5 permit 10.0.0.0/13 le 32
seq 10 permit 10.8.0.0/16 le 32
What routes does this exactly permit?
Thanks
Solved! Go to Solution.
03-13-2018 02:25 AM
Hi Andrew,
seq 5 permit 10.0.0.0/13 le 32
This permits every subnet of 10.0.0.0/13 = 10.0.0.0/255.248.0.0 whose own netmask is between /13 and /32 inclusive, that is, 255.248.0.0 and 255.255.255.255. In essence, this is every possible valid subnet falling into the range of 10.0.0.0 - 10.7.255.255.
seq 10 permit 10.8.0.0/16 le 32
This permits every subnet of 10.8.0.0/16 = 10.8.0.0/255.255.0.0 whose own netmask is between /16 and /32 inclusive, that is, 255.255.0.0 and 255.255.255.255. In essence, this is every possible valid subnet falling into the range 10.8.0.0 - 10.8.255.255.
Best regards,
Peter
03-13-2018 02:25 AM
Hi Andrew,
seq 5 permit 10.0.0.0/13 le 32
This permits every subnet of 10.0.0.0/13 = 10.0.0.0/255.248.0.0 whose own netmask is between /13 and /32 inclusive, that is, 255.248.0.0 and 255.255.255.255. In essence, this is every possible valid subnet falling into the range of 10.0.0.0 - 10.7.255.255.
seq 10 permit 10.8.0.0/16 le 32
This permits every subnet of 10.8.0.0/16 = 10.8.0.0/255.255.0.0 whose own netmask is between /16 and /32 inclusive, that is, 255.255.0.0 and 255.255.255.255. In essence, this is every possible valid subnet falling into the range 10.8.0.0 - 10.8.255.255.
Best regards,
Peter
03-13-2018 02:45 AM
03-13-2018 02:49 AM - edited 03-13-2018 02:50 AM
Andrew,
You are very much welcome!
Years back, I have summed up the behavior and operation of prefix-lists in the thread below - but I must admit that while the article is likely exhaustive, it's also exhausting to read :) But maybe you would still be interested in checking it out, just to get a comprehensive overview.
Thanks again!
Best regards,
Peter
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