fixed-address not working

Andy Howell andy at gamubaru.com
Wed Aug 27 20:51:53 UTC 2014


I'm trying to set a static ip. I have a config:

dns-update-style interim;
ignore client-updates;
option domain-name-servers      192.168.31.1;
authoritative;

host myhost {
        hardware ethernet 00:08:89:f4:35:80;
        fixed-address 172.168.1.60;
}

shared-network GBNet {

        subnet 172.16.0.0 netmask 255.255.0.0 {
                option routers                  172.16.1.14;
                option subnet-mask              255.255.0.0;
                option domain-name-servers      192.168.31.1;
#               pool {
#                       range 172.16.1.60 172.16.1.150;
#               }
                default-lease-time 21600;
                max-lease-time 43200;
        }
        subnet 192.168.32.0 netmask 255.255.255.0 {
                option routers                  192.168.32.2;
                option subnet-mask              255.255.255.0;
        }
}

In the log I see:

DHCPDISCOVER from 00:08:89:f4:35:80 via eth1: network GBNet: no free leases

If I uncomment the pool setting for the 172.16.0.0 net, then it assigns a dynamic address.

To make sure I got the MAC address, I cut and pasted it from the log. No luck.

I'm running: dhcp-3.0.5-33.el5_9 on a CentOS 5 box.

Any ideas?


Thanks,

	Andy


More information about the dhcp-users mailing list