09-16-2010 12:24 AM - edited 03-04-2019 09:47 AM
topology : R1 - R2 - R3
R1-R2 : ospf neighbors
R2-R3 : ebgp neighbors
routes when redistributed from BGP to OSPF on R2 are being tagged, but the default-route is not getting tagged.....
any comments/experience...?
Regards,
MukarraM
Solved! Go to Solution.
09-16-2010 12:51 AM
Hello Mukarram,
The default route is not redistributed into OSPF, it is only originated into it. Even though you may be performing redistribution from BGP into OSPF, a default route cannot be redistributed into OSPF (it is a deliberate restriction in Cisco IOS). This is the reason that you do not see a tag in the default route - because it is actually not retaken from the BGP.
If you want to tag the default route originated into OSPF you have to use a route-map in the default-information originate command in your OSPF configuration to tag this route, as follows:
route-map RM-TagDefault permit 10
set tag 123
router ospf 1
default-information originate route-map RM-TagDefault
Best regards,
Peter
09-16-2010 12:51 AM
Hello Mukarram,
The default route is not redistributed into OSPF, it is only originated into it. Even though you may be performing redistribution from BGP into OSPF, a default route cannot be redistributed into OSPF (it is a deliberate restriction in Cisco IOS). This is the reason that you do not see a tag in the default route - because it is actually not retaken from the BGP.
If you want to tag the default route originated into OSPF you have to use a route-map in the default-information originate command in your OSPF configuration to tag this route, as follows:
route-map RM-TagDefault permit 10
set tag 123
router ospf 1
default-information originate route-map RM-TagDefault
Best regards,
Peter
09-16-2010 01:38 AM
thanks a lot....
09-16-2010 02:54 AM
I am tagging the routes while they are being redistributed in ospf from BGP .. so i am not expecting the routes to to carry the tag while getting redistributed...
your comment:
This is the reason that you do not see a tag in the default route - because it is actually not retaken from the BGP.
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: