HAProxy Enterprise Documentation 12.5

Default Gateway

You can specify the default gateway that will allow your HAProxy ALOHA appliance to communicate with devices outside its subnet.

Important

Specify only one default gateway: all network interfaces will use the default gateway you specify for any interface.

    • [VM appliance] Create a snapshot of your VM.

    • [Hardware appliance] Make sure you can connect to your appliance through the serial port.

      If you specify an invalid IP address for the default gateway, you may not be able to:

      • log in to your appliance through SSH, nor

      • display the WUI.

  1. In the Services tab, click network instance setup setup_icon next to a network interface.

    https://cdn.haproxy.com/documentation/aloha/12-5/assets/interface_setup-793bcaec28321fe396915d219f6523986b63381e49c3bd1074e60fbf091fab00.png
  2. Specify the default gateway through the ip route default directive.

    For example, to use the router whose IP address is 172.16.24.1 as the default gateway:

    service network eth0
      ip address 172.16.24.237/255.255.255.0
      ip route default 172.16.24.1
  3. Reload reload_icon the network interface or the whole network service.

If you can log in to your appliance through SSH or the serial port, you can check the default gateway.

For example:

admin@ALOHA1:~$ netstat -r
Kernel IP routing table
Destination     Gateway         Genmask         Flags   MSS Window  irtt Iface
default         172.16.24.1     0.0.0.0         UG        0 0          0 eth0
172.16.24.0     *               255.255.255.0   U         0 0          0 eth0