Server的配置
1.netconfig //配置服務器端IP
service ntework restart
2.mount /dev/cdrom //安裝dhcp所需軟件
rpm -ivh dhcp-3………
rpm -ivh dhcp-d………
umount /dev/cdrom
3.vi /etc/dhcpd.conf //配置dhcp服務器配置文件(默認文件不存在,需手工建立)
cp /usr/share/dhcp-3.0.1/dhcpd.conf.sample /etc/dhcpd.conf
vi /etc/dhcpd.conf
4.service dhcpd restart //啟動dhcp服務
service dhcpd status
Client的配置
Windows: ipconfig /release //釋放IP
ipconfig /renew //重新獲取IP
ipconfig //查看IP
Linux: netconfig //設置IP為動態獲取
service network restart
Server信息查看
tail /var/lib/dhcp/dhcpd.leases //查看租約文件內容