×

Warning message

  • Cisco Support Forums is in Read Only mode while the site is being migrated.
  • Cisco Support Forums is in Read Only mode while the site is being migrated.

Can I have different routing rules per default gateway?

Unanswered Question
Aug 26th, 2014
User Badges:

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
  • 2
  • 3
  • 4
  • 5
Overall Rating: 0 (0 ratings)
Loading.
michael o'nan Tue, 08/26/2014 - 09:39
User Badges:
  • Silver, 250 points or more

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-def...

Actions

This Discussion