DHCP Server » History » Version 1
Joseph Foley, 2015-09-05 02:58
1 | 1 | Joseph Foley | h1. DHCP Server |
---|---|---|---|
2 | |||
3 | This is installed on bridge.dev.ru.is, which is our router/bridge. @eth1@ is DevNet, so only have DHCP answer on that interface. |
||
4 | To keep things managable, we should use LDAP as our central host configuration database. Unfortunately, the ubuntu isc-dhcp-server-ldap package only appears to be in ubuntu versions later than 10.04. It may be time to upgrade. |
||
5 | |||
6 | h2. Status: |
||
7 | |||
8 | * I give up trying to make dhcpd work on the bridge machine because shorewall won't allow it on a bridge port. I am no moving it to gryla --foley |
||
9 | * It is working on gryla. I have made a dns alias for dhcp.dev.ru.is --foley 2012-04-11 |
||
10 | |||
11 | h2. Possible software |
||
12 | |||
13 | There are also links on the [[OpenLDAP]] wiki page because of the possible integration efforts |
||
14 | |||
15 | * dhcp-3 https://help.ubuntu.com/community/dhcp3-server |
||
16 | * DHCP server on CentOS http://www.centos.org/docs/5/html/Deployment_Guide-en-US/s1-dhcp-configuring-server.html |
||
17 | * DHCP and shorewall http://www.shorewall.net/dhcp.htm |
||
18 | * http://phpdhcpadmin.sourceforge.net/ |
||
19 | * DHCP from LDAP info https://launchpad.net/ubuntu/natty/+package/isc-dhcp-server-ldap |
||
20 | ** Schema RFC http://tools.ietf.org/id/draft-ietf-dhc-ldap-schema-00.txt |
||
21 | ** Grotan hints http://www.grotan.com/ldap/dhcp-ldap-readme |
||
22 | * Ubuntu package https://launchpad.net/ubuntu/natty/+package/isc-dhcp-server-ldap |
||
23 | |||
24 | h2. Installation |
||
25 | |||
26 | # @ssh dhcp.dev.ru.is@ |
||
27 | # @sudo apt-get install dhcp3-server@ |
||
28 | # Copy the sample file to get started |
||
29 | <pre>sudo cp /usr/share/doc/dhcp-4.1.1/dhcpd.conf.sample /etc/dhcp3/dhcpd.conf</pre> |
||
30 | # Edit heavily. Should include these lines |
||
31 | <pre> |
||
32 | authoritative;subnet 130.208.209.0 netmask 255.255.255.224 { |
||
33 | # option definitions common to all supported networks... |
||
34 | option domain-name "dev.ru.is"; |
||
35 | option domain-name-servers ns1.dev.ru.is, ns2.dev.ru.is; |
||
36 | option subnet-mask 255.255.255.224; |
||
37 | option broadcast-address 130.208.209.47; |
||
38 | option routers 130.208.209.35; |
||
39 | option domain-name-servers 130.208.209.35, 130.208.209.37; |
||
40 | default-lease-time 600; |
||
41 | max-lease-time 7200; |
||
42 | |||
43 | # very limited because most are already allocated |
||
44 | # we also don't dhcp for sigdor's machine in 33 and 34 |
||
45 | range 130.208.209.35 130.208.209.46; |
||
46 | host eir { |
||
47 | hardware ethernet 00:06:5b:ec:3f:b0; |
||
48 | fixed-address eir.dev.ru.is; |
||
49 | } |
||
50 | |||
51 | #.... more static hosts ... |
||
52 | } |
||
53 | </pre> |
||
54 | # restart the dhcp |
||
55 | <pre>sudo service dhcp3-server restart</pre> |