Monday, March 10, 2014

How to configure DHCP Service for Grid Infrastructure GNS


  • With DHCP, a host needing an address sends a broadcast message to the network.
  • A DHCP server on the network responds to the request, and assigns an address, along with other information such as:
    • What gateway to use
    • What DNS servers to use
    • What domain to use
  • In the request, a host typically sends a client identifier, usually the MAC address of the interface in question.
  • The identifier sent by Clusterware is not a MAC address, but a VIP resource name such as ora.hostname.vip.
  • Because the IP address is not bound to a fixed MAC address, Clusterware can move it between hosts as needed.

DHCP Configuration: Example

Assumptions about the environment:

  • The hosts have known addresses on the public network.
  • DHCP provides one address per node plus three for the SCAN.
  • The subnet and netmask on the interface to be serviced is 10.228.212.0/255.255.252.0.
  • The address range that the DHCP server will serve is 10.228.212.10 through 10.228.215.254.
  • The gateway address is 10.228.212.1.
  • The name server is known to the cluster nodes.
  • The domain your hosts are in is us.example.com.
  • You have root access.
  • You have the RPM for the DHCP server if it is not already installed.


DHCP Configuration Example

To install and configure DHCP, perform the following steps:

  • As the root user, install the DHCP rpm: # rpm –Ivh dhcp-3.0.1-62.EL4.rpm
  • The DHCP configuration file is /etc/dhcp.conf. In the current example, the minimal configuration for the public network will look similar to the following:
subnet 10.228.212.0 netmask 255.255.252.0

{

default-lease-time 43200;

max-lease-time 86400;

option subnet-mask 255.255.252.0;

option broadcast-address 10.228.215.255;

option routers 10.228.212.1;

option domain-name-servers M.N.P.Q, W.X.Y.Z;

option domain-name "us.example.com";

Pool {

range 10.228.212.10 10.228.215.254;

} }


  • Start the DHCP service: # /etc/init.d/dhcp start

If you encounter any issues, check /var/log/messages for errors. You can adjust the lease time to suit your needs within the subnet.


Videos (Download and save and then Play)

How to configure DHCP for Grid Infrastructure GNS




No comments:

Post a Comment