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 //查看租约文件内容
新闻热点
疑难解答