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

HP EFS WAN ACCELERATOR DEPLOYMENT GUIDE 57
6 - POLICY-BASED ROUTING
D
EPLOYMENTS
In this configuration, the HP EFS WAN Accelerator is attached to any Layer-2
switch that the router can reach (even the same switch as the clients). VLAN
trunking is enabled between the Layer-2 switch and the PBR router (not on the
link between the HP EFS WAN Accelerator and the switch).
In this configuration you use the IP addresses in a single subnet and the router
has 2 VLAN interfaces on fastEthernet0/0.
To configure the HP
EFS WAN Accelerator
Use the procedures in “Basic Steps (Client-Side)” on page 51. With a single
subnet configuration, the route-map is attached to a VLAN interface instead of
an ethernet interface.
This example assumes that VLAN trunking is already configured on the
Layer-2 switch and the router for the clients VLAN (VLAN1) and that the
Layer-2 switch configuration for VLAN2 is already completed.
To configure the Cisco
router
On the client-side router, at the system prompt, enter the following set of
commands:
Router#configure terminal
Router(config)#interface fastEthernet 0/0.2
Router(config-subif)#encapsulation dot1Q 2
Router(config-subif)#ip address 10.2.0.1 255.255.0.0
Router(config-subif)#exit
Router(config)#access-list 101 permit tcp any 10.1.0.0 255.255.0.0
Router(config)#interface fastEthernet 0/0.1
Router(config-subif)#encapsulation dot1Q 1
Router(config-subif)#ip address 10.0.0.1 255.255.0.0
Router(config-subif)#ip policy route-map TrafficToS
Router(config-subif)#exit
Router(config)#route-map TrafficToS permit 10
Router(config-route-map)#match ip address 101
Router(config-route-map)#set ip next-hop 10.2.0.2
Router(config-route-map)#end
Router#
TIP: Enter configuration commands, one per line. End with CTRL-Z.