You are not logged in.
Situation: Setting up a DHCP/DNS server with dnsmasq
Hardware: old pentium 4 + switch
Software: dnsmasq + dhcpcd or dhclient
Server and all clients are running Arch.
I've got it running a few times but it won't run anymore. Don't know what I've changed.
Now I'm sending from a client pc a DHCPDISCOVER with either dhcpcd or dhclient.
Dnsmasq sends a DHCPOFFER but dhcpcd or dhclient just timed out.
Server:
Oct 1 15:43:51 Rockhopper dnsmasq[1081]: started, version 2.50 cachesize 150
Oct 1 15:43:51 Rockhopper dnsmasq[1081]: compile time options: IPv6 GNU-getopt no-DBus no-I18N DHCP TFTP
Oct 1 15:43:51 Rockhopper dnsmasq-dhcp[1081]: DHCP, IP range 192.168.5.50 -- 192.168.5.150, lease time 12h
Oct 1 15:43:51 Rockhopper dnsmasq[1081]: reading /etc/resolv.conf
Oct 1 15:43:51 Rockhopper dnsmasq[1081]: using nameserver 195.130.131.132#53
Oct 1 15:43:51 Rockhopper dnsmasq[1081]: using nameserver 195.130.130.132#53
Oct 1 15:43:51 Rockhopper dnsmasq[1081]: using nameserver 208.67.220.220#53
Oct 1 15:43:51 Rockhopper dnsmasq[1081]: using nameserver 208.67.222.222#53
Oct 1 15:43:51 Rockhopper dnsmasq[1081]: ignoring nameserver 127.0.0.1 - local interface
Oct 1 15:43:51 Rockhopper dnsmasq[1081]: read /etc/hosts - 3 addresses
Oct 1 15:44:18 Rockhopper dnsmasq-dhcp[1081]: DHCPDISCOVER(eth2) 192.168.1.111 00:1d:xx:xx:xx:xx
Oct 1 15:44:18 Rockhopper dnsmasq-dhcp[1081]: DHCPOFFER(eth2) 192.168.5.143 00:1d:xx:xx:xx:xx
Oct 1 15:44:20 Rockhopper dnsmasq-dhcp[1081]: DHCPDISCOVER(eth2) 192.168.1.111 00:1d:xx:xx:xx:xx
Oct 1 15:44:20 Rockhopper dnsmasq-dhcp[1081]: DHCPOFFER(eth2) 192.168.5.143 00:1d:xx:xx:xx:xx
Oct 1 15:44:28 Rockhopper dnsmasq-dhcp[1081]: DHCPDISCOVER(eth2) 192.168.1.111 00:1d:xx:xx:xx:xx
Oct 1 15:44:28 Rockhopper dnsmasq-dhcp[1081]: DHCPOFFER(eth2) 192.168.5.143 00:1d:xx:xx:xx:xx
Client:
dhcpcd: version 5.1.0 starting
dhcpcd: eth0: rebinding lease of 192.168.1.111
dhcpcd: eth0: broadcasting for a lease
dhcpcd: eth0: timed out
Server: /etc/dnsmasq.conf
domain-needed
interface=eth1
interface=eth2
listen-address=127.0.0.1
expand-hosts
domain=kot4.loc
dhcp-range=192.168.5.50,192.168.5.150,12h
Server: /etc/resolv.conf
# Generated by dhcpcd from eth0
nameserver 127.0.0.1
nameserver 208.67.222.222
nameserver 208.67.220.220
nameserver 195.130.130.132
nameserver 195.130.131.132
# /etc/resolv.conf.tail can replace this line
Server: /etc/hosts
#<ip-address> <hostname.domain.org> <hostname>
127.0.0.1 Rockhopper.kot4.loc localhost Rockhopper
192.168.5.150 Rockhopper.kot4.loc localhost Rockhopper
192.168.5.151 Rockhopper.kot4.loc localhost Rockhopper
Offline
I think your problem is that you are overriding your listening interfaces by specifying a localhost. Specifying a localhost be nice if you actually did web browsing... from the server itself, but I'm pretty sure that it will override your interfaces:
interface=eth1
interface=eth2
listen-address=127.0.0.1
Setting Up a Scripting Environment | Proud donor to wikipedia - link
Offline