HP StorageWorks Enterprise File Services WAN Accelerator Deployment Guide (November 2005)

60 6 - POLICY-BASED ROUTING DEPLOYMENTS
2. On the right router, at the system prompt, enter the following set of
commands:
Router#configure terminal
Router(config)#interface fastEthernet 0/0.1
Router(config-subif)#encapsulation dot1Q 1
Router(config-subif)#ip address 10.1.1.1 255.255.255.0
Router(config-subif)#ip policy route-map TrafficToLeftS
Router(config-subif)#exit
Router(config)#interface fastEthernet 0/0.2
Router(config-subif)#encapsulation dot1Q 2
Router(config-subif)#ip address 10.1.2.1 255.255.255.0
Router(config-subif)#ip policy route-map TrafficFromRightS
Router(config-subif)#exit
Router(config)#interface fastEthernet 0/0.3
Router(config-subif)#encapsulation dot1Q 3
Router(config-subif)#ip address 10.1.3.1 255.255.255.0
Router(config-subif)#exit
Router(config)#access-list 101 permit tcp any 10.0.2.0 255.255.255.0
Router(config)#access-list 201 permit tcp 10.1.2.0 255.255.255.0 any
Router(config)#route-map TrafficToLeftS permit 10
Router(config-route-map)#match ip address 101
Router(config-route-map)#set ip next-hop 10.1.3.2
Router(config-route-map)#exit
Router(config)#route-map TrafficFromRightS permit 10
Router(config-route-map)#match ip address 201
Router(config-route-map)#set ip next-hop 10.1.3.2
Router(config-route-map)#end
Router#
Troubleshooting
On Cisco routers with Internet Operating System (IOS) version 12.3T, the PBR
support for Multiple Tracking Options feature allows the router to check if a
machine is still functioning. This feature can detect if the HP EFS WAN
Accelerator is up and, if not, to stop redirecting the traffic to it.
You can use the following methods to check an HP EFS WAN Accelerator:
Internet Control Message Protocol (ICMP) ping reach-ability to a remote
device.
Application running on a remote device (for example, the device
responds to an HTTP GET request).
A route exists in the Routing Information Base (RIB) (for example, policy
route only if 10.2.2.0/24 is in the RIB).
Interface state (for example, packets received on E0 should be the policy
routed out of E1 only if E2 is down).