2016-03-16 - Re: [GRASE-Hotspot] Re: Assign IP Address to the client based on MAC Address

Header Data

From: Shakthi S S <sa***s@gmail.com>
Message Hash: 19b18a299a0fc99055eb974f5f1b8e187f50bc335425d20179f5c75d961f7aab
Message ID: <30120182-744e-4b98-9002-ca72282bb34d@grasehotspot.org>
Reply To: <CAHoMbhesr-naYitJTQL87pdCZ5cmELKE1Y1LcBNDdgP_5O+1aA@mail.gmail.com>
UTC Datetime: 2016-03-16 00:58:28 UTC
Raw Date: Wed, 16 Mar 2016 00:58:28 -0700

Raw message

mysql -u root -p
use radius;
show tables;
select * from radreply;
INSERT INTO radreply (id,UserName,Attribute,op,Value)
VALUES ('15','CoovaChilli','ChilliSpot-Config','+=','/etc/ethers');
quit

As root i Created the file
vi /etc/ethers
F0:F6:1C:44:E2:0B 192.165.0.203

Then 
/etc/init.d/chilli restart



*Starting chilli: coova-chilli: unrecognized option 
'--/etc/ethers'coova-chilli[1803]: options.c: 181: could not generate 
configuration (/var/run/chilli.1803.cfg.bin), sleeping one 
secondcoova-chilli: unrecognized option '--/etc/ethers'*


On Wednesday, March 9, 2016 at 3:03:01 PM UTC+5:30, Henry Terkura Swende 
wrote:
>
> Add this entry to your 'radreply' table
> UserName:CoovaChilli
> Attribute: ChilliSpot-Config
> op:+=
> Value: ethers=/etc/ethers
> Then create a file in /etc directory called ethers
> I.e
> Run this command on your Linux terminal
> sudo touch /etc/ethers
> Then populate the /etc/ethers file with the IP-MAC mapping in this format
> AA:BB:CC:DD:EE:FF 123.123.123.123
> On each line with its own entry
> In my case I tried adding comments to the file but it ended up messing the 
> file so I had to remove the comments in the file.
> You will have to restart chilli for effects to take place 
> On Mar 8, 2016 12:02 PM, "Shakthi S S" <sa***.@gmail.com 
> <javascript:>> wrote:
>
>> Can you Please Provide the Step by step to configure this.
>>
>> On Monday, March 7, 2016 at 4:43:21 PM UTC+5:30, Henry Terkura Swende 
>> wrote:
>>>
>>> In my case I created a /etc/ethers file, then added the option 
>>> ethers=/etc/ethers option in the radreply table. In my /etc/ethers file, I 
>>> entered the mac-ip assignment.
>>> Can I Install the Other DHCP Service on the same computer Where Grase is 
>>> HOTspot is Running. and Relay the DHCP Request to that New Installed 
>>> Service. Stop the Coova Chilli DHCP Service. If Possible please guide me.
>>>
>>> Thanks in Advance
>>>
>>> On Friday, March 4, 2016 at 6:46:33 PM UTC+5:30, Shakthi S S wrote:
>>>>
>>>> Dear Friends
>>>>
>>>>           My Setup is,  LAN IP Address : 192.165.0.0/24,  What i want 
>>>> is.
>>>>
>>>> 1. Assign The IP Address 192.165.0.1 Which Have the Mac Address 
>>>> XX-XX-XX-XX-XX(My Ipad)
>>>> 2. Assign The IP Address 192.165.0.2 Which Have the Mac Address 
>>>> XX-XX-XX-XX-XX(My Iphone)
>>>> 3. Assign The IP Address 192.165.0.3 Which Have the Mac Address 
>>>> XX-XX-XX-XX-XX(My Laptop)
>>>> 4. Any Other Laptop or Ipad DHCP Request need to block from dhcp server 
>>>> and no need to provide the ip address.
>>>>
>>>>
>>>> Please Help Me to Complete this. 
>>>>
>>>> Thanks in Advance
>>>>
>>>>
>>>>
>>>> -- 
>>> This mailing list is for the Grase Hotspot Project 
>>> http://grasehotspot.org
>>> --- 
>>> You received this message because you are subscribed to the Google 
>>> Groups "Grase Hotspot" group.
>>> To unsubscribe from this group and stop receiving emails from it, send 
>>> an email to gr***.@grasehotspot.org.
>>> To post to this group, send email to gr***.@grasehotspot.org.
>>> Visit this group at 
>>> https://groups.google.com/a/grasehotspot.org/group/grase-hotspot/.
>>> To view this discussion on the web visit 
>>> https://groups.google.com/a/grasehotspot.org/d/msgid/grase-hotspot/b9d6b0ca-9e97-4463-a658-65034f93a213%40grasehotspot.org 
>>> <https://groups.google.com/a/grasehotspot.org/d/msgid/grase-hotspot/b9d6b0ca-9e97-4463-a658-65034f93a213%40grasehotspot.org?utm_medium=email&utm_source=footer>
>>> .
>>>
>> -- 
>> This mailing list is for the Grase Hotspot Project 
>> http://grasehotspot.org
>> --- 
>> You received this message because you are subscribed to the Google Groups 
>> "Grase Hotspot" group.
>> To unsubscribe from this group and stop receiving emails from it, send an 
>> email to gr***.@grasehotspot.org <javascript:>.
>> To post to this group, send email to gr***.@grasehotspot.org 
>> <javascript:>.
>> Visit this group at 
>> https://groups.google.com/a/grasehotspot.org/group/grase-hotspot/.
>> To view this discussion on the web visit 
>> https://groups.google.com/a/grasehotspot.org/d/msgid/grase-hotspot/7d3d5e32-7309-4dfd-b310-844fe12542fe%40grasehotspot.org 
>> <https://groups.google.com/a/grasehotspot.org/d/msgid/grase-hotspot/7d3d5e32-7309-4dfd-b310-844fe12542fe%40grasehotspot.org?utm_medium=email&utm_source=footer>
>> .
>>
>

Thread