phpDHCPAdmin demo
Sten Carlsen
sten at s-carlsen.dk
Sun Oct 12 17:18:46 UTC 2008
Almost, broadcast address is always "all-ones" in the host part of the
IP. Should be:
option broadcast-address 192.168.173.255;
^^^
Hopefully the arrowheads are still under the 255 when this is received ;-)
Jason Gerfen wrote:
> On Sun, Oct 12, 2008 at 8:47 AM, Glenn Satchell
> <Glenn.Satchell at uniq.com.au> wrote:
>
>>> Date: Sun, 12 Oct 2008 09:35:50 +0100
>>> To: dhcp-users at isc.org
>>> From: Simon Hobson <dhcp1 at thehobsons.co.uk>
>>> Subject: Re: phpDHCPAdmin demo
>>>
>>> Glenn Satchell wrote:
>>>
>>>> option broadcast-address can be derived from the subnet declaration?
>>>> It is inherited from that scope - and if the two are different, well
>>>> your configuration is not correct.
>>>>
>>>> subnet a.b.c.d netmask e.f.g.h {
>>>> option broadcast-address e.f.g.h;
>>>> }
>>>>
>>> Must have been a long day for you Glenn :-)
>>>
>>> Yes broadcast address can be derived, but it's more like :
>>>
>>> subnet a.b.c.d netmask e.f.g.h {
>>> option broadcast-address i.j.k.l;
>>> }
>>>
>>> where i.j.k.l = a.b.c.d OR NOT(e.f.g.h)
>>>
>>> Of course, the option subnet-mask should be the same as in the subnet
>>> declaration.
>>>
>> It was a long day, but you knew exactly what I meant :)
>>
>>
>
> Like so?
>
> subnet 192.168.173.0 netmask 255.255.255.0 {
> option domain-name-servers 192.168.173.10, 192.168.173.11;
> option routers 192.168.173.1;
> option ip-forwarding on;
> option broadcast-address 192.168.173.0;
> option ntp-servers 192.168.173.2;
> option netbios-name-servers 192.168.173.3;
> default-lease-time 1800;
> min-lease-time 30;
> max-lease-time 3600;
> }
>
> The 'subnet' declaration matches the 'option broadcast-address'
> declaration here and when I tested the new .conf file it worked?
>
> Should I include some error checking to ensure the subnet declaration
> and the broadcast-address (if present) match?
>
> I hope I understood you correctly.
>
>
>> regards,
>> -glenn
>>
>>
>>
>>
>
>
>
>
--
Best regards
Sten Carlsen
No improvements come from shouting:
"MALE BOVINE MANURE!!!"
More information about the dhcp-users
mailing list