[Chilli] CoovaChilli dhcp start" & "dhcp end

Xabier Oneca -- xOneca xoneca at gmail.com
Wed Apr 17 08:03:02 UTC 2013


Oh, yes, sorry! :P

Just forgot to add the list address...

--
Xabier Oneca_,,_
El 17/04/2013 09:58, "Steffen Dettmer" <steffen.dettmer at nomadrail.com>
escribió:

> Hi,
>
> wouldn't you like to share this on the Coova Chilli mailing list?
>
> Regards,
> Steffen
>
> > -----Original Message-----
> > From: Xabier Oneca -- xOneca [mailto:xoneca at gmail.com]
> > Sent: Tuesday, April 16, 2013 8:01 PM
> > To: Steffen Dettmer
> > Subject: Re: [Chilli] CoovaChilli dhcp start" & "dhcp end
> >
> > I use this Python script to calculate both 'dhcpstart' and 'dhcpend'.
> > I have had to look in the chilli source so I could realize how chilli
> interprets these
> > numbers... (I don't know why doesn't use "normal"
> > IPs...)
> >
> > #========
> > def ip2num(ip, mask):
> >     "Adjust an IP to an equivalent numeric value used by CoovaChilli."
> >     ip_parts = map(int, ip.split("."))
> >     mask_parts = map(int, mask.split("."))
> >     num = 0
> >     for n, (ipp, maskp) in enumerate(reversed(zip(ip_parts,
> mask_parts))):
> >         num += (ipp & ~maskp) << (n * 8)
> >     return num
> > #========
> >
> > Feed your start_ip and netmask (in your case 41.139.8.34 and
> > 255.255.255.224) and it gives dhcpstart (2) Feed your end_ip and netmask
> > (41.139.8.61 and 255.255.255.224) and it gives dhcpend (29).
> >
> > Tested on all types of subnets.
> >
> > HTH
> >
> > --
> > xOneca_,,_
> >
> >
> > 2013/4/2 Steffen Dettmer <steffen.dettmer at nomadrail.com>:
> > >> > > net=41.139.8.32/255.255.255.224
> > >> > > dhcpstart=34
> > >> > > dhcpend=61
> > >> > >
> > >> > >    Invalid dhcpstart=34 (41.139.8.66) (outside of subnet)!
> > >> > >
> > >> > Seems dhcpstart is an offset to net (thus resulting in .66).
> > >> > Maybe you want dhcpstart=2 and dhcpend=29 or such?
> > >>
> > >> I misunderstood the directive,  it is correct as you advised.
> > >> From dhcpstart=2 to dhcpend=29, it worked like charm. very much
> > >> grateful for your assistance. i will write a post about it. it is so
> > >> confusing for anyone.
> > >
> > > Ahh, nice to hear that it is working now :)
> > >
> > > Regards
> > > Steffen
> > >
> > > _______________________________________________
> > > Chilli mailing list
> > > Chilli at coova.org
> > > http://lists.coova.org/cgi-bin/mailman/listinfo/chilli
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.coova.org/pipermail/chilli/attachments/20130417/64b7e1fd/attachment.html>


More information about the Chilli mailing list