DES-7200 Configuration Guide Chapter 7 Policy-based Routing
Configuration
7-13
DES-7200(config-route-map)#match ip address 1
DES-7200(config-route-map)#set ip nexthop verify-availability 200.24.19.1
track 2
DES-7200(config-route-map)#set ip nexthop verify-availability 200.24.18.1
track 1
# Configure redundant backup.
DES-7200(config)#ip policy redundance
# Apply policy-based routing on GigabitEthernet 0/3.
DES-7200(config)#interface GigabitEthernet 0/3
DES-7200(config-if)#ip policy route-map RM_FOR_PBR
7.5.3 Example 3: Configure VRF selection using PBR
Network requirement
A provider edge needs to apply policy-based routing for the packets received from
FastEthernet 0/1. It routes the IP packets from subnet 1 by VRF1, the IP packets
from subnet 2 by VRF2, and the IP packets from subnet 3 by VRF3. Other
packets are routed in the public network.
Configuration steps
# Create VRF instances.
DES-7200(config)#ip vrf VRF1
DES-7200(config)#ip vrf VRF2
DES-7200(config)#ip vrf VRF3
# Create ACLs.
DES-7200(config)#access-list 1 permit 192.168.195.0 0.0.0.255
DES-7200(config)#access-list 2 permit 192.168.196.0 0.0.0.255
DES-7200(config)#access-list 3 permit 192.168.197.0 0.0.0.255
# Create route maps.
DES-7200(config)#route-map PBR-VRF-Selection permit 10
DES-7200(config-route-map)#match ip address 1
DES-7200(config-route-map)#set vrf VRF1
DES-7200(config)#route-map PBR-VRF-Selection permit 20
DES-7200(config-route-map)#match ip address 2
DES-7200(config-route-map)#set vrf VRF2
DES-7200(config)#route-map PBR-VRF-Selection permit 30
DES-7200(config-route-map)#match ip address 3