DES-7200 Configuration Guide Chapter 7 Policy-based Routing
Configuration
7-11
Figure 5 Network topology
As shown in the Figure-1, DEV1 connects to subnets 1 and 2 through G0/3, and
connects to the Internet through G0/1 and G0/2 with the next hop of 200.24.18.1
and 200.24.19.1, respectively. Subnet 1’s segment is 200.24.16/20 and subnet
2’s segment is 200.25.19.1.
Configuration steps
# Create an ACL for subnet 1 and subnet 2, respectively.
DES-7200(config)#access-list 1 permit 200.24.16.0 0.0.0.255
DES-7200(config)#access-list 2 permit 200.24.17.0 0.0.0.255
# Configure a route map used to control data streams of subnet 1. Set the next
hop of G0/1 prefer.
DES-7200(config)#route-map RM_FOR_PBR 10
DES-7200(config-route-map)#match ip address 1
DES-7200(config-route-map)#set ip nexthop 200.24.18.1
DES-7200(config-route-map)#set ip nexthop 200.24.19.1
# Configure a route map used to control data streams of subnet 2. Set the next
hop of G0/2 prefer.
DES-7200(config)#route-map RM_FOR_PBR 20
DES-7200(config-route-map)#match ip address 2
DES-7200(config-route-map)#set ip nexthop 200.24.19.1
DES-7200(config-route-map)#set ip nexthop 200.24.18.1