Router(config-subif)#encapsulation dot1Q 1 Router(config-subif)#ip address 10.1.1.1 255.255.0.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.0.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.0.0 Router(config-subif)#exit Router(config)#interface fastEthernet 0/1 Router(config-subif)#ip address 10.1.4.1 255.255.0.0

Router(config-subif)#ip policy route-map TrafficToRightSAndFromLeftS Router(config-subif)#exit

Router(config)#access-list 101 permit tcp any 10.0.2.0 0.0.0.255 Router(config)#access-list 102 permit tcp 10.1.2.0 0.0.0.255 any Router(config)#access-list 103 permit tcp any 10.1.2.0 0.0.0.255 Router(config)#access-list 104 permit tcp 10.0.2.0 0.0.0.255 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 102 Router(config-route-map)#set ip next-hop 10.1.3.2 Router(config-route-map)#exit

Router(config)#route-map TrafficToRightSAndFromLeftS permit 10 Router(config-route-map)#match ip address 103 104 Router(config-route-map)#set ip next-hop 10.1.3.2 Router(config-route-map)#end

Router#

6 - POLICY-BASED ROUTING DEPLOYMENTS

HP STORAGEWORKS ENTERPRISE FILE SERVICES WAN ACCELERATOR 2.1.5 DEPLOYMENT GUIDE

59

Page 65
Image 65
HP Enterprise File Services WAN Accelerator manual POLICY-BASED Routing Deployments