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

HP EFS WAN ACCELERATOR DEPLOYMENT GUIDE 59
6 - POLICY-BASED ROUTING
D
EPLOYMENTS
2. On the right HP EFS WAN Accelerator, at the system prompt, enter the
following set of commands:
Right-SH > enable
Right-SH # configure terminal
Right-SH (config) # in-path enable
Right-SH (config) # in-path oop enable
Right-SH (config) # interface in-path ip address 10.1.3.2 /24
Right-SH (config) # ip in-path-gateway 10.1.3.1
Right-SH (config) # in-path rule fixed-target dstaddr 10.0.2.0/24
dstport 135 target-addr 10.0.3.2 target-port 7800
Right-SH (config) # in-path rule fixed-target dstaddr 10.0.2.0/24
dstport 139 target-addr 10.0.3.2 target-port 7800
Right-SH (config) # in-path rule fixed-target dstaddr 10.0.2.0/24
dstport 445 target-addr 10.0.3.2 target-port 7800
Right-SH (config) # in-path rule fixed-target dstaddr 10.0.2.0/24
dstport 21 target-addr 10.0.3.2 target-port 7800
Right-SH (config) # in-path rule fixed-target dstaddr 10.0.2.0/24
dstport 80 target-addr 10.0.3.2 target-port 7800
Right-SH (config) # write memory
Right-SH (config) # restart
IMPORTANT: You must save your changes to memory and restart the HP EFS WAN
Accelerator service for your changes to take effect.
To configure the Cisco
router
1. On the left router, at the system prompt, enter the following commands:
TIP: Enter configuration commands, one per line; end with CTRL-Z.
Router#configure terminal
Enter configuration commands, one per line. End with CNTL/Z.
Router(config)#interface fastEthernet 0/0.1
Router(config-subif)#encapsulation dot1Q 1
Router(config-subif)#ip address 10.0.1.1 255.255.255.0
Router(config-subif)#ip policy route-map TrafficToRightS
Router(config-subif)#exit
Router(config)#interface fastEthernet 0/0.2
Router(config-subif)#encapsulation dot1Q 2
Router(config-subif)#ip address 10.0.2.1 255.255.255.0
Router(config-subif)#ip policy route-map TrafficFromLeftS
Router(config-subif)#exit
Router(config)#interface fastEthernet 0/0.3
Router(config-subif)#encapsulation dot1Q 3
Router(config-subif)#ip address 10.0.3.1 255.255.255.0
Router(config-subif)#exit
Router(config)#access-list 101 permit tcp any 10.1.2.0 255.255.255.0
Router(config)#access-list 201 permit tcp 10.0.2.0 255.255.255.0 any
Router(config)#route-map TrafficToRightS permit 10
Router(config-route-map)#match ip address 101
Router(config-route-map)#set ip next-hop 10.0.3.2
Router(config-route-map)#exit
Router(config)#route-map TrafficFromLeftS permit 10
Router(config-route-map)#match ip address 201
Router(config-route-map)#set ip next-hop 10.0.3.2
Router(config-route-map)#end
Router#