07-21-2010 09:18 AM - edited 03-04-2019 09:08 AM
I want to have a prefix list that will permit a /16 address block as well as any networks within the /16. In other words the network could have networks
172.20.10.0/24
172.20.21.0/24
instead of allowing the individual networks I wanted to all the whole /16 in one line in the prefix list
Can i do this using the ge command ?
ip prefix-list XXX permit 172.20.0.0/16 ge ?
I tried to do " ge 16" and got a message saying "% Invalid prefix range for 172.20.0.0/16, make sure: len < ge-value <= le-value"
Solved! Go to Solution.
07-21-2010 09:55 AM
If you want to include 172.16.0.0/16 and any subnets of that then you should use -
172.16.0.0/16 le 32
which means the first 2 octets must match 172.16. and then you can have combination of subnet mask after that ie. 17, 18, 19 -> 32.
Jon
07-21-2010 09:33 AM
please try:-
ip prefix-list XXX permit 172.20.0.0/16 le 24
This means check the first 16 bits in the mask and it should be less than 24 !
If you want more precise over teh networks to be advertised, you may need to put lesser bits instead of 24, say 19.
Hope to help
07-21-2010 09:35 AM
Hi,
Thank you. I will try that and let you know
07-21-2010 09:55 AM
If you want to include 172.16.0.0/16 and any subnets of that then you should use -
172.16.0.0/16 le 32
which means the first 2 octets must match 172.16. and then you can have combination of subnet mask after that ie. 17, 18, 19 -> 32.
Jon
07-21-2010 10:45 AM
So if i want to include the /24 for 172.16.3.0 and any subnets within it I would do
ip prefix-list x permit 172.16.3.0/24 le 24
correct ?
07-21-2010 10:57 AM
As Jon said in his earlier post, the prefix list should be
ip prefix-list BEACON_MUTUAL_WARWICK permit 172.16.3.0/24 le 32
This will include subnet 172.16.3.0/24 and also subnets within it
172.16.3.0/27,
172.16.3.32/28 etc etc
HTH
Narayan
Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community: