fixed-address not working

Joseph Bernard jhb at clemson.edu
Wed Aug 27 21:09:57 UTC 2014


This section should be in dhcpd.leases :

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

Thanks,
Joseph B.

On Aug 27, 2014, at 4:51 PM, Andy Howell <andy at gamubaru.com> wrote:

> 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
> _______________________________________________
> dhcp-users mailing list
> dhcp-users at lists.isc.org
> https://lists.isc.org/mailman/listinfo/dhcp-users



More information about the dhcp-users mailing list