cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
1147
Views
0
Helpful
6
Replies

Redistribute command

v-tang
Level 1
Level 1

router ospf 7

router-id 192.168.250.9

redistribute connected subnets tag 9

network 172.16.9.0 0.0.0.255 area 0

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

6 Replies 6

Harold Ritter
Cisco Employee
Cisco Employee

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)
harold@cisco.com
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
México

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?

Hi

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.

HTH

Jon

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.

HTH

Rick

HTH

Rick

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.

jason.plank
Level 1
Level 1

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".

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: