DHCP服务

DHCP服务

(1)服务器
配置文件: dhcpd.conf
dhcp服务命令:dhcpd
提示:whereis dhcpd

(2)linux客户端: 手动dhcp请求命令
dhclient eth0 ;请求
         ifconfig eth0 ;查看

(3)dhcpd.conf 示例:
 
    vi  /etc/dhcpd.conf

ddns-update-style interim;
subnet 172.23.199.0 netmask 255.255.255.0 {
option routers 172.23.199.254;
option subnet-mask 255.255.255.0;
option domain-name-servers 172.23.199.254;
range dynamic-bootp 172.23.199.100  172.23.199.140;

host webserver {
hardware ethernet 12:34:56:78:AB:CD;
   fixed-address 172.23.199.150;
}
}

你可能感兴趣的:(linux,DHCP)