02-07-2013 04:33 AM - edited 03-04-2019 06:58 PM
Hi All,
I have a scenario
R1--->Switch<----R2
|
|
R3
R1 is connected to internet, and ospf is running on all three routers. we have redistributed the static default route in to the R1.
But we want to write a route-map which would block this default route to R2 and NOT with R3.
Please help us.
Regards,
Ravi
02-07-2013 04:41 AM
Hi,
the only way to advertise a default route into OSPF is to use default-information originate and you can use a route-map
to select which interface to advertise this default to:
route-map ADV_DEF
set interface x/x interface to which you want to advertise the default route
router ospf x
default-information originate route-map ADV_DEF
Regards
Alain
Don't forget to rate helpful posts.
02-07-2013 04:47 AM
Hi Alain,
But in this case, as you see R2 and R3 are in same broadcast domain.
R1 is attached to R2 and R3 on same interface.
Or please advice how to block it on R2.
Regards,
Ravi
02-07-2013 05:08 AM
Hi,
yep exactly I answered too fast.
Regards.
Alain
Don't forget to rate helpful posts.
02-07-2013 04:55 AM
Hi,
try this one:
R1:
ip prefix-list default_route permit 0.0.0.0/0
route-map default-static-to-ospf permit 10
match ip address prefix-list default_route
set tag 666
router ospf 1
redistribute static default-static-to-ospf
R3:
route-map default-static-to-ospf deny 10
match tag 666
router ospf 1
distribute-list route-map default-static-to-ospf in
Hope it will help.
Best regards,
Abzal
02-07-2013 05:00 AM
in this thread is handled similar problem
https://supportforums.cisco.com/thread/2196984
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