Disalow Certain Routes RIP

Ive got an interesting scenario.

I have two RIP routers and a MT running RIP as well.

The problem im having is if i add both RIP routers as neighbors on MT box…

What happens is that both routers can get to a particular destination and replicate these routes to the MT.


The MT sometimes prefers the one router and sometimes the other for the same destination.

However each router has got other unique networks connected to them as well.

What id like to do is have both routers added as neighbors and have all routes, BUT be able to tell the MT to NOT accept certain routes…

Is this possible and how?

ThankX

“/routing filter” is your friend.

Sam

That looks perfect! ThankX

Can you post example if you don’t mind?


Say an example that drops all rip-in from a specif router..

As I understand you want to set filters for each neighbor. It is not possible, but you can use prefix lists for each rip interface.
For example, i want to drop all routes from 192.168.0.0/16 network:
/routing rip interface add interface=ether1 in-prefix-list=e1in
/routing prefix-list
add chain=e1in prefix=192.168.0.0/16 prefix-length=16-32 action=discard

Hope this will help.

Thank you, will be able to make it work.


Just a Q’ what is “prefix-length=16-32” for?


Thank You.

For example you have route 192.168.0.0/24, but in filter you specify 192.168.0.0/16 so it will not be matched by the rule, but if you specify prefix-length=16-32 then filter will match all 192.168.x.x routes with any netmask within prefix-length range.

As simple as this seems it’s not working.




As you can see Ive attempted to make a test filter that should in theory dump ALL routes RIP coming in.

However if you look at where i circled rip rules are still being added.

Something stupid?

On your rip peer / interface do you have in-filter and out-filter specified ? You have to tell it which /routing filter chain to associate with.

Also, if you want to reject all routes just leave off prefix and prefix-length and just use action=discard.

Sam

Thanks, got it working…

Dear all

I have configured routing prefix list on router mikrotik CCR 1036. I configure it for filter route in OSPF and BGP but it don’t active. I want to ask that, routing prefix list have active in OSPF and BGP?