Switch – PBR on cisco Switch 3750x for Dual ISP load balancing

routerswitchswitching

I want achieve a load balancing of ISP like the one below.Diagram

Only 2 subnet should go through ISP 2, and rest of the traffic should go to ISP 1.

Let me know all the things that I need to do on a 3750x core and firewall.
Waiting for your response……

Best Answer

If you only want outbound traffic to be load-balanced like that (beware inbound traffic from the Internet won't be affected and will be routed according to Internet routing tables) then let's suppose your ASA1 IP address is 192.168.0.1/30 and ASA2 address is 192.168.0.5/30.

Two subnets that should go through ISP 2 are:

192.168.1.0/24
192.168.2.0/24

Everything else goes through ISP1

Then you create two ACLs:

access-list 101 permit 192.168.1.0 0.0.0.255
access-list 101 permit 192.168.2.0 0.0.0.255

Create a route-map (last permit line is to match all remaining traffic and route by default):

route-map pbr1 permit 10
  match ip address 101
  set ip next-hop 192.168.0.5
route-map pbr1 permit 20
  set ip next-hop 192.168.0.1

Apply to inbound interface facing the local subnets:

interface GigabitEthernet 0/1
  ip policy route-map pbr1

Hope that helps a little bit. Some more helpful resources for you:

Also you can see if PBR is supported on your 3750x on Cisco's Feature navigator.