Forum Discussion

BigIP_SJ_132967's avatar
BigIP_SJ_132967
Icon for Nimbostratus rankNimbostratus
Sep 04, 2013

Policy Based Routing (PBR) - Using IP prefix on management and productive interface

Hi,

 

Guess I have a classic standard problem. I want to serve a service (DNS) in my management network, via a dedicated interface/vlan, not via the management interface. Problem is, that the service interface and management interface have to be able to reach the same IPs/networks. Basically it can happen, that a request on the service interface, would be replied via the management interface. This is what I am looking to solve, f.e. via Policy Based Routing or something similar.

 

Example:

 

Management Interface Name: eth0 IP: 192.168.1.10/24 Route: 192.168.0.0/20 via eth0

 

Service Interface Name: eth3 IP: 192.168.15.20/24 Route: 192.168.0.0/20 via eth3

 

So basically services listening on eth3 should be able to serve DNS/the service to all nodes in 192.168.0.0/20 but without mixing the interfaces.

 

Don't know if a Route Domain is what I am looking or if I have to add the interface to the vserver config too or a combination of both or something else.

 

Any hint and example is much appreciated.

 

Rgds, SJ

 

3 Replies

  • I'd hope you could avoid PBR. Static routing on the F5 should work; the management interface should only be used for locally sourced traffic or responding to traffic that came in that way, you should never have a situation where it comes in over a TMM interface and goes out via the management interface. The opposite can occur however.

     

    The management interface default route is only used if the management (HMS) and TMM routing tables contain no match. If you have a default route configured in LTM it'll never be used. Ensure you have specific network routes in both tables and it should work fine.

     

  • Problem is, that the service interface and management interface have to be able to reach the same IPs/networks. Basically it can happen, that a request on the service interface, would be replied via the management interface.

     

    you mean you are having virtual server for dns service and want to make sure dns response is sent via tmm interface, don't you?

     

    if yes, i understand it would be fine because of auto last hop setting.

     

    sol13876: Overview of the Auto Last Hop setting (11.x)

     

    http://support.f5.com/kb/en-us/solutions/public/13000/800/sol13876.html

     

  • Hi,

     

    Thx for the answers. I solved it by introducing a route domain, as described here:

     

    https://devcentral.f5.com/articles/v10-a-look-at-route-domains.UidM5T82C0Q

     

    In short terms you create the route domain and get the domain id. This ID is appended with "%" to all the IP addresses starting from self ip over to the pool members and node definitions like this 192.168.15.1%2 for example for route domain id 2.

     

    at What Lies Beneath: I am not shure, if I exactly tried this, but without success. So let say it's untested and it might be a solution.

     

    at nitass: Auto Last Hop setting works on SRC MAC addresses, but in my case this will always the gateway MAC and should not really work in my case. But thank you anyhow, I did not knew the feature and it might be intersting in an other case.

     

    Thx, SJ