dhcp配置中经常会看到如下的警告信息:
dhcpd: WARNING: Host declarations are global. They are not limited to the scope you declared them in.
这个实际上是告诉你host配置静态ip有问题,解决方法其实很简单,按如下方法写配置文件即可:
group {
host abc {
hardware ethernet 00:21:86:56:11:11;
fixed-address 10.8.0.1;
option routers 10.8.0.254;
option domain-name-servers 10.8.0.254;
}
host bcd {
hardware ethernet 00:26:22:27:11:11;
fixed-address 10.8.0.2;
option routers 10.8.0.254;
option domain-name-servers 10.8.0.253;
}
}