全国直销电话:4006-854-568
IT-technology
以人为本,众志成城,以“用户至上”.“服务上乘”为原则,
追求产品和服务高质量,努力实现与客户之间真诚有效的沟通,
不断地圆梦、奔跑与腾飞。
新闻动态   NEWS
​Centos7.8部署DHCP及地址保留、超级作用域-北京赛维博信科技发展有限公司
来源: | 作者:svbx001 | 发布时间: 2022-04-15 | 3372 次浏览 | 分享到:

三.配置保留地址

那么为什么要有保留地址呢?一些主机需要固定的IP,但是仍然使用DHCP来分配地址,配置完地址保留后,以后每次给这个主机分配的IP都是相同的。

还是打开配置文件 /etc/dhcp/dhcpd.conf

找到下面这部分:

# Fixed IP addresses can also be specified for hosts.   These addresses# should not also be listed as being available for dynamic assignment.# Hosts for which fixed IP addresses have been specified can boot using# BOOTP or DHCP.   Hosts for which no fixed address is specified can only# be booted with DHCP, unless there is an address range on the subnet# to which a BOOTP client is connected which has the dynamic-bootp flag# set.host fantasia {  hardware ethernet 08:00:07:26:c0:a5;fixed-address fantasia.fugue.com;}
 

服务热线

1391-024-6332