07-21-2005
05:14 PM
- last edited on
03-25-2019
03:11 PM
by
ciscomoderator
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
07-21-2005 06:05 PM
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,
07-21-2005 09:09 PM
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
07-22-2005 02:55 AM
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,
07-25-2005 08:51 PM
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,
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