Command Reference Protocol-independent Configuration Commands
Type of the routes to be redistributed. At present, you can set the
type of the routes that the OSPF protocol redistributes.
type-1: Type-1 external route;
type-2: Type-2 external route.
Route map configuration mode
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.
The following example enables the OSPF routing protocol to redistribute the RIP route and sets the
type as type-1.
Ruijie(config)# router ospf
Ruijie(config-router)# redistribute rip subnets route-map redrip
Ruijie(config-router)# network 192.168.12.0 0.0.0.255 area 0
Ruijie(config-router)# exit
Ruijie(config)# route-map redrip permit 10
Ruijie(config-route-map)# set metric-type type-1
Match the next-hop IP address.
Match the source IP address.