cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
535
Views
0
Helpful
3
Replies

Route filteration based on whether being odd or even network number

samisalim
Level 1
Level 1

I want to block routes coming from odd number networks from being advertised in my router. Example, I want to permit even routes from 150.100.x.0 where x is 16,18,20,22,24. Thanks

1 Accepted Solution

Accepted Solutions

pkhatri
Level 11
Level 11

use this:

access-list 1 permit 150.100.0.0 0.0.254.0

Cheers,

Paresh.

View solution in original post

3 Replies 3

pkhatri
Level 11
Level 11

use this:

access-list 1 permit 150.100.0.0 0.0.254.0

Cheers,

Paresh.

Its proven working, I have tested it in my lab. Thanks a lot.

ashok_boin
Level 5
Level 5

Hi,

I don't feel that you cann't define any ACL which matches only 16,18,20,22 and 24 with just one ACL wildcard mask except defining each entry explicitly to permit.

There is one more option to permit 16,18,20,22 and 24 given below but it even permits some other even networks too.

access-list 1 permit 157.100.0.0 0.0.14.255

Thank you,

Regards...

-Ashok.


With best regards...
Ashok