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

Can I have different routing rules per default gateway?

Hi,

 

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 10.10.16.50/24

Nexus 1 10.10.16.253

Nexus 2 10.10.16.252

HSRP default gateway for the VLAN 10.10.16.254

 

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

 

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

 

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

1 REPLY

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 192.168.5.1 host

access-list 101 permit tcp host 192.168.5.1 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 : https://supportforums.cisco.com/discussion/10836341/routing-multiple-default-gateways

34
Views
0
Helpful
1
Replies
CreatePlease to create content