05-04-2018 09:11 PM - edited 03-05-2019 10:23 AM
Sorry for the dumb question, but is this prefix-list just allowing everything at the end? so there is no point in specifying subnets before the last statment?
ip prefix-list eigrp-to-bgp seq 100 permit 0.0.0.0/0
ip prefix-list eigrp-to-bgp seq 120 permit 10.60.225.0/24
ip prefix-list eigrp-to-bgp seq 140 permit 10.124.10.0/24
ip prefix-list eigrp-to-bgp seq 240 permit 172.28.250.0/24
ip prefix-list eigrp-to-bgp seq 310 permit 192.168.12.0/24
ip prefix-list eigrp-to-bgp seq 320 permit 0.0.0.0/0 le 32
!
route-map eigrp-to-bgp permit 100
match ip address prefix-list eigrp-to-bgp
!
Solved! Go to Solution.
05-05-2018 01:24 AM
Hello,
indeed, 0.0.0.0/0 le 32 would allow all routes...making all your previous lines obsolete...
05-05-2018 07:57 AM
Hi,
Indeed
ip prefix-list eigrp-to-bgp seq 320 permit 0.0.0.0/0 le 32
is basically permitting all, basically this last rule reads as:
"permit anything from 0.0.0.0/0 (basically all ips) with a mask from 0 to less or equal than 32 (all possible subnets)"
If you want to avoid other subnets not explicitly added to the prefix-list, change the permit statement to a deny one.
There are no dumb questions btw! it's better to always ask when unsure
05-05-2018 01:24 AM
Hello,
indeed, 0.0.0.0/0 le 32 would allow all routes...making all your previous lines obsolete...
05-05-2018 07:57 AM
Hi,
Indeed
ip prefix-list eigrp-to-bgp seq 320 permit 0.0.0.0/0 le 32
is basically permitting all, basically this last rule reads as:
"permit anything from 0.0.0.0/0 (basically all ips) with a mask from 0 to less or equal than 32 (all possible subnets)"
If you want to avoid other subnets not explicitly added to the prefix-list, change the permit statement to a deny one.
There are no dumb questions btw! it's better to always ask when unsure
05-07-2018 09:38 AM
Thank you very much. So than what is the first line saying?
ip prefix-list eigrp-to-bgp seq 100 permit 0.0.0.0/0
05-07-2018 10:25 AM
Hi, this one is only permitting the default route, since you didn't add the "le or ge" words, basically reads as:
Permit Route 0.0.0.0 with mask 0.0.0.0 exactly
Thus allowing only this specific prefix.
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