[Chilli] [SOLVED !!!]Configuring CoovaChilli For DHCP Pool Range Classless & Class-full Ranges VLMS How To ??SOLVED !!!]

Russell Mike radius.sir at gmail.com
Tue Apr 2 19:37:40 UTC 2013


Configuring CoovaChilli (I used v1.3.0) For DHCP Pool Range Classless &
Class-full Ranges VLMS How To ??

Special Thanks To:  *Mr.* *Steffen Dettmer*

Scenario: I have a network of 192.168.8.0 255.255.255.0 (24). i am using
some static ip address for my server from the range 192.168.8.1 -
192.168.8.34. I do not want CoovaChilli to issue these ip address. Saying
other way, i want to specify a dhcp pool range, therefore CoovaChilli can
use a ip from the pool to issue the ip address for incoming dhcp requests.

How do i do that?

nano "/usr/local/etc/chilli.conf" (These are two different ways of writing
the directive, use one only)

net=192.168.8.0/255.255.255.0

OR

net=192.168.8.0/24

nano "/usr/local/etc/chilli/local.conf"

dhcpstart=35

dhcpend=254

save the files and it is done. Coova will now issue the ip address from
this range (192.168.8.35 - 192.168.8.254). make sure your entires are not
in conflict with previous configuration otherwise it would just work.
configured so many times.

BUT when it comes to variable length subnet mask (VLMS) - (sub-netting
braking ip address, hosts & networks in small/big partitions as needed)  i
found it bit tricky to configure and understand DHCP pool range directive
when using VLMS, to help new comers and those may attempt in future, i wish
to share my opinion that may helpful for them to understand easily.


My Network: 10.130.8.160

My Subnet Mask: 255.255.255.224

(- IP sub netting example copied from online subnet calculator)

Network:   10.130.8.160/27       00001010.10000010.00001000.101 00000 (*Class
A*)

Broadcast: 10.130.8.191          00001010.10000010.00001000.101 11111

HostMin:   10.130.8.161          00001010.10000010.00001000.101 00001

HostMax:   10.130.8.190          00001010.10000010.00001000.101 11110

Hosts/Net: 30

Assuming that 10.130.8.161 is CoovaChilli Box. Coova dhcp must issue from
10.130.8.162 - 10.130.8.190.  What would you expect to write in to
"local.conf" & "chilli.conf" when reading above example.

dhcpstart=162

dhcpend=190

IT IS WRONG !!!! WOULD NOT WORK. HERE IT IS BIT TICKY

*CORRECT VERSION:*

nano "/usr/local/etc/chilli.conf" (These are two different ways of writing
the directive, use one only)

net=10.130.8.160/255.255.255.224

OR

net=192.168.8.0/27

nano "/usr/local/etc/chilli/local.conf"

dhcpstart=2

dhcpend=29

The correct dhcpstart should be 2 and dhcpend should be 29

I hope this would helps someone..

*Thanks / Regards *

*RM --*
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.coova.org/pipermail/chilli/attachments/20130402/17358268/attachment-0001.html>


More information about the Chilli mailing list