anon.ms anon ms it guy: more than break-fix

23Nov/090

Directing HTTP Traffic onto Another Link

Hello,

A client of mine unfortunately cannot get ADSL2+ at their new office. They have 3 ADSL1 services instead.

We decided to use one for HTTP/HTTPS traffic to take some of the load off their primary link.

You can use Policy Based Routing to do this.

Numbers:
Default Gateway: 192.168.1.1
Secondary DSL router: 192.168.1.2
Vlan1 Address: 192.168.1.1

First, define an access list that selects your interesting traffic:
access-list 180 remark *** Select HTTP/HTTPS Traffic ***
access-list 180 permit tcp 192.168.1.0 0.0.0.255 any eq 80
access-list 180 permit tcp 192.168.1.0 0.0.0.255 any eq 443

Next, define a route-map that matches the interesting traffic, and sets the next-hop IP address.
route-map WebTraffic permit 10
match ip address 180
set ip next-hop 192.168.1.2

Apply it to the vlan interface
interface Vlan1
ip policy route-map WebTraffic

If, for example, they were hosting services on the second line using a server at 192.168.1.49, you can select more interesting traffic:
access-list 180 remark *** SELECT HTTP/HTTPS Server Traffic ***
access-list 180 permit tcp host 192.168.1.49 eq 80 any
access-list 180 permit tcp host 192.168.1.49 eq 443 any

anon ms.