cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
582
Views
0
Helpful
5
Replies

Route-Map

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

5 Replies 5

cadet alain
VIP Alumni
VIP Alumni

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.

Don't forget to rate helpful posts.

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

Hi,

yep exactly I answered too fast.

Regards.

Alain

Don't forget to rate helpful posts.

Don't forget to rate helpful posts.

Abzal
Level 7
Level 7

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

Best regards,
Abzal

in this thread is handled similar problem

https://supportforums.cisco.com/thread/2196984

Best Regards Please rate all helpful posts and close solved questions
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:

Review Cisco Networking products for a $25 gift card