Switches, Hubs, and Modems
1752740 Members
5529 Online
108789 Solutions
New Discussion юеВ

restrict default route in ospf ?

 
Battiston gregor
Occasional Advisor

restrict default route in ospf ?

Hi
I have a sw5308 with some static route configured and also the default route:
ip route 0.0.0.0 0.0.0.0 x.x.x.x
i need to redistribute my static route in ospf but without the default route.
Does someone know the command ?
i try :
restrict 0.0.0.0 0.0.0.0 but that bloc all route and i try
restrict 0.0.0.0 255.255.255.255 but that allow all route to pass.
Any idea ??

Best regards
5 REPLIES 5
G. Vrijhoeven
Honored Contributor

Re: restrict default route in ospf ?

Hi,

I did not found the commands, but i found some info that could help you,.

http://www.zvon.org/tmRFC/RFC1403/Output/chapter2.html

HTH,

Gideon
Ron Kinner
Honored Contributor

Re: restrict default route in ospf ?

Will it take

restrict default

??

Ron
Battiston gregor
Occasional Advisor

Re: restrict default route in ospf ?

Hi Gideon and Ron

Thank for your answer but

a)i can't open the url

b)with restrict you can only apply ip address

any other suggestion ?

Re: restrict default route in ospf ?

The best thing to do is to not use static routing if possible. Will probobly save you a lot of time later on.
If this is possible then you dont redistribute static routes to OSPF and the problem is solved.

I dont know how the restrict command work because I dont use it, but is it possible to restrict only the IP of the default route? Something like this I guess "restrict 192.168.1.1 255.255.255.255".

Just some ideas, hope they help you and not confuse you ;-)

/Magnus
Battiston gregor
Occasional Advisor

Re: restrict default route in ospf ?

Hi magnus
i needt to redistribute static route for the Wan side..
The restrict command work for standard ip range the only problem is for the default route.

gregor