cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
5274
Views
15
Helpful
5
Replies

Static routing with OSPF

punasup
Level 1
Level 1

Hello,

 

Here's a my topology:

ospf_static.png

 

As you can see, R1, R2, R3 and R4 are configured with OSPF (all the networks connected are declared). My goal is to configure R5 only with sating routing to better understand how it works.

So I configured all the static routes on R5, for example:

ip route 10.8.0.0 255.255.255.252 10.8.1.21

ip route 10.8.0.4 255.255.255.252 10.8.1.21

ip route 10.8.0.12 255.255.255.252 10.8.1.21

ip route 10.8.0.16 255.255.255.252 10.8.1.21

ip route 192.168.1.0 255.255.255.0 10.8.1.21

 

I'm a bit confused about the others routers, shoul I add the network 192.168.2.0/24 with a static route on all routers ?

 

Thanks!

2 Accepted Solutions

Accepted Solutions

Hello,

 

on R3, you could add:

 

ip route 0.0.0.0 0.0.0.0 ethernet1/2 or IP address

!

router ospf 1

default-information originate

 

This would send a default route to all other OSPF routers, hence making it unnecessary to add static routes on all other routers...

View solution in original post

Hello

@Georg Pauwen on R3, you could add:

ip route 0.0.0.0 0.0.0.0 ethernet1/2 or IP address

!router ospf 1

default-information originate

 

@MHM Cisco World simple solution

config static route in R3 and redistribute this static route into ospf.



Adding a default static route on R3 pointing towards rR5 would only be applicable if you want all default traffic from R3 to route towards R5 however then to redistribute a default route to R5 would then cause a routing loop, so you DONT want to do this.

Plus performing the above would also advertise a default route to ALL other ospf rtrs in that topology which im sure you dont want to do either.

As you mention static routing then the easiest solution would be to manually add a default static route on R5 pointing towards R3.

R5
ip route 0.0.0.0 0.0.0.0 eth1/0 10.8.1.23


Please rate and mark as an accepted solution if you have found any of the information provided useful.
This then could assist others on these forums to find a valuable answer and broadens the community’s global network.

Kind Regards
Paul

View solution in original post

5 Replies 5

simple solution

config static route in R3 and redistribute this static route into ospf.

balaji.bandi
Hall of Fame
Hall of Fame

As suggested - on R3 redistribute static to other routers. Or set up a relation between R5 and R3 as of OSPF.

 

BB

***** Rate All Helpful Responses *****

How to Ask The Cisco Community for Help

Hello,

 

on R3, you could add:

 

ip route 0.0.0.0 0.0.0.0 ethernet1/2 or IP address

!

router ospf 1

default-information originate

 

This would send a default route to all other OSPF routers, hence making it unnecessary to add static routes on all other routers...

punasup
Level 1
Level 1

Thanks guys!

Hello

@Georg Pauwen on R3, you could add:

ip route 0.0.0.0 0.0.0.0 ethernet1/2 or IP address

!router ospf 1

default-information originate

 

@MHM Cisco World simple solution

config static route in R3 and redistribute this static route into ospf.



Adding a default static route on R3 pointing towards rR5 would only be applicable if you want all default traffic from R3 to route towards R5 however then to redistribute a default route to R5 would then cause a routing loop, so you DONT want to do this.

Plus performing the above would also advertise a default route to ALL other ospf rtrs in that topology which im sure you dont want to do either.

As you mention static routing then the easiest solution would be to manually add a default static route on R5 pointing towards R3.

R5
ip route 0.0.0.0 0.0.0.0 eth1/0 10.8.1.23


Please rate and mark as an accepted solution if you have found any of the information provided useful.
This then could assist others on these forums to find a valuable answer and broadens the community’s global network.

Kind Regards
Paul
Review Cisco Networking for a $25 gift card