Hello, I know how prefix-lists work and syntax but I see the following below and I would like to build a prefix-list for it. I have seen the answer for this and I can't understand how that was determined:
"Task:In address range 184.108.40.206-220.127.116.11, do not accept prefixes with subnet masks longer than /18."
I attempted to build this by writing 128 and 191 as decimals. I don't see a pattern which would help me writing this prefix-list though.
If you can clarify how you would build such prefix-list I would appreciate it.
The prefix-list would look like this:
ip prefix-list TEST permit 18.104.22.168/2 le 18
This prefix-list will allow all prefixes that begin with 10 (binary) on the first 2 bits (/2). This defines the range 22.214.171.124-126.96.36.199.
You should draw the ip addresses for yourself in binary.
128 is 10000000
191 is 10111111
But from this range it will allow only those that have prefix length (subnet mask length) Less than or Equal to 18 (le 18).