InstallDCCP » History » Version 2

Anonymous, 08/31/2007 11:53 AM

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