cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
616
Views
0
Helpful
3
Replies

Redistributing default route into OSPF area

tnambi
Level 1
Level 1

Hi,

We have OSPF area 40 and we have also defined the following static route.

ip route 0.0.0.0 0.0.0.0 fastethernet0/1

ip route 10.20.30.0 255.255.255.0 10.20.40.1

People are not able to see 10.20.30.0 network from other side but after redistributing static route to OSPF area by the command "redistribute static subnets " .It works fine.

My concerns are will the default route get redistributed to OSPF area , If so will it introduce any loop in the routing ? OR should i remove

ip route 0.0.0.0 0.0.0.0 fastethernet0/1

Appreciate your reply on this.

Thanks in advance

Nambi

3 Replies 3

rkuchcik
Level 1
Level 1

If I understand correctly you want redistribute only 10.20.30.0 static route to OSPF. If so, you can configure filter, e.g.

router ospf 40

redistribute static

distribute-list 10 out Serial0/0

access-list 10 deny 0.0.0.0

access-list 10 permit any

If you configure static default route in the other site it should take the precedence then OSPF route, so you don't have to change anythink, I guess.

Rafal

thank you for the comment.

Yes , We can achieve with access list to distribute only the require route info. But my doubt is what will happen if default route is redistributed to the OSPF area will it affect the OSPF routing table. If so is there any way apart from access-list as it may increase the CPU usage.

Please do proivde your comments.

Nambi

OSPF does not automatically propagate a default route (gateway of last resort or network 0.0.0.0 0.0.0.0). So, theoritcally, network 0.0.0.0 0.0.0.0 would not be installed on neighbour's routing tables.

To enable the propagation of 0.0.0.0 0.0.0.0 route, use the "default-information originate" router ospf command.

In any case, the default route (0.0.0.0 0.0.0.0) will not introduce a routing loop as long as it is originating from a single router.

Hope that helps,

Mustafa

Getting Started

Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community: