Active Topics

 


Reply
Thread Tools
Maruzko's Avatar
Posts: 145 | Thanked: 44 times | Joined on Jun 2010 @ Sydney
#1
Hi All,
Just need to confirm if there is a way to run a DHCP server on the N900 to server IP's over Wi-Fi to other local devices ?

This package appears to have that feature but unsure if it will work or can be installed as is on an N900.

Dnsmasq 2.45-1+lenny1+maemo3+0m5
http://maemo.org/packages/package_in...y1+maemo3+0m5/

Anybody know ?
 
Posts: 42 | Thanked: 27 times | Joined on Jun 2010
#2
I already use the stock dnsmasq that comes with maemo.

Create your config file somewhere, my config file for the wifi interface is as simple as
Code:
dhcp-range=192.168.200.2,192.168.200.50,255.255.255.0,24h
dhcp-option=3,192.168.200.1
dhcp-option=6,192.168.200.1
dhcp-leasefile=/tmp/dnsmasq.wlan0.leases
I launch dnsmasq like this
Code:
$ dnsmasq -a 192.168.200.1 -d -i wlan0 -z \
  -C /path/to/dnsmasq.wlan0.conf -I lo -I usb0
The -I part is important.
 

The Following User Says Thank You to jormartr For This Useful Post:
Maruzko's Avatar
Posts: 145 | Thanked: 44 times | Joined on Jun 2010 @ Sydney
#3
Originally Posted by jormartr View Post
I already use the stock dnsmasq that comes with maemo.

Create your config file somewhere, my config file for the wifi interface is as simple as
Code:
dhcp-range=192.168.200.2,192.168.200.50,255.255.255.0,24h
dhcp-option=3,192.168.200.1
dhcp-option=6,192.168.200.1
dhcp-leasefile=/tmp/dnsmasq.wlan0.leases
I launch dnsmasq like this
Code:
$ dnsmasq -a 192.168.200.1 -d -i wlan0 -z \
  -C /path/to/dnsmasq.wlan0.conf -I lo -I usb0
The -I part is important.
Thats fantastic. I was hoping the N900 being Linux based, it would have something built in but couldn't find much from google, maybe because its too obvious.

Questions:
1. Why use the -d option ?
2. I assume i have to give the N900 a fixed IP ?

Thanks.
 
Reply


 
Forum Jump


All times are GMT. The time now is 11:37.