Command Reference Protocol-independent Configuration Commands
Ruijie(config)# route-map set_lopref
Ruijie(config-route-map)# match community 1 exact-match
Ruijie(config-route-map)# set local-preference 20
Match the AS_PATH attribute.
Set the AS_PATH attribute.
Use match interface command to redistribute the routes whose next hop is the specified interface.
Use the no form of this command to remove the setting.
match interface interface-type interface-number […interface-type interface-number]
no match interface [interface-type interface-number […interface-type interface-number]]
Route map configuration mode.
This command can be followed by multiple interfaces.
You can redistribute the routes 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.
For route redistribution, route maps are usually used to control the mutual route redistribution
between two routing domains.
One or more match or set commands can be executed to configure a route map. 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.
The route map can be configured very flexibly for route redistribution and policy-based routing. No
matter how the route map is used, the configuration principle is the same, except that different
command sets are used. Even if it is used on the route redistribution, different routing protocols can