dhcpd server-identifier具有相同的固定地址

时间:2014-09-17 05:44:13

标签: dhcp

为什么我的dhcp服务器ip已租给dhcp客户端?

这是我的dhcpd.conf

subnet 192.168.254.0 netmask 255.255.255.0 {
    range 192.168.254.1 192.168.254.254;
}
host 402c2627-a493-3b1e-bcd4-db72414e891cbond0-10-1 {
    hardware ethernet 00:0C:29:A6:A0:CB;
    fixed-address 192.168.254.1;
}
host 402c2627-a493-3b1e-bcd4-db72414e891cbond0-10-2 {
    hardware ethernet 00:0C:29:A6:A0:C1;
    fixed-address 192.168.254.1;
}

这是接口bond0.10 configure

DEVICE="bond0.10"
VLAN="yes"
ONBOOT="yes"
BOOTPROTO="static"
IPADDR="192.168.254.1"
NETMASK="255.255.255.0"

这是我的dhcpd.lease文件

lease 192.168.254.1 {
  starts 3 2014/09/17 09:01:54;
  ends 3 2014/09/17 21:01:54;
  cltt 3 2014/09/17 09:01:54;
  binding state active;
  next binding state free;
  hardware ethernet 00:0c:29:5d:d8:a2;
}

这是我的dhclient-bond0.10.lease文件

lease {
  interface "bond0.10";
  fixed-address 192.168.254.1;
  option subnet-mask 255.255.255.0;
  option dhcp-lease-time 43200;
  option dhcp-message-type 5;
  option dhcp-server-identifier 192.168.254.1;
  renew 3 2014/09/17 13:59:18;
  rebind 3 2014/09/17 19:31:53;
  expire 3 2014/09/17 21:01:53;
}

还有我的dhcpd& dhclient版本

[root@localhost lib]# dhcpd --version
isc-dhcpd-4.1.1-P1
[root@localhost lib]# dhclient --version
isc-dhclient-4.1.1-P1

我的操作系统版本是

[root@localhost lib]# dhclient --version
isc-dhclient-4.1.1-P1

1 个答案:

答案 0 :(得分:0)

我建议你更改这一行:

range 192.168.254.1 192.168.254.254;

为:

range 192.168.254.2 192.168.254.254;