LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 11-14-2006, 09:26 AM   #1
alekstef
LQ Newbie
 
Registered: Nov 2006
Location: Bergen, Norway
Distribution: Slackware
Posts: 10

Rep: Reputation: 0
Weird network problem in Slack 10.2


Hey people!

I made a big mistake on one of my servers. I installed slackpkg and forgot to use 10.2 sources. I ran an upgrade-all and of course, almost everything stopped to work. Enough about that. I reinstalled Slackware two times because of the same problem:

The network just doesn't work. I'm sure all is rightly configured. This server is very critical here, it runs backup of important files, so I need to get it up as fast as possible. I'm posting some output and info below:

route -n
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use iface
192.168.1.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0
127.0.0.0 0.0.0.0 255.0.0.0 U 0 0 0 lo
0.0.0.0 192.168.1.1 0.0.0.0 U 1 0 0 eth0

resolv.conf:
search rebootlan.net
nameserver 192.168.1.10 217.13.4.21

ifconfig -a
eth0
Link encap: ethernet HWaddr: 00:10:b5:57:87:32
inet addr: 192.168.1.14 Bcast: 192.168.1.255 Mask: 255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU: 1500 Metric: 1
RX packets: 0 errors: 0 dropped: 0 overruns: 0 frame: 0
TX packets: 0 errors: 0 dropped: 0 overruns: 0 carrier: 0
collisions: 0 txqueuelen: 1000
RX bytes: 0 (0.0 b) TX bytes: 0 (0.0 b)
Interrupt: 12 base address: 0x9f00

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: 9 errors: 0 dropped: 0 overruns: 0 frame: 0
TX packets: 9 errors: 0 dropped: 0 overruns: 0 carrier: 0
collisions: 0 txqueuelen: 0
RX bytes: 1008 (1008.0 b) TX bytes: 1008 (1008.0 b)

found something in /var/log/messages that may help to solve the problem:

neptune kernel: NETDEV WATCHDOG: eth0: transmit timed out
neptune kernel: eth0: link up, 100mbps, full-duplex, lpa0x45E1

/var/log/syslog says some weird things about errors with insmod, something about shpchp.o.gz and pciehp.o.gz. It says: Hint: Insmod errors can be caused by incorrect module parameters, including invalid IO or IRQ parameters.

Can someone please help me with this? It doesn't work to reinstall.
 
Old 11-14-2006, 04:55 PM   #2
number22
Member
 
Registered: Sep 2006
Location: Earth
Distribution: Slackware 14.1 Slackware64-current multilib
Posts: 278
Blog Entries: 7

Rep: Reputation: Disabled
make sure you know what kind of netork card you have.
run /sbin/netconfig
then check out your /etc/modules.conf and /etc/rc.d/rc.modules file for correct network modules setup.
 
Old 11-15-2006, 02:11 PM   #3
alekstef
LQ Newbie
 
Registered: Nov 2006
Location: Bergen, Norway
Distribution: Slackware
Posts: 10

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by number22
make sure you know what kind of netork card you have.
run /sbin/netconfig
then check out your /etc/modules.conf and /etc/rc.d/rc.modules file for correct network modules setup.
yeah i've run netconfig. but why would slack detect my network card before i reinstalled and not now? I checked /etc/modules.conf. It was empty. /etc/rc.d/rc.modules contains everything it should contain, but no network card drivers is active. In the top of this file it is written that this file contains extra drivers. Slackware was able to detect my ethernet card last time i installed it with the exact same hardware, so why not now? I even reinstalled two times.
 
Old 11-15-2006, 03:09 PM   #4
Alien Bob
Slackware Contributor
 
Registered: Sep 2005
Location: Eindhoven, The Netherlands
Distribution: Slackware
Posts: 8,559

Rep: Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106
Your interface looks active and configured, your route table is OK. I would just re-write /etc/resolv.conf to
Code:
search rebootlan.net
nameserver 192.168.1.10
nameserver 217.13.4.21
because yours is syntactically incorrect.

The network interface statistics show that no packet whatsoever is being transmitted - what does the output of these diagnostics commands tell you?
Code:
ethtool eth0
mii-tool eth0
(the second one may yield "operation not supported" if your card is too new)

Quote:
shpchp.o.gz and pciehp.o.gz
don't worry about these, you can blacklist those two modules if the errors annoy you. You don't have the hardware for them which causes the errors in the messagelog.

Eric
 
Old 11-15-2006, 03:37 PM   #5
number22
Member
 
Registered: Sep 2006
Location: Earth
Distribution: Slackware 14.1 Slackware64-current multilib
Posts: 278
Blog Entries: 7

Rep: Reputation: Disabled
If it is not your network card; then check that you enable packet filters with firewall anywhere in your scripts
Ping is your friend;
ping localhost
ping google.com

then check your ifconfig; theose TX/RX number must be changed.
 
Old 11-16-2006, 10:06 AM   #6
alekstef
LQ Newbie
 
Registered: Nov 2006
Location: Bergen, Norway
Distribution: Slackware
Posts: 10

Original Poster
Rep: Reputation: 0
Hey!

ethtool eth0
settings for eth0
supported ports: [TP MII]
supported link modes: 10baseT/Half 10baseT/Full
100baseT/Half 100baseT/Full

supports auto-negotiation: yes

advertised link modes: 10baseT/Half 10baseT/Full
100baseT/Half 100baseT/Full
advertised auto-negotiation: yes
Speed: 100 MB/s
Duplex: Full
Port: MII
PHYAD: 32
Tranceiver: internal
Auto-negotiation: on
Supports wake-on: pumbg
Wake-on: d
Current message level: 0x00000007 (7)
Link detected: yes

mii-tool eth0
eth0: negotiated 100baseTx-FD flow control, link ok

ping localhost
All okey here.

ping google.com
ping: unknown host google.com
 
Old 11-16-2006, 12:05 PM   #7
dohpaz
Member
 
Registered: Feb 2006
Location: Edmonton
Distribution: Slackware 12.2, Ubuntu
Posts: 117

Rep: Reputation: 16
Try booting from a Knoppix cd or something similar to test the nic in question.
 
Old 11-16-2006, 12:44 PM   #8
Alien Bob
Slackware Contributor
 
Registered: Sep 2005
Location: Eindhoven, The Netherlands
Distribution: Slackware
Posts: 8,559

Rep: Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106
So, "link detected" means the network connections are OK. Not being able to resolve host names like google.com could mean a problem with your nameservers. Is "192.168.1.10" really running a working DNS server?
Try these commands:
Code:
ping 64.57.102.34
ping www.slackware.com
The IP address is that for www.slackware.com, so if the first command returns results and the second doesn't, then your DNS is broken.
To see what your configured DNS servers say, try querying those two DNS servers (192.168.1.1 and 217.13.4.21) directly:
Code:
host www.slackware.com 192.168.1.1
host www.slackware.com 217.13.4.21
What does this return?

Eric
 
Old 11-16-2006, 01:30 PM   #9
alekstef
LQ Newbie
 
Registered: Nov 2006
Location: Bergen, Norway
Distribution: Slackware
Posts: 10

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by Alien Bob
So, "link detected" means the network connections are OK. Not being able to resolve host names like google.com could mean a problem with your nameservers. Is "192.168.1.10" really running a working DNS server?
Try these commands:
Code:
ping 64.57.102.34
ping www.slackware.com
The IP address is that for www.slackware.com, so if the first command returns results and the second doesn't, then your DNS is broken.
To see what your configured DNS servers say, try querying those two DNS servers (192.168.1.1 and 217.13.4.21) directly:
Code:
host www.slackware.com 192.168.1.1
host www.slackware.com 217.13.4.21
What does this return?

Eric
ping 64.57.102.34: destination host unreachable
ping www.slackware.com: unknown host

My local DNS server, 192.168.1.10 is working, but it is offline now. 217.13.4.21 is my ISP's dns server, set up as secondary dns server. this configuration works on all other computers in this house. I'm pretty sure my dns ain't broken.

i ran the last one, cause my dns is offline.

host www.slackware.com 217.13.4.21: ;; connection timed out; no serves could be reached
 
Old 11-16-2006, 02:01 PM   #10
Alien Bob
Slackware Contributor
 
Registered: Sep 2005
Location: Eindhoven, The Netherlands
Distribution: Slackware
Posts: 8,559

Rep: Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106
Quote:
ping 64.57.102.34: destination host unreachable
Something is not right in your network. You say that the rest of the computers in your LAN work fine? Can you ping their IP addresses from this SLackware computer?

Is 192.168.1.1 really the router for your network?

Also, you can use ping and the traceroute tool to see where the networking stops:
Code:
ping 192.168.1.1
should return something.
Code:
traceroute -n 64.57.102.34
should give an indication of how far down the routing breaks if the previous ping returned packets.

Eric
 
Old 11-16-2006, 02:32 PM   #11
alekstef
LQ Newbie
 
Registered: Nov 2006
Location: Bergen, Norway
Distribution: Slackware
Posts: 10

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by Alien Bob
Something is not right in your network. You say that the rest of the computers in your LAN work fine? Can you ping their IP addresses from this SLackware computer?

Is 192.168.1.1 really the router for your network?

Also, you can use ping and the traceroute tool to see where the networking stops:
Code:
ping 192.168.1.1
should return something.
Code:
traceroute -n 64.57.102.34
should give an indication of how far down the routing breaks if the previous ping returned packets.

Eric
I cannot ping the other computers from the slack computer. 192.168.1.1 is the modem from my isp, 192.168.1.10 is my dns and other services-server.

I have tried to ping the modem, but same as the other pings, destination host unreachable.

traceroute -n 64.57.102.34 says it's stopping on the slack computer (the same computer that it is run on)
 
Old 11-16-2006, 02:59 PM   #12
Alien Bob
Slackware Contributor
 
Registered: Sep 2005
Location: Eindhoven, The Netherlands
Distribution: Slackware
Posts: 8,559

Rep: Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106
I would almost begin to believe that that NIC is fried... Do you have a Live-CD of any kind (Knoppix, SLAX) to test network functionality?

Eric
 
Old 11-16-2006, 05:40 PM   #13
number22
Member
 
Registered: Sep 2006
Location: Earth
Distribution: Slackware 14.1 Slackware64-current multilib
Posts: 278
Blog Entries: 7

Rep: Reputation: Disabled
I hope that you check your network cable already.
is it patch cable or cross-over cable?

My networks contain those two different type of cable all the time.

Last edited by number22; 11-16-2006 at 05:41 PM.
 
Old 11-18-2006, 04:10 AM   #14
alekstef
LQ Newbie
 
Registered: Nov 2006
Location: Bergen, Norway
Distribution: Slackware
Posts: 10

Original Poster
Rep: Reputation: 0
Hey number22! The newer network cards and switches doesn't "care" wether it is crossover-cable or patch-cable you use. And it worked before reinstallation.

I have tested with an Ubuntu live-cd and it all works there, so the nic is not fried. Weird!

Last edited by alekstef; 11-18-2006 at 04:37 AM.
 
Old 11-19-2006, 01:07 PM   #15
WindowBreaker
Member
 
Registered: Oct 2005
Distribution: Slackware
Posts: 228

Rep: Reputation: 40
I think the problem is your routing tables - the default gateway entry in particular.

Let me explain.

Your posted routing table in your original post is as follows:
Quote:
route -n
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use iface
192.168.1.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0
127.0.0.0 0.0.0.0 255.0.0.0 U 0 0 0 lo
0.0.0.0 192.168.1.1 0.0.0.0 U 1 0 0 eth0
I compared that to my routing table, which looks as follows. Pay close attention to my default route entry's flags.
Code:
route -n
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
192.168.1.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0
127.0.0.0 0.0.0.0 255.0.0.0 U 0 0 0 lo
0.0.0.0 192.168.1.1 0.0.0.0 UG 1 0 0 eth0
Notice mine has the 'G' gateway flag set, and yours does not.

This may or may not be the problem, but I think it should at least be considered. All my machines have the 'G' flag set and work properly.

Maybe you should try re-running netconfig. The reboot, and re-check your 'route -n' output to see if the G flag is now set as it should be.

Or, at lease delete the entry, add it back in, and re-check the routing table for the 'G' flag.
Code:
route delete default gw
route add default gw 192.168.1.1
If anyone has a gateway entry in their routing table, in which the 'G' flag is not set, and your Internet is working properly, please let us know.

Good luck.

Last edited by WindowBreaker; 11-19-2006 at 01:09 PM.
 
  


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
Weird Network Problem mustangfanatic01 Slackware 10 04-24-2006 01:20 PM
Weird network problem rrwhite Ubuntu 2 07-07-2005 04:58 AM
Weird problem with lilo in Slack 10.1 aiordanescu Slackware 2 05-28-2005 09:32 AM
weird network problem zaichik Linux - Newbie 2 07-03-2004 07:17 AM
weird network problem guanyu Linux - Networking 5 06-25-2002 06:30 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 08:57 PM.

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