位置:海鸟网 > IT > linux/Unix >

关于Linux系统DHCP配置步骤概括介绍

Server的配置

1.netconfig//配置服务器端IP

servicenteworkrestart

2.mount/dev/cdrom//安装dhcp所需软件

rpm-ivhdhcp-3………

rpm-ivhdhcp-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.servicedhcpdrestart//启动dhcp服务

servicedhcpdstatus

Client的配置

Windows:ipconfig/release//释放IP

ipconfig/renew//重新获取IP

ipconfig//查看IP

Linux:netconfig//设置IP为动态获取

servicenetworkrestart

Server信息查看

tail/var/lib/dhcp/dhcpd.leases//查看租约文件内容