Forum Discussion
Michael_Kelsey_
Nimbostratus
Sep 18, 2007LTM Multiple Default Routes?
I wish to establish multiple default routes in more or less a virtual router perspective. I have four ports on a LTM (C62a, running BigIP 9.4.0) partitioned into two private networks and two public networks. Conceptually, I have a one-to-one relationship between each pair of public and private networks, in so much as the private networks can be thought of on paper as PV1 and PV2 and the public interfaces PB1 and PB2. The public networks host virtual servers and the private networks host the pools and pool members. There is a one-to-one relationship for PV1 and PB1. Similarly a one-to-one relationship for PV2 and PB2.
I have configured a virtual server on PB1 to use the "Last Hop" feature, which guarantees that traffic directed to any participating pool members registered with the virtual server will always egress back through PB1. The same works for PB2, but it doesn't seem to apply to NATs in PB2 when PB1 is the default route.
I have a definitive need for NATs and I would like to know if it's possible to configure routing such that traffic initiated by hosts (individual pool members) in PV1 can always egress through PB1 and similarly hosts (individual pool members) in PV2 will always egress through PB2.
Currently the BigIP has a default route that egresses through PB1. All NATs in PV2, though, egress through PB1, which is not what I want. I want PV2 traffic to egress through PB2.
I would prefer that hosts in PV1 and PV2 egress as their unique public IP on PB1 and PB2 respectively, however, I will be satisfied even if it's only possible to egress on a shared IP from PB1 for PV1 traffic and a PB2 shared IP for traffic in PV2.
Does anyone have any design (or redesign) suggestions? Are there better ways to implement this design? Can port ranges be proxied by a virtual server published on the private networks that serves as a proxy for the pool members (provided any conflicting NATs are removed)?
- Deb_Allen_18Historic F5 AccountOK, first let's make sure we're talking about the right feature, since we have 2 ways to perform source address translation -- NAT (Click here) & SNAT (Click here).
- Michael_Kelsey_
Nimbostratus
I am hoping I can depend on NATs (not SNATs) to establish a publicly routable IP address for the pool members on the private side. The NAT mapping is 1:1. - Deb_Allen_18Historic F5 AccountHi Michael --
I /\ / \ / \ --------- --------- 12.1.37.1 12.1.39.1 --------- --------- | | | | ------------------------ | LTM | ------------------------ | | 192.168.37.x 192.168.39.x nats out to nats out to 12.1.37.x 12.1.39.x
when CLIENT_ACCEPTED { set failed 0 if {[IP::addr [IP::client_addr] equals 192.168.37.0/24]}{ node 12.1.37.1 } elseif {[IP::addr [IP::client_addr] equals 192.168.39.0/24]}{ node 12.1.39.1 } } when LB_FAILED { if {$failed == 0}{ if {[IP::addr [IP::client_addr] equals 192.168.37.0/24]}{ log local0. ".37. gateway not responding, trying .39." node 12.1.39.1 } elseif {[IP::addr [IP::client_addr] equals 192.168.39.0/24]}{ log local0. ".39. gateway not responding, trying .37." node 12.1.37.1 } set failed 1 } else { discard log local0. "both gateways down, can't forward, discarding ([IP::client_addr]:[TCP::client_port])" } }
- Michael_Powell1
Nimbostratus
Hi - Deb_Allen_18Historic F5 AccountYou're very welcome.
- Joe_41697
Nimbostratus
This solution is definitely a winner for me. I have a similar network configuration, and this fixed my issue. - Michael_Kelsey_
Nimbostratus
I had a chance to test this out and for some reason it does not work.
Recent Discussions
Related Content
DevCentral Quicklinks
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com
Discover DevCentral Connects