cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
1173
Views
5
Helpful
4
Replies

default route tag

phamthecong
Level 1
Level 1

dear all,

is there any way to manage the default route's tag?

I setup " ip route 0.0.0.0 0.0.0.0 1.1.1.1 tag 1234"

then, "show ip ospf database" shows different value for default route.

thanks

4 Replies 4

Harold Ritter
Spotlight
Spotlight

The default route is a special case since it can only be injected in ospf using the "default-information originate" command. If you want a tag to be set on the default route, you need to use a route-map on the "default-information originate" command as follow:

route-map setTag permit 10

set tag 1234

router ospf 1

default-information originate route-map setTag

For other static routes the tag set on the static route is used to set the ospf tag when redistributing static to ospf.

Hope this helps,

Regards,
Harold Ritter, CCIE #4168 (EI, SP)

thanks Hritter,

that's all i want. Another quest.

In OSPF I want to advertise a default route out to a router A but not router B. if there anyway we can do it?

thanks

You can generate the default route with a tag as suggested in my previous posting and then filter it on router B as follow:

router ospf 1

distribute-list route-map matchTag in

route-map matchTag deny 10

match tag 1234

!

route-map matchTag permit 20

!

Note that the route will be in router B LSDB but not in the routing table.

Thanks for rating this posting,

Regards,
Harold Ritter, CCIE #4168 (EI, SP)

Totally agree. My troublle is however that router B is Alcatel router which I have a little knowledge about. Can Alcatel gears filter routes based on tag value?

regards,