Network

Assign IP addresses

Use the web UI or CLI to add or change the HAProxy ALOHA static IP address.

Assign a static IP address through the web UI Jump to heading

You must assign a static internal IP address to your appliance.

Info

Use this IP address for managing the appliance. It can be different from the IP address used to receive incoming traffic.

If you manage a pair of appliances, assign each one a different IP address so you can connect to each of them.

  1. Connect to the web UI as user admin with the password admin at http://<IP Address>:4444/.

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

    Interface Setup

  3. Do one of the following:

    • Enter an IP address and a network mask, either class mask or CIDR format.

      Example:

      Network Interface Setup
      service network eth0 # Class mask format: ip address 172.16.24.237/255.255.255.0 # CIDR format: # ip address 172.16.24.237/24
      Network Interface Setup
      service network eth0 # Class mask format: ip address 172.16.24.237/255.255.255.0 # CIDR format: # ip address 172.16.24.237/24
    • Enter an IP address alias and a network mask, either class mask or CIDR format.

      Example:

      Network Interface Setup
      service network eth0 # Class mask format: ip address 172.16.24.237/255.255.255.0 ip address 172.16.24.238/255.255.255.255 # CIDR format: # ip address 172.16.24.237/24 # ip address 172.16.24.238/32
      Network Interface Setup
      service network eth0 # Class mask format: ip address 172.16.24.237/255.255.255.0 ip address 172.16.24.238/255.255.255.255 # CIDR format: # ip address 172.16.24.237/24 # ip address 172.16.24.238/32
  4. Reload the network interface.

  5. To make your changes persistent after a reboot, click the Setup tab. Then click Save under Configuration.

Assign a static IP address through the CLI Jump to heading

  1. Connect to the appliance as user admin with the password admin through:

    • SSH at http://<IP Address>:4444/, or
    • the serial port.

    In version 13.5 and later, you can also click Launch a terminal in the web UI’s Tools tab.

  2. Get root access.

    nix
    root
    nix
    root
  3. Set up the device hostname.

    nix
    config set system hostname <HOSTNAME>
    nix
    config set system hostname <HOSTNAME>

    Example:

    nix
    config set system hostname MYALOHA
    nix
    config set system hostname MYALOHA
  4. Set up the IP address for the eth0 network interface.

    nix
    config set network.eth0 ip-address <IP/NETMASK>
    nix
    config set network.eth0 ip-address <IP/NETMASK>

    Example:

    nix
    config set network.eth0 ip-address 172.16.24.237/24
    nix
    config set network.eth0 ip-address 172.16.24.237/24
  5. Set up the default gateway.

    nix
    config set network.eth0 ip-route-default <GATEWAY>
    nix
    config set network.eth0 ip-route-default <GATEWAY>

    Example:

    nix
    config set network.eth0 ip-address 172.16.24.1
    nix
    config set network.eth0 ip-address 172.16.24.1
  6. Apply your configuration.

    nix
    service network restart
    nix
    service network restart
  7. Connect HAProxy ALOHA to your network using its eth0 network interface.

  8. Ping HAProxy ALOHA.

  9. If the ping succeeds, save the configuration.

    nix
    config save
    nix
    config save

Troubleshooting Jump to heading

This section describes common troubleshooting steps.

Duplicate IPs

To troubleshoot duplicate IPs, you can use the ARP who-has diagnostic tool.

This tool checks if the MAC address associated with the IP address is the one expected or not:

  • If yes, the problem may be on an upper layer

  • If not, the MAC address of the server has the duplicated IP

Ping

You can use the ping diagnostic tool to try to reach an IP address on the network.

Do you have any suggestions on how we can improve the content of this page?