Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
dhcpd suddenly stopped working
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
sweatje
n00b
n00b


Joined: 30 Mar 2004
Posts: 37
Location: Bettendorf, IA, USA

PostPosted: Wed Dec 07, 2005 2:30 pm    Post subject: dhcpd suddenly stopped working Reply with quote

I have a gentoo box I have been running as a firewall for several months. Last night, the dhcpd suddenly stopped providing addresses. This was very confusing because it has been working for a long time and there were no other changes taking place to configurations or software on this system.

I am using the latest dpcp

* net-misc/dhcp
Latest version available: 3.0.1-r1
Latest version installed: 3.0.1-r1

If have two NICs in the server, and I am binding dhcp to the internal network - eth1:

# ifconfig
eth0 Link encap:Ethernet HWaddr 00:C0:4F:70:40:D7
inet addr:192.168.15.2 Bcast:192.168.15.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:42488 errors:0 dropped:0 overruns:0 frame:0
TX packets:38755 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:26240089 (25.0 Mb) TX bytes:17762260 (16.9 Mb)
Interrupt:11 Base address:0xd880

eth1 Link encap:Ethernet HWaddr 00:50:BA:C4:33:35
inet addr:192.168.10.1 Bcast:192.168.10.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:55923 errors:0 dropped:0 overruns:0 frame:0
TX packets:54941 errors:0 dropped:0 overruns:0 carrier:0
collisions:2947 txqueuelen:1000
RX bytes:19799165 (18.8 Mb) TX bytes:27370143 (26.1 Mb)
Interrupt:10 Base address:0xe400

lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:9408 errors:0 dropped:0 overruns:0 frame:0
TX packets:9408 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:393528 (384.3 Kb) TX bytes:393528 (384.3 Kb)

# cat /etc/conf.d/dhcp
IFACE="eth1"
DHCPD_OPTS="-q"
CHROOT="/chroot/dhcp"
export LD_PRELOAD="/usr/lib/libresolv.so /usr/lib/libnss_dns.so"

My configuration is pretty simple as well:

# cat /chroot/dhcp/etc/dhcp/dhcpd.conf | grep -v '^#'

option domain-name "casey-sweat.us";
option domain-name-servers 192.168.10.1;

default-lease-time 600;
max-lease-time 7200;

authoritative;

log-facility local7;

ddns-update-style ad-hoc;


subnet 192.168.10.0 netmask 255.255.255.0 {
range 192.168.10.110 192.168.10.150;
option routers 192.168.10.1;
}


subnet 192.168.15.0 netmask 255.255.255.0 {
}


The leases file looks like this:

# cat /chroot/dhcp/var/lib/dhcp/dhcpd.leases
# All times in this file are in UTC (GMT), not your local timezone. This is
# not a bug, so please don't ask about it. There is no portable way to
# store leases in the local timezone, so please don't request this as a
# feature. If this is inconvenient or confusing to you, we sincerely
# apologize. Seriously, though - don't ask.
# The format of this file is documented in the dhcpd.leases(5) manual page.
# This lease file was written by isc-dhcp-V3.0.1

lease 192.168.10.147 {
starts 1 2005/12/05 01:00:40;
ends 1 2005/12/05 01:10:40;
tstp 1 2005/12/05 01:10:40;
binding state free;
hardware ethernet 00:10:83:02:96:2f;
uid "\001\000\020\203\002\226/";
}
lease 192.168.10.146 {
starts 3 2005/12/07 04:24:53;
ends 3 2005/12/07 04:34:53;
tstp 3 2005/12/07 04:34:53;
binding state free;
hardware ethernet 00:0d:60:af:0f:24;
uid "\001\000\015`\257\017$";
}
lease 192.168.10.150 {
starts 3 2005/12/07 13:43:42;
ends 3 2005/12/07 13:45:42;
tstp 3 2005/12/07 13:45:42;
binding state free;
hardware ethernet 00:40:05:de:2a:f6;
}
lease 192.168.10.148 {
starts 3 2005/12/07 13:44:42;
ends 3 2005/12/07 13:54:42;
tstp 3 2005/12/07 13:54:42;
binding state free;
hardware ethernet 00:09:5b:3e:ae:e5;
uid "\001\000\011[>\256\345";
}
lease 192.168.10.149 {
starts 3 2005/12/07 14:39:02;
ends 3 2005/12/07 14:49:02;
tstp 3 2005/12/07 14:49:02;
binding state free;
hardware ethernet 00:02:8a:ea:24:ce;
uid "\001\000\002\212\352$\316";
}
lease 192.168.10.149 {
starts 3 2005/12/07 15:07:53;
ends 3 2005/12/07 15:17:53;
binding state active;
next binding state free;
hardware ethernet 00:02:8a:ea:24:ce;
uid "\001\000\002\212\352$\316";
client-hostname "DPW-60AF0F24";
}
lease 192.168.10.149 {
starts 3 2005/12/07 15:07:53;
ends 3 2005/12/07 15:17:53;
tstp 3 2005/12/07 15:17:53;
binding state free;
hardware ethernet 00:02:8a:ea:24:ce;
uid "\001\000\002\212\352$\316";
}
lease 192.168.10.149 {
starts 3 2005/12/07 15:24:16;
ends 3 2005/12/07 15:34:16;
binding state active;
next binding state free;
hardware ethernet 00:02:8a:ea:24:ce;
uid "\001\000\002\212\352$\316";
client-hostname "DPW-60AF0F24";
}
lease 192.168.10.149 {
starts 3 2005/12/07 15:24:17;
ends 3 2005/12/07 15:34:17;
binding state active;
next binding state free;
hardware ethernet 00:02:8a:ea:24:ce;
uid "\001\000\002\212\352$\316";
client-hostname "DPW-60AF0F24";
}
lease 192.168.10.150 {
starts 3 2005/12/07 15:24:17;
ends 3 2005/12/07 17:24:17;
binding state active;
next binding state free;
hardware ethernet 00:40:05:de:2a:f6;
}
lease 192.168.10.148 {
starts 3 2005/12/07 15:29:46;
ends 3 2005/12/07 15:39:46;
binding state active;
next binding state free;
hardware ethernet 00:09:5b:3e:ae:e5;
uid "\001\000\011[>\256\345";
}

All of my firewall routing rules seem to continue to work fine. If I setup a computer with a static IP address, everything works fine on the network. I have not been able to locate any error messages in any system log files. Does anyone have any suggestions what I should look into next?

Thanks!
_________________
Jason - jsweat_php AT yahoo DOT com
Back to top
View user's profile Send private message
UberLord
Retired Dev
Retired Dev


Joined: 18 Sep 2003
Posts: 6835
Location: Blighty

PostPosted: Wed Dec 07, 2005 3:04 pm    Post subject: Reply with quote

Check if dhcp is really listening

Code:
netstat -l | grep ":bootps[[:space:]]"

_________________
Use dhcpcd for all your automated network configuration needs
Use dhcpcd-ui (GTK+/Qt) as your System Tray Network tool
Back to top
View user's profile Send private message
sweatje
n00b
n00b


Joined: 30 Mar 2004
Posts: 37
Location: Bettendorf, IA, USA

PostPosted: Wed Dec 07, 2005 3:48 pm    Post subject: Reply with quote

UberLord wrote:
Check if dhcp is really listening

Code:
netstat -l | grep ":bootps[[:space:]]"


THis returned:

Code:
 $ ssh root@wally 'netstat -l | grep ":bootps[[:space:]]"'
Password:
udp        0      0 *:bootps                *:*


I have more interesting news, It appears my initial diagnostics were completly off base. My wife's notebook computer, which is also running Gentoo, is able to get a DHCP address just fine, so that leaves the Windows XP notebook from work that I was testing with as the problem. As it happens, corporate just pushed down a "security patch" last night, so I have raised a support incident on it. Has anyone heard of problems with any of Microsoft's patches breaking DHCP against a Linux DHCP server?
_________________
Jason - jsweat_php AT yahoo DOT com
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