Assign an IP Address
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
You must assign a static internal IP address to your appliance.
If you manage a pair of appliances, assign each one a different IP address so you can connect to each of them.
Connect to the web UI as user admin with the password admin at http://<IP Address>:4444/.
In the Services tab, click network instance setup next to a network interface.
Do one of the following:
Enter an IP address (e.g. 172.16.24.237) and a network mask (e.g. 255.255.255.0).
service network eth0 ip address 172.16.24.237/255.255.255.0
Enter an IP address alias (e.g. 172.16.24.238) and a /32 network mask (255.255.255.255).
service network eth0 ip address 172.16.24.237/255.255.255.0 ip address 172.16.24.238/255.255.255.255
Reload the network interface.
Assign a static IP address through the CLI
Connect to the appliance as user admin with the password admin through:
SSH at http://<IP Address>:4444/, or
the serial port.
Get root access.
Set up the device hostname.
root@aloha1:~# config set system hostname <HOSTNAME>
root@aloha1:~# config set system hostname MYALOHA
Set up the IP address for the eth0 network interface.
root@aloha1:~# config set network.eth0 ip-address <IP/NETMASK>
root@aloha1:~# config set network.eth0 ip-address 172.16.24.237/24
Set up the default gateway.
root@aloha1:~# config set network.eth0 ip-route-default <GATEWAY>
root@aloha1:~# config set network.eth0 ip-address 172.16.24.238
Apply your configuration.
root@aloha1:~# service network restart
Connect HAProxy ALOHA to your network using its eth0 network interface.
Ping HAProxy ALOHA.
If the ping succeeds, save the configuration.
root@aloha1:~# config save
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
You can use the ping diagnostic tool to try to reach an IP address on the network.
Next upAdd IP Static Routes