DHCP for Linux

From KlavoWiki
Revision as of 05:13, 7 November 2012 by David (talk | contribs) (Created page with "<pre> yum -y install dhcp chkconfig dhcpd on </pre> <pre> vi /etc/dhcp/dhcpd.conf </pre> <pre> subnet 10.17.1.0 netmask 255.255.255.0 { default-lease-time ...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigationJump to search
yum -y install dhcp
chkconfig dhcpd on
vi /etc/dhcp/dhcpd.conf
subnet 10.17.1.0 netmask 255.255.255.0
   {
        default-lease-time              86400;   # Seconds, 86400 =  24 Hours
        max-lease-time                  86400;

        option tftp66 code 66 =         10.17.1.5;

        option routers                  10.17.1.254;
        option subnet-mask              255.255.255.0;

        option domain-name              "mydomain.com";
        option domain-name-servers       10.17.1.254;

        option time-offset              36000;   # Australian Eastern Standard Time in Seconds

        range 10.17.1.101 10.17.1.150;
   }

The details of client devices with IP address will be entered into the file:

/var/lib/dhcpd/dhcpd.leases