Cisco Support Community
Showing results for 
Search instead for 
Did you mean: 
Community Member

Can I have different routing rules per default gateway?



I have a customer with a core of 2 x N5k's and they would like to have the option of making a simple change on the windows client pc to route traffic out a different internet connection. For example:


Client PC

Nexus 1

Nexus 2

HSRP default gateway for the VLAN


The gateway of last resort on the Nexus switch is which is ISP1. 


Would it be possible for something to be setup on the Nexus where traffic sent to for example would be routed out which is ISP2??


Alternatively I take it we could setup some policy based routing where traffic from the client PC of was sent out the ISP2 gateway?


I would look into using route

I would look into using route maps. I pulled this from another thread on here. The commands may not be exact but should get you close.

access-list 101 deny ip host host

access-list 101 permit tcp host any eq http


route-map PBR permit 10

match ip address 101

set ip next-hop x.x.x.x


because the first line is a deny it will not be sent the next-hop of x.x.x.x but routed via the normal routing table. The second line for http traffic is a permit and so will be sent to the next-hop ip of x.x.x.x.

Found here :

CreatePlease to create content