Community discussions

MikroTik App
 
-headstrong-
Member
Member
Topic Author
Posts: 377
Joined: Thu Jun 05, 2008 8:04 pm
Location: South Africa

filtering out OSPF default route?

Mon Nov 23, 2009 7:27 pm

Hi

I'm trying to stop a router from receiving a default route via OSPF...my syntax is as follows:

/routing filter
add action=discard chain=ospf-in comment="" disabled=no invert-match=no prefix=0.0.0.0 protocol=ospf

But it does not work? What is the correct syntax

thanks
 
-headstrong-
Member
Member
Topic Author
Posts: 377
Joined: Thu Jun 05, 2008 8:04 pm
Location: South Africa

Re: filtering out OSPF default route?

Mon Nov 23, 2009 7:31 pm

Fixed it:

Solution: 0.0.0.0/0 instead of 0.0.0.0
 
User avatar
mrz
MikroTik Support
MikroTik Support
Posts: 7053
Joined: Wed Feb 07, 2007 12:45 pm
Location: Latvia
Contact:

Re: filtering out OSPF default route?

Tue Nov 24, 2009 8:36 am

There is a better solution for this: set distribute-default=never
 
Inssomniak
Member
Member
Posts: 332
Joined: Fri Apr 13, 2007 11:21 pm

Re: filtering out OSPF default route?

Mon Dec 07, 2009 1:40 am

There is a better solution for this: set distribute-default=never
There are cases where you want to have a router distribute default routes to other routers, but you end up with a router on the network that already has a desirable default route.
 
dyrdymal
just joined
Posts: 24
Joined: Thu Nov 26, 2009 9:15 pm
Location: IE/PL

Re: filtering out OSPF default route?

Mon Dec 07, 2009 11:09 am

There are cases where you want to have a router distribute default routes to other routers, but you end up with a router on the network that already has a desirable default route.
Just keep in mind you could create routing loops (in some cases)..! Be carefull with filtering OSPF routes on some devices and not doing this on other boxes...
 
User avatar
mrz
MikroTik Support
MikroTik Support
Posts: 7053
Joined: Wed Feb 07, 2007 12:45 pm
Location: Latvia
Contact:

Re: filtering out OSPF default route?

Mon Dec 07, 2009 11:18 am

There are cases where you want to have a router distribute default routes to other routers, but you end up with a router on the network that already has a desirable default route.
There is no need to filter default route in this case, too. Set distance lower than 110 to other default route and it will be active.

Who is online

Users browsing this forum: No registered users and 38 guests