dhcpd 一个警告信息的解决方法

来源:互联网 发布:淘宝淘口令怎么打开 编辑:程序博客网 时间:2024/04/24 08:32

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

  }

 

 

原创粉丝点击