InstallDCCP » History » Version 1

Anonymous, 08/31/2007 11:53 AM

1 1 Anonymous
== DHCP Configuration ==
2 1 Anonymous
All machines obtain their IP addresses, names, etc. dynamically for the internal interface.
3 1 Anonymous
4 1 Anonymous
=== DHCP Server ===
5 1 Anonymous
Make sure that the DHCP server only responds to queries from the internal interface (ETH1).
6 1 Anonymous
Modify ''/etc/sysconfig/dhcpd'':
7 1 Anonymous
{{{
8 1 Anonymous
# Command line options here
9 1 Anonymous
DHCPDARGS=eth1
10 1 Anonymous
}}}
11 1 Anonymous
12 1 Anonymous
Modifiy ''/etc/dhcpd.conf'' on the head nodde:
13 1 Anonymous
{{{
14 1 Anonymous
#Allow to send negative acknowledgements (NAK) to clients
15 1 Anonymous
#authoritative;
16 1 Anonymous
ddns-update-style    none;
17 1 Anonymous
default-lease-time   259200;
18 1 Anonymous
19 1 Anonymous
#Allow clients with unknown MAC address to obtain an IP
20 1 Anonymous
#(useful for installing new machines)
21 1 Anonymous
boot-unknown-cliensts = true;
22 1 Anonymous
use-host-decl-names   = true;
23 1 Anonymous
24 1 Anonymous
subnet 192.168.199.0 netmask 255.255.255.0 {
25 1 Anonymous
   #Default Gateway
26 1 Anonymous
   option routers       192.168.199.10;
27 1 Anonymous
   option subnet-mask   255.255.255.0;
28 1 Anonymous
29 1 Anonymous
   #DNS Options
30 1 Anonymous
   option domain-name         "procksi.local";
31 1 Anonymous
#  option domain-name-servers 192.168.199.10;
32 1 Anonymous
33 1 Anonymous
   #NIS Options
34 1 Anonymous
#  option nis-domain    "procksi.nis";
35 1 Anonymous
#  option nis-servers   192.168.199.10;
36 1 Anonymous
37 1 Anonymous
   #Time Options
38 1 Anonymous
   option ntp-servers   128.243.21.16, 128.243.21.19;
39 1 Anonymous
40 1 Anonymous
   #Fixed IP Settings
41 1 Anonymous
   host procksi0-priv {
42 1 Anonymous
      option host-name "procksi0-priv";
43 1 Anonymous
      hardware ethernet 00:00:5A:9D:44:54;
44 1 Anonymous
      fixed-address 192.168.199.10;
45 1 Anonymous
   }
46 1 Anonymous
   host procksi1-priv {
47 1 Anonymous
      option host-name "procksi1-priv";
48 1 Anonymous
      hardware ethernet 00:15:C5:5D:89:5A;
49 1 Anonymous
      fixed-address 192.168.199.11;
50 1 Anonymous
   }
51 1 Anonymous
   host procksi2-priv {
52 1 Anonymous
      option host-name "procksi2-priv";
53 1 Anonymous
      hardware ethernet 00:15:C5:5D:B8:AC;
54 1 Anonymous
      fixed-address 192.168.199.12;
55 1 Anonymous
   }
56 1 Anonymous
  host procksi3-priv {
57 1 Anonymous
     option host-name "procksi3-priv";
58 1 Anonymous
     hardware ethernet ;
59 1 Anonymous
     fixed-address 192.168.199.13;
60 1 Anonymous
  }
61 1 Anonymous
  host procksi4-priv {
62 1 Anonymous
     option host-name "procksi4-priv";
63 1 Anonymous
     hardware ethernet 00:E0:81:48:19:80;
64 1 Anonymous
     fixed-address 192.168.199.14;
65 1 Anonymous
  }
66 1 Anonymous
67 1 Anonymous
}}}
68 1 Anonymous
69 1 Anonymous
Enable DHCP server at boottime
70 1 Anonymous
{{{
71 1 Anonymous
chkconfig dhcpd on
72 1 Anonymous
}}}
73 1 Anonymous
74 1 Anonymous
Start DHCP server
75 1 Anonymous
{{{
76 1 Anonymous
/sbin/service dhcpd start
77 1 Anonymous
}}}
78 1 Anonymous
79 1 Anonymous
=== DHCP Client ===
80 1 Anonymous
Modify ''/etc/sysconfig/network-scripts/ifcfg-eth0'' (INTERNAL INTERFACE) on each slave node and the head node:
81 1 Anonymous
{{{
82 1 Anonymous
DEVICE=eth0
83 1 Anonymous
BOOTPROTO=dhcp
84 1 Anonymous
HWADDR= [add MAC address here]
85 1 Anonymous
ONBOOT=yes
86 1 Anonymous
TYPE=Ethernet
87 1 Anonymous
}}}