Cisco Support Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Community Member

OSPF Question

I know that with OSPF we only advertise locally attached networks on the network statement of the OSPF process. Is that right ? I have a situation recently where we made some changes by disabling one interface and move that network now to be behind a firewall. I use to have 3 network statements on my router as follows:

 network 192.168.1.2 0.0.0.0 area 1
 network 192.168.1.52 0.0.0.0 area 1
 network 192.168.9.1 0.0.0.0 area 1

Now since I move 192.168.9.0/24 behind a firewall via 192.168.1.52 interface I have to implement static routes. Check out my drawing with the red dotted lines the interface that was disabled.

Is there a way we can still tell my cisco router to advertise 192.168.9.0/24 coming off 192.168.1.52 ?
 

2 ACCEPTED SOLUTIONS

Accepted Solutions

You can do a static route and

You can do a static route and under ospf do redistribute static. If you have multiple static routes that you don't want advertised you can use a route map to send only the routes you want.

You must remove the static

You must remove the static route from the remote site if you want it to show up in OSPF on the remote router. If that doesn't work post the running config of both routers.

6 REPLIES

You can do a static route and

You can do a static route and under ospf do redistribute static. If you have multiple static routes that you don't want advertised you can use a route map to send only the routes you want.

Community Member

I have added the redistribute

I have added the redistribute static on my Cisco 1841, however I do see the route on the OSPF routing table on my HQ router ? Do I have to do it over there as well ?

Community Member

Sorry, I meant "however I don

Sorry, I meant "however I don't see the route on the route on the OSPF routing table on my HQ router". Forgot to mention that my static routes is already in and currently working from the HQ router and also at the remote site (cisco 1841)

Community Member

BTW, here are my static

BTW, here are my static routes that I have to add to make things work:

HQ router

ip route 192.168.9.0 255.255.255.0 192.168.1.2
ip route 192.168.43.0 255.255.255.0 192.168.1.2

 

remote site router (cisco 1841)

ip route 192.168.9.0 255.255.255.0 192.168.1.54
ip route 192.168.43.0 255.255.255.0 192.168.1.54

 

You must remove the static

You must remove the static route from the remote site if you want it to show up in OSPF on the remote router. If that doesn't work post the running config of both routers.

Community Member

Cool, thanks. Works now

Cool, thanks. Works now

48
Views
0
Helpful
6
Replies
CreatePlease to create content