Comware

 View Only
Expand all | Collapse all

How to setup SourceIP based routing

This thread has been viewed 0 times
  • 1.  How to setup SourceIP based routing

    Posted Jun 03, 2014 09:17 AM

    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.



  • 2.  RE: How to setup SourceIP based routing

    Posted Jun 10, 2014 08:02 PM

    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