04-14-2010 03:33 AM - edited 03-06-2019 10:36 AM
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
04-14-2010 04:13 AM
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 !
04-14-2010 04:29 AM
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
04-14-2010 09:45 PM
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
04-14-2010 08:37 AM
You may refer to
http://www.cisco.com/en/US/partner/docs/ios/12_0s/feature/guide/routmap.html
and distribute list section in
http://www.cisco.com/en/US/partner/tech/tk365/technologies_white_paper09186a0080094e9e.shtml
With regards,
Shailesh
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide