Command Reference Protocol-independent Configuration Commands
6.24 match tag
Use this command to redistribute the network routes with the specified tag. Use the no form of this
command to delete the setting.
match tag tag […tag]
no match tag [tag […tag]]
Route map configuration mode
Multiple tags may follow the match tag command.
You can redistribute the routing information from one routing process to another routing process. For
example, you can redistribute the route in the OSPF routing domain and then advertise it to the RIP
routing domain, and vice versa. The mutual route redistribution can be implemented between all the
IP routing protocols.
In the route redistribution, route maps are usually used to control the mutual route redistribution
between two routing domains.
In configuring one route map, one or more match or set commands can be executed. If the match
command is not used, all the routes will be matched. If the set command is not used, no operation will
be performed.
In the example below, the RIP routing protocol redistributes only the routes with tag 50 and 80 in the
OSPF routing domain.
Ruijie(config)# router rip
Ruijie(config-router)# redistribute ospf 100 route-map redrip
Ruijie(config-router)# network 192.168.12.0
Ruijie(config-router)# exit
Ruijie(config)# route-map redrip permit 10
Ruijie(config-route-map)# match tag 50 80
Match the next-hop IP interface.
Match the source IP address.
Match the next-hop IP address.