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:

  1. 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. Replace 10.0.0.1 with the actual IP address of Host 1 and example.com with the actual domain name of Host 2. If you are using a network interface other than eth0, edit the configuration file for that interface instead.
    prepend domain-name-servers 10.0.0.1;
    prepend domain-search "example.com";
  2. Edit the /etc/sysconfig/network file on Host 2, and set the HOSTNAME parameter to the fully-qualified domain name (FQDN) of Host 2. Replace node.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.
  3. Set the host name immediately:
    # hostname node.example.com

    Note

    If you use the kickstart or bash script, the configure_dns_resolution and configure_hostname functions perform these steps.
  4. Run the hostname command on Host 2:
    # hostname