Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
dnsmasq dhcp handing its self its own address
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
666threesixes666
Veteran
Veteran


Joined: 31 May 2011
Posts: 1248
Location: 42.68n 85.41w

PostPosted: Wed Mar 06, 2013 7:37 pm    Post subject: dnsmasq dhcp handing its self its own address Reply with quote

im having problems getting dnsmasq to deal the dhcp server its own ip address. it has 2 eth interfaces, eth0 is the master control, with a known static ip address. eth1 is guest parking and should be handing its self its own ip address. its also not handing specified ip addresses to dhcp clients from the config. all settings are toward the top of the config paste.


http://pastie.org/6406223

even moving the dhcp range to 10.0.1.1 , and commenting the other statement it wont pull 10.0.1.2 and instead pulls a 169.x.x.x address. i do have dhcpcd as a client on eth0 that might be interfering
Back to top
View user's profile Send private message
Logicien
Veteran
Veteran


Joined: 16 Sep 2005
Posts: 1555
Location: Montréal

PostPosted: Wed Mar 06, 2013 8:56 pm    Post subject: Reply with quote

If you want to use a specific IP address for a MAC address, you need to use the static option for dhcp-range with only the subnet like 10.0.0.0. Than Dnsmasq know it have to give the IP address set in dhcp-host for the MAC address and not use any range.

You can have a look at my /etc/dnsmasq.conf prototype. In my wireless lan, each host receive the exact IP address I set for it MAC address in dnsmasq.conf.

Code:
bogus-priv
filterwin2k
resolv-file=/etc/resolv.conf
no-resolv
no-poll
interface=wlan0
expand-hosts
domain=host.name
dhcp-range=192.168.xxx.xxx,static
dhcp-option=6,xxx.xxx.xxx.xxx,xxx.xxx.xxx.xxx
dhcp-leasefile=/var/lib/misc/dnsmasq.leases
no-negcache

dhcp-host=host.name,XX:XX:XX:XX:XX:XX,192.168.xxx.xxx,infinite

_________________
Paul
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum