[Dnsmasq-discuss] dhcp configuration troubles on a linux box

jerome.wacongne at externe.bnpparibas.com jerome.wacongne at externe.bnpparibas.com
Thu Apr 20 11:39:36 BST 2006


I all,

I am running dnsmasq on Linksys WRT54G v2 with openWRT firmware and I am
having troubles making dhcp work on local lan and wifi.

what is working now :
- router gets IP from my ISP
- internet adresses are resolved from the router itself and lan PCs
configured with fixed IP

what is not working :
- PCs from lan and wifi can't get dhcp leases
- internet adresses are not resolved from wifi PCs configured with fixed IP

ifconfig confirms this :
wan network : 81.57.181.0/24
lan metwork : 192.168.1.0/24, IP:192.168.1.1
wifi network : 192.168.2.0/24, IP:192.168.2.1

here is the content of dnsmasq.conf:
domain-needed

local=/lan/
domain=lan
expand-hosts

except-interface=vlan1

dhcp-lease-max=10
dhcp-leasefile=/tmp/dnsmasq.leases
dhcp-authoritative

bogus-priv
bogus-nxdomain=64.94.110.11

dhcp-range=lan,192.168.1.50,192.168.1.60,48h
dhcp-range=wifi,192.168.2.50,192.168.2.60,2h

# Get static leases from /etc/ethers
read-ethers

# See RFC 2132 for details of available options.
#  1 : subnet mask
#  3 : default router
#  6 : DNS server
# 27 : "all subnets are local" flag
# 28 : broadcast address
# 40 : NIS domain
# 42 : NTP time server

dhcp-option=lan,1,255.255.255.0
dhcp-option=lan,3,192.168.1.1
dhcp-option=lan,6,192.168.1.1
dhcp-option=lan,28,192.168.1.255
dhcp-option=lan,42,192.168.1.1

dhcp-option=wifi,1,255.255.255.0
dhcp-option=wifi,3,192.168.2.1
dhcp-option=wifi,6,192.168.2.1
dhcp-option=wifi,28,192.168.2.255
dhcp-option=wifi,42,192.168.2.1

I would appraciate any help to have dhcp work both on my lan and wifi
networks.

Regards,
Ch4mp


This message and any attachments (the "message") is
intended solely for the addressees and is confidential. 
If you receive this message in error, please delete it and 
immediately notify the sender. Any use not in accord with 
its purpose, any dissemination or disclosure, either whole 
or partial, is prohibited except formal approval. The internet
can not guarantee the integrity of this message. 
BNP PARIBAS (and its subsidiaries) shall (will) not 
therefore be liable for the message if modified. 

                ---------------------------------------------

Ce message et toutes les pieces jointes (ci-apres le 
"message") sont etablis a l'intention exclusive de ses 
destinataires et sont confidentiels. Si vous recevez ce 
message par erreur, merci de le detruire et d'en avertir 
immediatement l'expediteur. Toute utilisation de ce 
message non conforme a sa destination, toute diffusion 
ou toute publication, totale ou partielle, est interdite, sauf 
autorisation expresse. L'internet ne permettant pas 
d'assurer l'integrite de ce message, BNP PARIBAS (et ses
filiales) decline(nt) toute responsabilite au titre de ce 
message, dans l'hypothese ou il aurait ete modifie.




More information about the Dnsmasq-discuss mailing list