Hi,
I need to divide the Class A, B and C IPv4 addresses into three different segments. Can I achieve this using the prefix-lists in the following manner?
ip prefix-list INTERNET_ROUTES permit 0.0.0.0/0 ge 8 le 8 - Matches any route with subnet mask 8. So basically it would cover the whole Class A network.
ip prefix-list INTERNET_ROUTES permit 128.0.0.0/16 ge 16 le 32 - Any networks starting from 128.x with mask ranging from 16 to 32. This would cover all of Class B
ip prefix-list INTERNET_ROUTES permit 192.0.0.0/24 ge 24 le 32 - Any network starting with 192.x with mask ranging from 24 to 32. This would cover all of Class C.
Does this prefix list all the IPv4 addresses? Or am I missing something?
Thanks
Mikey