D-Link DES-7200 Refrigerator User Manual


  Open as PDF
of 1968
 
DES-7200 Configuration Guide Chapter 7 Policy-based Routing
Configuration
7-12
# 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.2 Example 2: Enable Track function.
Network requirement
There are two egresses of a LAN connecting to the Internet. In general, load
balance and backup should be enabled for these two egresses. All streams from
subnet 1 to the Internet are transmitted through GigabitEthernet 0/1 and all
streams from subnet 2 to the Internet are transmitted through GigabitEthernet 0/2.
If the next hop 200.24.18.1 fails, the data streams on this interface should be
transferred to GigabitEthernet 0/2, and vice versa.
Network topology
As shown in Figure 1.
Configuration steps
# Track GigabitEthernet 0/1’s next hop 200.24.18.1.
DES-7200(config)#ip rns 1
DES-7200(config-ip-rns)#icmp-echo destination-hostname 200.24.18.1
DES-7200(config)#track 1 rns 1
# Track GigabitEthernet 0/2’s next hop 200.24.19.1.
DES-7200(config)#ip rns 2
DES-7200(config-ip-rns)#icmp-echo destination-hostname 200.24.19.1
DES-7200(config)#track 2 rns 2
# Enable track function.
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 verify-availability 200.24.18.1
track 1
DES-7200(config-route-map)#set ip nexthop verify-availability 200.24.19.1
track 2
# 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