HAProxy ALOHA Documentation 11.5

Default Gateway

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

    • [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 web UI.

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

    https://cdn.haproxy.com/documentation/aloha/11-5/assets/interface_setup-4c57f2c87bd88fa7300e8d440c2109bcef43b7087bfb2903fb6298f6b0f2235a.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:

$ 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

Next up

DNS