December 2006
Intermediate to advanced
1188 pages
72h 8m
English
You want different applications to use different network links.
This example is similar to the previous one, except that instead of looking at the source address of the incoming IP packet, it looks at other protocol information such as TCP or UDP port number. The example redirects HTTP traffic (TCP port 80) for certain source addresses.
Router#configure terminalEnter configuration commands, one per line. End with CNTL/Z. Router(config)#access-list101deny tcp10.15.25.0 0.0.0.255any eqRouter(config)#wwwaccess-list101permit tcp any any eqRouter(config)#wwwinterfaceRouter(config-if)#Ethernet0ip addressRouter(config-if)#10.15.22.7 255.255.255.0ip policy route-mapRouter(config-if)#Websurfersip route-cache policyRouter(config-if)#exitRouter(config)#route-mapWebsurferspermitRouter(config-route-map)#10match ip addressRouter(config-route-map)#101set ip next-hopRouter(config-route-map)#10.15.27.1exitRouter(config)#route-mapWebsurferspermitRouter(config-route-map)#20set ip default next-hopRouter(config-route-map)#10.15.26.1endRouter#
This second example looks instead at the IP TOS field:
Router#configure terminalEnter configuration commands, one per line. End with CNTL/Z. Router(config)#access-list102permit ip any any tosRouter(config)#4interfaceRouter(config-if)#Serial0ip addressRouter(config-if)#10.15.23.6 255.255.255.252ip policy route-mapRouter(config-if)# ...High-priority