cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
287
Views
0
Helpful
1
Replies

Using IP Prefix lists for dividing IPv4 space

Mikey John
Level 1
Level 1

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

1 Reply 1

Mikey John
Level 1
Level 1

Could someone please help reply on this?

Thanks

Mikey