Difference between revisions of "DHCP3 Conf"
From MS Computech
Line 2: | Line 2: | ||
<pre>apt-get -y install dhcp3-server | <pre>apt-get -y install dhcp3-server | ||
nano /etc/default/dhcp3-server | nano /etc/default/dhcp3-server | ||
− | </pre> | + | </pre> <pre># Defaults for dhcp initscript |
− | <pre># Defaults for dhcp initscript | ||
#sourced by /etc/init.d/dhcp | #sourced by /etc/init.d/dhcp | ||
#installed at /etc/default/dhcp3-server by the maintainer scripts | #installed at /etc/default/dhcp3-server by the maintainer scripts | ||
Line 13: | Line 12: | ||
INTERFACES="eth0" | INTERFACES="eth0" | ||
</pre> | </pre> | ||
− | |||
/etc/dhcp3/dhcpd.conf | /etc/dhcp3/dhcpd.conf | ||
<pre># ddns-update-style interim; | <pre># ddns-update-style interim; | ||
Line 29: | Line 27: | ||
#host pc01 { | #host pc01 { | ||
# hardware ethernet 00:c0:4f:a0:ba:85; | # hardware ethernet 00:c0:4f:a0:ba:85; | ||
− | # fixed-address 192. | + | # fixed-address 192.168.1.150; |
− | # option domain-name-servers 192. | + | # option domain-name-servers 192.168.1.1; |
− | # option routers 192. | + | # option routers 192.168.1.1; |
#} | #} | ||
} | } | ||
</pre> | </pre> |
Revision as of 14:55, 17 May 2009
DHCP3 Installation
apt-get -y install dhcp3-server nano /etc/default/dhcp3-server
# Defaults for dhcp initscript
- sourced by /etc/init.d/dhcp
- installed at /etc/default/dhcp3-server by the maintainer scripts
- This is a POSIX shell fragment
- On what interfaces should the DHCP server (dhcpd) serve DHCP requests?
- Separate multiple interfaces with spaces, e.g. "eth0 eth1".
INTERFACES="eth0"
/etc/dhcp3/dhcpd.conf
# ddns-update-style interim; subnet 192.168.1.0 netmask 255.255.255.0 { option subnet-mask 255.255.255.0; option domain-name-servers 192.168.1.1; option routers 192.168.1.1; option time-offset -16000; range 192.168.1.100 192.168.1.254; # Phat Computer #host pc01 { # hardware ethernet 00:c0:4f:a0:ba:85; # fixed-address 192.168.1.150; # option domain-name-servers 192.168.1.1; # option routers 192.168.1.1; #} }