Cisco Support Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Announcements

Welcome to Cisco Support Community. We would love to have your feedback.

For an introduction to the new site, click here. If you'd prefer to explore, try our test area to get started. And see here for current known issues.

New Member

Even or Odd number routes

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

Please advise.

  • Other Network Infrastructure Subjects
4 REPLIES

Re: Even or Odd number routes

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

New Member

Re: Even or Odd number routes

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

Thanks

New Member

Re: Even or Odd number routes

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.

New Member

Re: Even or Odd number routes

Mick,

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

481
Views
0
Helpful
4
Replies