The following example enables policy-based routing on serial 1/0. When the interface receives the
packets from 10.0.0.0/8, they will be sent to 192.168.100.1; when the interface receives the packets
from 172.16.0.0/16, they will be sent to 172.16.100.1; all other packets will be discarded.
Ruijie(config)#interface serial 1/0
Ruijie(config-if)#ip policy route-map load-balance
Ruijie(config)#access-list 10 permit 10.0.0.0 0.255.255.255
Ruijie(config)#access-list 20 permit 172.16.0.0 0.0.255.255
Ruijie(config)#route-map load-balance permit 10
Ruijie(config-route-map)#match ip address 10
Ruijie(config-route-map)#set ip next-hop 192.168.100.1
Ruijie(config)#route-map load-balance permit 20
Ruijie(config-route-map)#match ip address 20
Ruijie(config-route-map)#set ip next-hop 172.16.100.1
Ruijie(config)#route-map load-balance permit 30
Ruijie(config-route-map)#set interface Null 0
Use this command to set the precedence of the IP head of the packet matching the rule in the route
map configuration mode. Use the no form of this command to remove the configured precedence
setting.