tagging default route

Answered Question
Sep 16th, 2010

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

I have this problem too.
0 votes
Correct Answer by Peter Paluch about 6 years 4 months ago

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

  • 1
  • 2
  • 3
  • 4
  • 5
Overall Rating: 5 (1 ratings)
Loading.
Correct Answer
Peter Paluch Thu, 09/16/2010 - 00:51

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

Mukarram Jah Raheel Thu, 09/16/2010 - 02:54

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.

Actions

This Discussion