三.配置保留地址
那么为什么要有保留地址呢?一些主机需要固定的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;}