fixed-address not working

Barry Stear bstear at gmail.com
Wed Aug 27 21:21:42 UTC 2014


Sorry I didn't see what you stated where it worked if you uncommented, I
also overlooked that you were trying to assign a fixed address. As Graham
said the IP your trying to assign is outside the subnets you defined so
that is most likely your problem is that the fixed address should be
172.168.0.60

On Wed, Aug 27, 2014 at 2:17 PM, Barry Stear <bstear at gmail.com> wrote:

> 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/748f9666/attachment-0001.html>


More information about the dhcp-users mailing list