cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
1688
Views
0
Helpful
4
Replies

Even or Odd number routes

yangtony
Level 1
Level 1

The requirement is passing even or odd number of routes from 192.168.15.0 from RIP to OSPF.

Please advise.

4 Replies 4

thisisshanky
Level 11
Level 11

You mean to say, u need to filter out or pass throught even numbered or odd numbered routes ?

apply an access list matching 192.168.15.0 and with mask 0.0.0.254.

wild card mask 0.0.0.254 implies that the last bit of the last octet should be zero (which means even numbered route) and if its one, its odd numbered route.

apply this accesslist to a distribute list or route map

Sankar Nair
UC Solutions Architect
Pacific Northwest | CDW
CCIE Collaboration #17135 Emeritus

Duh... Yes, you are right. My brain must have been dead!

Thanks

In this case, the last octet is most likely host and not network info. The list should probably be (for the range of 192.168.1-255.0):

access-list 1 permit 192.168.0.0 0.0.254.255 for all even networks

access-list 2 permit 192.168.1.0 0.0.254.255 for all odd networks

Does that sound right?

Mick.

Mick,

Yes, I tried it with distribute-list. It works well.