LAN Routing
cancel
Showing results for 
Search instead for 
Did you mean: 

How to setup SourceIP based routing

 
James Crosland_1
Occasional Advisor

How to setup SourceIP based routing

Hello, I'm trying to setup Source IP based routing on a Procurve 5406 but I've run in to problems

 

We have a HP Procurve switch which is our default gateway and has various static routes
 

We have an MPLS router 192.168.20.27, with several static routes

We have a Cisco ASA firewall on 192.168.20.30 also with several static routes to sites connected by IPSec VPN's

Finally we have a default route to 192.168.20.18 this is our old firewall.


Essentially we want to migrate the default gateway from 192.168.20.18 to 192.168.20.30 but want to do this gradually, the idea being to move IP/portions of subnets across to the new gateway based on source IP routing.


As such the 2 commands i've created are below, to create a prefix-list for the IP i am testing, match the IP against the route map - and set the next hop
 
 

 

ip prefix-list Telstra-ASA: 1 entries
seq 5 permit 192.168.22.165/32 ge 32 le 32
             (my test PC)


route-map "Map1" permit seq 10

match ip address prefix-list "Telstra-ASA"

match ip next-hop 192.168.20.18
set ip next-hop 192.168.20.30


 

Test traffic seems to completely ignore the settings and go out the standard 192.168.20.18 default gateway.

1 REPLY
Ian Vaughan
Honored Contributor

Re: How to setup SourceIP based routing

Howdy,

If you want to do PBR (I would always try and find another way myself)
you can only do it if you have *all* zl V2 modules and you use the method here

 

PBR-on-Provision

 

HTH

Ian

 

Hope that helps - please click "Thumbs up" for Kudos if it does
## ---------------------------------------------------------------------------##
Which is the only cheese that is made backwards?
Edam!
Tweets: @2techie4me