LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
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 05-28-2003, 08:03 AM   #1
safescott
LQ Newbie
 
Registered: May 2003
Posts: 4

Rep: Reputation: 0
TCPIP not functioning properly


I bought a Microtel whitebox from Walmart.com (I guess my first mistake) and installed Mandrake Linux 9.1 over the Lindows that was on it. After using the box successfully for a couple of weeks I had to work on a laptop so I took out the network cable without shutting down first and plugged into my laptop. I later found out that my tcpip was dysfunctional. I still had link lights but couldn't ping loopback or given IP address. I reinstalled and that fixed the issue. However, yesterday I had an ungraceful shutdown and now I can't communicate again! I used linuxconf to verify that the settings were still in place and a network stop (start) to try to jumpstart the connectivity but without success.

I'm looking for a solution where I don't have to reinstall the OS each time this happens. Thanx.

Scott.
 
Old 05-28-2003, 09:02 AM   #2
Gantrep
Member
 
Registered: Feb 2003
Distribution: Slackware
Posts: 78

Rep: Reputation: 15
Whoah dude.

Ok, really what you need is something like "network troubleshooting howto." Networking issues should never require a reinstall.

Try a couple things next time there is a problem and let us know some details.

1. What's the output of /sbin/ifconfig eth0
2. What's the output of /sbin/route
3. What can you ping and what can't you ping? Start with 127.0.0.1. This will tell you if the card is even functioning. Then try your internal IP, try your router's ip, if it has one, try other devices ip's on the network, try pinging external addresses both by IP and by name.

Most connectivity and DNS issues can be diagnosed with these methods, solving is another matter.
 
Old 05-28-2003, 11:57 AM   #3
Robert0380
LQ Guru
 
Registered: Apr 2002
Location: Atlanta
Distribution: Gentoo
Posts: 1,280

Rep: Reputation: 47
also, unplugging the network cable shouldn't cause any problems. It's not like unplugging a ps/2 port. It won't harm anything. Heck, even plugging/unplugging ps/2, serial etc ports can be ok for the most part but not recommended. Do what Gantrep said, post the results here.
 
Old 05-28-2003, 11:27 PM   #4
Gantrep
Member
 
Registered: Feb 2003
Distribution: Slackware
Posts: 78

Rep: Reputation: 15
Well actually, there could be an unlikely scenerio where the address expires about when he unplugs it and then is reassigned via dhcp to the laptop, he loses settings, and then maybe for some reason has difficult getting them back. But yes typically, loss of a link temporarily would not cause a prob. The protocol is robust and deals well with that kind of stuff. Hell, they call it ethernet for a reason. It's precurser was Alohanet, and relied on radio transmitters for data transfer.

You said you could'nt ping loopback. That could be a funky /etc/hosts prob. I was helping this guy with some network problems once and I started looking around and he had changed /etc/hosts so 127.0.0.1 did not resolve to loopback for some unknown reason. If you can't ping 127.0.0.1, I would say that is almost definately a hardware and driver problem, not a networking problem. Make sure the proper module is loaded.
 
Old 05-29-2003, 07:46 AM   #5
safescott
LQ Newbie
 
Registered: May 2003
Posts: 4

Original Poster
Rep: Reputation: 0
Being a newbe to linux, it does make logical sense that somehow the driver was corrupted or a config file changed. The first time this happened I disabled the onboard nic, and installed an Intel Pro 100b - eepro driver I believe. Now its happened again with the Intel. Is it easy to uninstall and reinstall the driver without an OS reinstall?
 
Old 05-29-2003, 10:24 AM   #6
Gantrep
Member
 
Registered: Feb 2003
Distribution: Slackware
Posts: 78

Rep: Reputation: 15
If that is the correct module for your card(google around), you can try to load it by hand with

modprobe eepro

the command lsmod lists currently loaded modules. Uninstalling modules, I am not so familiar with. The command is rmmod, but if the module is loaded and working, i think it might tell you that the module is in use or busy and not do it. Someone else probably knows more about unloading modules than I.

In other words, if when you can't ping localhost, check if the appropriate module is loaded with lsmod, and if it isn't, try loading it by hand and let us know if that fixes it.
 
Old 05-30-2003, 03:27 PM   #7
safescott
LQ Newbie
 
Registered: May 2003
Posts: 4

Original Poster
Rep: Reputation: 0
OK. I realized that I could not ping 127.0.0.1 nor 192.168.4.5 (itself) but could ping outside the subnet 192.168.4.0 such as 192.168.5.1 (another site). This seems to jive with what I received from the /sbin/route command result:

Destination Gateway GenMask flags IFace
192.168.4.0 * 255.255.255.0 U eth0
127.0.0.0 * 255.0.0.0 U lo
default 192.168.4.1 0.0.0.0 UG eth0

Output from /sbin/ifconfig eth0 is:
eth0 link encap: ethernet HW addr: 00:A0:C9:08:1E:7F
inet addr: 192.168.4.5 bcast: 192.168.4.255 mask:255.255.255.0 UP broadcast running multicast MTU:1500
metric:1
RX packets: 49 errors: 0...
TX packets: 1412 errors: 0 overruns: 1412
Interrupt 11 baseaddr 0xD000

Anyhow, my colleague on the 192.168.3.0 subnet was able to webmin into the box but we're still experiencing issues with sendmail and ssh which maybe because of this comm issue. Is the lack of an explicit gateway for my subnet and loopback the issue?
 
Old 06-01-2003, 04:01 AM   #8
Gantrep
Member
 
Registered: Feb 2003
Distribution: Slackware
Posts: 78

Rep: Reputation: 15
Wow this is odd. I don't know why you can ping others but can't ping localhost.

Yes, 127.0.0.1 not being accessible can cause some major issues. In fact, the guy I helped who did not have localhost mapped to 127.0.0.1 was also having problems with ssh. Some programs kind of expect to be able to connect to themselves in that manner.
 
Old 06-02-2003, 01:13 AM   #9
camelrider
Member
 
Registered: Apr 2003
Location: Juneau, Alaska
Posts: 251

Rep: Reputation: 32
since your ifconfig dowesn't show the interface up have you tried "ifconfig eth0 up"?
 
  


Reply



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
File and folder permissions not functioning properly. MahsanS Linux - General 1 09-28-2005 12:37 PM
File and folder permissions not functioning properly. MahsanS Linux - Security 1 09-28-2005 12:36 PM
File and folder permissions not functioning properly. MahsanS Linux - Networking 1 09-28-2005 12:36 PM
PCMCIA NIC not functioning properly in Fedora analogkid Linux - Laptop and Netbook 2 01-17-2005 11:01 AM
C++ problem , string.h not functioning properly cyberswami Programming 4 02-18-2003 11:20 PM

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

All times are GMT -5. The time now is 02:07 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