-
Language:
English
-
Language:
English
9.5. Configuring the Node Host DHCP and Host Name
The node host (Host 2) requires general network configuration. Replace
eth0
in the file names with the appropriate network interface for your system in the examples that follow.
Procedure 9.4. To Configure the DHCP Client and Host Name on the Node Host:
- Create the
/etc/dhcp/dhclient-eth0.conf
file, then add the following lines to configure the DHCP client to send DNS requests to the broker (Host 1) and assume the appropriate host name and domain name. Replace10.0.0.1
with the actual IP address of Host 1 andexample.com
with the actual domain name of Host 2. If you are using a network interface other thaneth0
, edit the configuration file for that interface instead.prepend domain-name-servers 10.0.0.1; prepend domain-search "example.com";
- Edit the
/etc/sysconfig/network
file on Host 2, and set theHOSTNAME
parameter to the fully-qualified domain name (FQDN) of Host 2. Replacenode.example.com
in the following example with the host name of Host 2.HOSTNAME=node.example.com
Important
Red Hat does not recommend changing the node host name after the initial configuration. When an application is created on a node host, application data is stored in a database. If the node host name is modified, the data does not automatically change, which can cause the instance to fail. The node host name cannot be changed without deleting and recreating all gears on the node host. Therefore, verify that the host name is configured correctly before deploying any applications on a node host. - Set the host name immediately:
#
hostname node.example.com
Note
If you use the kickstart or bash script, theconfigure_dns_resolution
andconfigure_hostname
functions perform these steps. - Run the
hostname
command on Host 2:#
hostname