DHCP Configuration¶
All machines obtain their IP addresses, names, etc. dynamically for the internal interface.
DHCP Server¶
Make sure that the DHCP server only responds to queries from the internal interface (ETH1).
Modify /etc/sysconfig/dhcpd:
# Command line options here DHCPDARGS=eth1
Modifiy /etc/dhcpd.conf on the head nodde:
#Allow to send negative acknowledgements (NAK) to clients #authoritative; ddns-update-style none; default-lease-time 259200; #Allow clients with unknown MAC address to obtain an IP #(useful for installing new machines) boot-unknown-cliensts = true; use-host-decl-names = true; subnet 192.168.199.0 netmask 255.255.255.0 { #Default Gateway option routers 192.168.199.10; option subnet-mask 255.255.255.0; #DNS Options option domain-name "procksi.local"; # option domain-name-servers 192.168.199.10; #NIS Options # option nis-domain "procksi.nis"; # option nis-servers 192.168.199.10; #Time Options option ntp-servers 128.243.21.16, 128.243.21.19; #Fixed IP Settings host procksi0-priv { option host-name "procksi0-priv"; hardware ethernet 00:00:5A:9D:44:54; fixed-address 192.168.199.10; } host procksi1-priv { option host-name "procksi1-priv"; hardware ethernet 00:15:C5:5D:89:5A; fixed-address 192.168.199.11; } host procksi2-priv { option host-name "procksi2-priv"; hardware ethernet 00:15:C5:5D:B8:AC; fixed-address 192.168.199.12; } host procksi3-priv { option host-name "procksi3-priv"; hardware ethernet ; fixed-address 192.168.199.13; } host procksi4-priv { option host-name "procksi4-priv"; hardware ethernet 00:E0:81:48:19:80; fixed-address 192.168.199.14; }
Enable DHCP server at boottime
chkconfig dhcpd on
Start DHCP server
/sbin/service dhcpd start
DHCP Client¶
Modify /etc/sysconfig/network-scripts/ifcfg-eth0 (INTERNAL INTERFACE) on each slave node and the head node:
DEVICE=eth0 BOOTPROTO=dhcp HWADDR= [add MAC address here] ONBOOT=yes TYPE=Ethernet