fixed-address not working
Barry Stear
bstear at gmail.com
Wed Aug 27 21:17:56 UTC 2014
Andy.. I believe that is because you haven't told it what range to use for
addresses as you have the pool section commented out where the range is
being specified.
You need to specify your range of IP's. In the case you had a different
range for each Subnet you would configure as below, I believe.
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;
*range 172.16.1.60 172.16.1.150;*# 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;
* range 192.168.32.X 192.168.32.X;* }
On Wed, Aug 27, 2014 at 1: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
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.isc.org/pipermail/dhcp-users/attachments/20140827/793cb5f9/attachment.html>
More information about the dhcp-users
mailing list