DHCP服务

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;
 }

欢迎关注我的CSDN个人博客知乎

posted @ 2023-11-06 11:26  hmiking  阅读(6)  评论(0编辑  收藏  举报