【使用场景】 linux作为内部dhcp服务器 【前提条件】 服务器操作系统安装正常,网络正常 【操作步骤】 1.编辑dhcpd.conf cat>/etc/dhcp/dhcpd.conf<<EOF ddns-update-style interim; ignore client-updates; next-server 192.168.0.131; filename "pxelinux.0"; allow booting; allow bootp; subnet 192.168.0.0 netmask 255.255.255.0 { #default gateway option routers 192.168.0.1; option subnet-mask 255.255.255.0; range dynamic-bootp 192.168.0.180 192.168.0.200; host ns { hardware ethernet 00:1a:a0:2b:38:81; fixed-address 192.168.0.101;} } EOF2.重启服务 重启各个服务,启动新的客户端验证测试: service dhcpd restart 3.观察客户端是否能获取dhcp地址ifconfig |