Configuring /etc/hosts
Your /etc/hosts
file on each node must contain entries for the local host, the two Linux node names, their IP addresses and the logical host. You can create this file on both nodes even if these IP addresses are not yet configured.
Define the local host 127.0.0.1 as shown in the example below.
The “public network interface” is that which you defined when you first installed the operating system. In the following example, it is mapped to physical device NET0 (logical device eno1
).
The /etc/hosts
file must contain entries for the ACSLS HA interconnects as shown below. They must be named localnode
and remotenode
. You will configure the actual interfaces later in the configuration process. For now, add them to the /etc/hosts
file.
# localhost
127.0.0.1 localhost localhost.localdomain localhost4
localhost4.localdomain4
::1 localhost localhost.localdomain localhost6
localhost6.localdomain6
# Public Network
10.80.25.113 hostname1.Domain-name.com hostname1
# ACSLS-HA Logical Host
10.80.25.65 hostname1.Domain-name.com hostname1
# ACSLS-HA Interconnects
192.168.84.1 localnode
192.168.84.2 remotenode
# localhost
127.0.0.1 localhost localhost.localdomain localhost4
localhost4.localdomain4
::1 localhost localhost.localdomainlocalhost6
localhost6.localdomain6
# Public Network
10.80.25.131 hostname2.Domain-name.com hostname2
# ACSLS-HA Logical Host
10.80.25.65 hostname2.Domain-name.com hostname2
# ACSLS-HA Interconnects
192.168.84.1 remotenode
192.168.84.2 localnode