Cisco Support Community
Showing results for 
Search instead for 
Did you mean: 

Welcome to Cisco Support Community. We would love to have your feedback.

For an introduction to the new site, click here. If you'd prefer to explore, try our test area to get started. And see here for current known issues.

New Member

Redistribute command

router ospf 7


redistribute connected subnets tag 9

network area 0

In the above config, what's the meanning of "tag 9" in redistribute cmd line?

Cisco Employee

Re: Redistribute command

The purpose of this command is to tag the routes redistributed into ospf with a value of 9. This value can later be used to filter these same routes.

Hope this helps,

Harold Ritter
Sr. Technical Leader
CCIE 4168 (R&S, SP)
México móvil: +52 1 55 8312 4915
Cisco México 
Paseo de la Reforma 222 Piso 19
Cuauhtémoc, Juárez
Ciudad de México, 06600
New Member

Re: Redistribute command

Is the 'tag' function mean the Layer 3 header is mapped into a fixed length, unstructured value to speedup the routing decision?

And I still not understand the value of 9 use for. How about I set it to 7. What's the different?

Hall of Fame Super Blue

Re: Redistribute command


There isn't a difference between using 7 or 9. It is a number you choose to use. You can then match against this number on other routers to make decision about how to handle routing updates etc.

I believe the tag label will be part of the OSPF header ie. a value that has a field in the header.



Hall of Fame Super Silver

Re: Redistribute command

One other point: Victor's question seems to assume that the tag is used in the routing decision (perhaps to speed up the routing decision). That is not the case. The tag does not enter into the routing decision. It is simply a way to identify the route so that a route map somewhere can identify those routes and take some action based on the value of the tag.



New Member

Re: Redistribute command

Route tagging is nothing to do with the Layer 3 header. It won't have any appreciable impact on routing decisions unless you're using route maps which match on tag.

The tag is part of the OSPF message and is just an arbitrary value which you choose. If you don't know what it is, you probably don't need to use it.

New Member

Re: Redistribute command

it's pretty simple, you tag routes so that you can filter or manipulate them elsewhere. Pretty common to do in enviroments where you have multiple entrance points to routing domains or have multiple routing protocols running and multiple redistribution points. When you configure a route-map one of the match options is tag, meaning all routes that match "whatever the tag is" set "whatever you want to set".