Often clients and Real Servers need to be reached on networks via gateways other than the LoadMaster Default Gateway (for example when the LoadMaster is sitting in a DMZ network and needs to reach internal subnets). A static route tells the LoadMaster the IP address of the correct router to use for a particular subnet or host.
To create a static route, follow the steps below in the LoadMaster Web User Interface (WUI):
- Go to System Configuration > Network Setup > Additional Routes.
- Define the new route. The Destination should be the subnet or host definition that the LoadMaster needs to contact. The Gateway should be the IP address of a gateway router on a network that the LoadMaster is connected to that can route traffic to the Destination.
A LoadMaster has eth0 connected to the subnet 192.168.0.0/24 with a default gateway of 192.168.0.1 and needs to communicate to the network 10.0.0.0/24 which is reachable over a Multiprotocol Label Switching (MPLS) connection controlled by the MPLS router 192.168.0.100.
The static route that needs to be configured would have the following settings:
- Destination = 10.0.0.0/24
- Gateway = 192.168.0.100
Note: Ensure to include the Classless Inter-Domain Routing (CIDR) subnet notation (i.e. /24) in subnet definitions, otherwise the LoadMaster will automatically assign a /32 value to the route.