DHCP服务
yum install –y dhcp* DHCP所需的软件包
cp –p /usr/share/doc/dhcp.4.2.5/dhcp.conf.sample /etc/dhcp/dhcpd.conf 复制模板文件
vim / etc/dhcp/dhcpd.conf
shared-network xxx{ } 超级作用域
subnet 192.168.30.0 netmask 255.255.255.0{
option routers 192.168.30.1; 网关
option nis-domain ‘xxx.com’; NIS域名
option domain-name ‘xxx.com’; DNS域名
option domain-name-servers 192.168.30.254; DNS地址
range dynamin-bootp 192.168.30.10 192.168.30.100; 地址池
default-lease-time 21600 最短租期
max-lease-time 43200 最长租期
}
host client{ 保留
hardwareethernet 00:11:22:33:44:55;
fixed-address 192.168.30.40;
}
标签:domain,服务,option,192.168,conf,dhcp,DHCP
From: https://www.cnblogs.com/oldit/p/17811955.html