cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
715
Views
0
Helpful
4
Replies

OSPF static

vinoth.kumar
Level 1
Level 1

Hi

We have connectivity between our three data center through the OSPF protocol

SITEA

SITEB

SITEC all running on Area 0

all connected routes from 3 sites are advetsied through OSPF and working fine now my requirement is from SITE A i have also connected to External device (through the routed interface which is not running on OSPF) to reach our Branch office subnet

Now i need to advetise the static route for example :

ip route 172.31.0.0 255.255.255.0 192.168.168.2

to other 2 sites so that from SITEB and SITEC so they have to sent all traffic to 172.31.0.0/24 to the SITEA and to external Device

whether this will work when i start advertising STATIC ROUTE ( we have rout-map filter to advertise STATIC Route )

can i also need to know is there any possiblility that i can filter this static route only to SITEB not to SITEC

thanks

Vinu

4 Replies 4

Tharak Abraham
Level 3
Level 3

Vinoth,

"redistribute static subnets" should work fine in this case.

you can include the metric as well as the metric types optionally too.

If you want to be more specific, then you need to match the route with an ACL, match it in a route-map and redistribute too !

Giuseppe Larosa
Hall of Fame
Hall of Fame

Hello Vinoth,

>> connected to External device (through the routed interface which is not  running on OSPF)

you need to advertise in OSPF that IP subnet or the external route will not be injected in OSPF: an OSPF external route cannot have an IP next-hop that is another external route.

you can use network ... area + passive-interface for this

then using red static subnets route-map mystatic

you can advertise it using a route filter specified by the route-map

>> can i also need to know is there any possiblility that i can filter this  static route only to SITEB not to SITEC

This is not possible in OSPF, once an external route is injected it will go everywhere but not to stub areas, you should put site C in a stub area

or you should use a distribute-list in on each router of site C to deny that route but this does not remove the  route from OSPF database

Hope to help

Giuseppe

Giuseppe,

Could you please throw some more insight on why ospf will not redistribute a static route without advertising the subnet connected from Site A to the external device in the above topology ?

redistribute static subnet at site A

and

a default route at the external device pointing to the next hop at site A should do the job (?)

Warm Regards,

Tharak

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:

Innovations in Cisco Full Stack Observability - A new webinar from Cisco