Routing – How to use secondary internet exclusively for one host

cisco-asacisco-iosinternetrouting

I currently have two internet connections coming into my main office. The primary connection is regular static IP cable service and the secondary is a dedicated MPLS Ethernet connection. The primary cable internet terminates at an ASA 5510 (192.168.0.5) and the secondary internet connection terminates at an ASA 5550 (192.168.0.7). Both reside on the 192.168.0.0/24 network and are connected to a 4500-e switch with a 6L-E supervisor. The 192.168.0.0/24 network uses an ISR 2851 (192.168.0.1) router as the default gateway providing connectivity to 3 other offices through private IP service.

enter image description here

For a few years now all I had in the way of internet service was the static IP cable service. I had a default route in the 2851 gateway router "ip route 0.0.0.0 0.0.0.0 192.168.0.5" and all hosts on the 192.168.0.0/24 network were able to access the internet. However now I've come across a situation where I have one specific server (192.168.0.100) that needs to exclusively use my new secondary MPLS internet connection. For the life of me I cannot figure out how to get this to work. I only have limited access to the network settings on this server and can only configure things like the IP/mask and default gateway. I've tried adding a second default route on the gateway router but that didn't work. Any help would be much appreciated as I think I'm in over my head on this one. Thanks a lot!

Best Answer

ip policy route-map

that command permit to create differentiate policy to the routing table:
http://www.ciscozine.com/pbr-route-a-packet-based-on-source-ip-address/

create an acl to define the traffic to internet that shall pass on ASA7

2851(config)# ip access-list exended SERVER
2851(config-ext-nacl)# deny ip any 192.168.0.0 0.0.3.255
2851(config-ext-nacl)# permit ip host 192.168.0.100 any

create a route-map to ASA7 destination

2851(config)# route-map ASA7
2851(config-route-map)# match ip address SERVER
2851(config-route-map)# set ip next-hop 192.168.0.7

apply the route-map to the correct interface (the one pointing to the asa)

2851(config)#interface fa0/0
2851(config-if)#ip policy route-map ASA7

I never try this command before, neither packet tracer permit me a simulation, so no refound if don't work correctly! ;)