access-list 10 permit 192.168.1.0 //用访问控制列表先抓取路由
route-map nexthop permit 10 //起个名字
match ip address 10 //匹配一个列表
set ip next-hop 192.168.100.1 //设置一个策略
route-map nexthop permit 20
match ip address 20
set ip next-hop 192.168.100.2
route-map nexthop permit 30 int s2/1 ip policy route-map nexthop //接口下调用