DHCP3 Conf

From MS Computech
Revision as of 14:53, 17 May 2009 by Snifer (talk | contribs) (New page: DHCP3 Installation <pre>apt-get -y install dhcp3-server nano /etc/default/dhcp3-server </pre> <pre># Defaults for dhcp initscript # sourced by /etc/init.d/dhcp # installed at /etc/default...)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

DHCP3 Installation

apt-get -y install dhcp3-server
nano /etc/default/dhcp3-server
# Defaults for dhcp initscript
  1. sourced by /etc/init.d/dhcp
  2. installed at /etc/default/dhcp3-server by the maintainer scripts
  1. This is a POSIX shell fragment
  1. On what interfaces should the DHCP server (dhcpd) serve DHCP requests?
  2. 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.9.200.21;
#        option domain-name-servers      192.9.200.254;
#        option routers                  192.9.200.254;
#}

}