Related documents:
template file:/usr/share/doc/dhcp-3.0.5/dhcpd.conf.sample configuration file:/etc/dhcpd.conf Lease file:/var/lib/dhcpd/dhcpd.leases
related RPM Packages:
dhcp-3.0.5-18.e15.i386.rpmdhcpv6-1.0.10-16.e15.i386.rpmdhcp-devel-3.0.5-18.e15.i386.rpmdhcpv6_ client-1.0.10-16.e15.i386.rpm
4 stages:
DHCP
Discover//IP lease request DHCP offer//IP lease provide DHCP resquest//IP lease Select DHCP Ack//IP lease Acknowledgement
configuration file detailed (/etc/dhcpd.conf):
1, Ddns-update-style (NONE|INTERIM|AD-HOC)//Must be located on the first line 2, ignore client-update//Ignore Client update 3, Default-lease-time 2160 0//default lease time 4, Max-lease-time 43200//maximum lease time 5, range DYNAMIC-BOOTP start IP End IP//configuration address pool 6, subnet network number netmask subnet mask Code {7, option routers IP address//Configure Default gateway 8, option Subnet-mask Subnet mask//Configure Subnet mask 9, option Domain-name-servers IP address//dns address} 10, host ceo{11, hardware Ethernet MAC address//Configure the fixed host MAC address 12, Fixed-a ddress fixed IP//configuration fixed assigned IP address}
configuration of the client:
simply configure the/etc/sysconfig/network-scripts/ifcfg-eth0 file under Bootproto=dhcp to
Configure boot auto-load:
chkconfig-level 3 DHCP on//configuration Level 3, power on automatically load DHCP service (level 3 is character interface) Chkconfig-level 3 DHCP off//configuration Level 3, power on does not automatically load DHCP service (level 3 for character interface)
DHCP server configuration--linux