cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
1075
Views
5
Helpful
3
Replies

tagging default route

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

1 Accepted Solution

Accepted Solutions

Peter Paluch
Cisco Employee
Cisco Employee

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

View solution in original post

3 Replies 3

Peter Paluch
Cisco Employee
Cisco Employee

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

thanks a lot....

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.

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