LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 10-23-2017, 10:47 AM   #1
mfoley
Senior Member
 
Registered: Oct 2008
Location: Columbus, Ohio USA
Distribution: Slackware
Posts: 2,555

Rep: Reputation: 177Reputation: 177
LAN connection to most, but not all host lost


I've been working all morning on a crazy problem and I'm out of ideas. I have a Slackware64 14.2 domain controller which does DNS, DHCP and mail serving. It has 2 NICs. eth0 is Internet facing. No problem there. eth1 is for the LAN. Sometime before this morning the domain controller lost the ability to communicate with all hosts on the LAN, except for one! Trying to ping or connect to any host from the domain controller gives "Destination Host Unreachable". Nor can any host connect with any other host on the LAN.

I'm suspecting a bad eth1 card, but it can connect with one of the hosts, and only one. Which makes me doubtful that it's the NIC.

I've taken down the firewall except for the forwarding to eth1. I've powered down and rebooted hosts and domain controller. I've cycled power on all switch. Nothing help.

Any ideas?
 
Old 10-23-2017, 12:03 PM   #2
Ser Olmy
Senior Member
 
Registered: Jan 2012
Distribution: Slackware
Posts: 3,334

Rep: Reputation: Disabled
What does arp -an show when this happens? And does tcpdump -i eth1 arp show ARP requests being sent and received when you ping hosts on the LAN?

If you see ARPs being sent but no replies, it could be a broken switch failing to flood broadcast frames.
 
Old 10-23-2017, 11:50 PM   #3
mfoley
Senior Member
 
Registered: Oct 2008
Location: Columbus, Ohio USA
Distribution: Slackware
Posts: 2,555

Original Poster
Rep: Reputation: 177Reputation: 177
Solved the mystery. After swapping network cards and replacing two of the switches (still nothing worked), I disabled all connections except between the domain controller and one host, and started going through all the related settings. I found that /etc/dhcpd.conf had a corrupted line and dhcpd stopped processing the config at that point. That explains why one of the hosts was able to connect, but not others: the connectable host's settings occurred before the corrupted line. When I fixed the dhcpd.conf, everything was back in action! If I had thought to look at dhcpd messages and config first, I'd have saved myself about 4 hours of pain and the office 2/3 of a day of lost productivity. But, that wasn't among my initial suspicions.

How did dhcpd.conf get corrupted? My guess is that I was examining this file remotely in an editor without specifying read-only mode and, when the connection dropped, bogus characters got written to the file. This has happened infrequently before with other programs and scripts, but I'm usually right there when it happens and, after a bit of cursing, can reconnect and edit the file to remove the noise. To further obfuscate things, this file corruption probably happened several days in the past and did not affect things until the DNS and DHCP servers restarted per normal logrotate operations on Sunday.

Last edited by mfoley; 10-23-2017 at 11:56 PM.
 
  


Reply

Tags
unreachable


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Lost connection with ALL workstations on LAN mfoley Slackware 2 05-01-2017 04:04 PM
Internet connection is lost when connected to LAN sho`sh Linux - Networking 4 05-23-2012 08:39 PM
ssh: connection to host port: 22: Connection timed out lost connection cucolin@ Linux - Server 4 11-22-2011 06:15 AM
wireless connection problems & now lost lan connection & network manager wont work Rainbowserpant Linux - Wireless Networking 2 09-02-2009 04:00 AM
loss of Internet connection to linux LAN host mfoley Linux - Networking 2 02-26-2009 04:30 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 07:40 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration