LinuxQuestions.org
Help answer threads with 0 replies.
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 01-11-2003, 04:57 PM   #1
Siderius
LQ Newbie
 
Registered: Jan 2003
Location: New Zealand
Distribution: Mandrake 9.0
Posts: 6

Rep: Reputation: 0
Angry Network not working!


I have jsut set up Mandrake 9, but can't get it to connect. I have a PC, connected to a switch, and an ADSL router. The router is a DHCP server, but I am trying to use a staic IP just to get it working. I tried on DHCP first, and got nowhere so figured to use static for now, as a reference point. But no joy.

I have the following configurations:

Route

Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
192.168.10.0 * 255.255.255.0 U 0 0 0 eth0
127.0.0.0 * 255.0.0.0 U 0 0 0 lo
default 192.168.10.254 0.0.0.0 UG 0 0 0 eth0

netstat -rn

Kernel IP routing table
Destination Gateway Genmask Flags MSS Window irtt Iface
192.168.10.0 0.0.0.0 255.255.255.0 U 40 0 0 eth0
127.0.0.0 0.0.0.0 255.0.0.0 U 40 0 0 lo
0.0.0.0 192.168.10.254 0.0.0.0 UG 40 0 0 eth0

ifconfig

eth0 Link encap:Ethernet HWaddr 00:08:A1:18:06:B8
inet addr:192.168.10.5 Bcast:192.168.10.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:10 errors:503 dropped:0 overruns:0 frame:0
TX packets:282 errors:2 dropped:0 overruns:0 carrier:2
collisions:0 txqueuelen:100
RX bytes:1564 (1.5 Kb) TX bytes:12354 (12.0 Kb)
Interrupt:11 Base address:0xc800

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:124 errors:0 dropped:0 overruns:0 frame:0
TX packets:124 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:12474 (12.1 Kb) TX bytes:12474 (12.1 Kb)

resolv.conf
search home.net.nz
nameserver 209.103.252.42
nameserver 209.103.252.43

and nsswitch.conf contains the line
hosts: files nis nisplus dns


What can I do now? Any suggestions?

(All works well in WXP, btw)

Thanks
 
Old 01-12-2003, 04:45 AM   #2
dorian33
Member
 
Registered: Jan 2003
Location: Poland, Warsaw
Distribution: LFS, Gentoo
Posts: 591

Rep: Reputation: 32
do you stop firewall (if any) ?
can you ping loopback (127.0.0.1)?
can you ping yourself (192.168.10.5)?
can you ping gateway (192.168.10.254)?
what way do you check the network is not working?
what does it mean "I tried on DHCP first, and got nowhere" ?
do you run the dhcpcd daemon or dhclient to get your IP and gateway IP?
 
Old 01-12-2003, 09:20 PM   #3
Siderius
LQ Newbie
 
Registered: Jan 2003
Location: New Zealand
Distribution: Mandrake 9.0
Posts: 6

Original Poster
Rep: Reputation: 0
No firewall installed (AFAIK), that is, none was offered during the install, and I have not installed any others.
Yes, I can ping loopback
Yes, I can ping myself on 192.168.10.5
No, I can't ping 192.168.10.254 (host unreachable ?)
To see if the network was working, I pinged 192.168.10.254, tried a traceroute to 192.168.10.254, same answer. Physical connection is still OK, lights on router shows green, and works fine on reboot into XP. Other PC's are using the router at the same time, so that's OK. (Maybe it doesn't speak Linux??)
During the install, I the DHCP option, I assume the installer used dhcpcd, but if it couldn't reach the router, it couldn't get an IP addie, I figured, so back to static.
Only thing I can think of is that the wrong drivers have been loaded for the nic, but that doesn't seem likely, does it? Installer self detected the nic, and seems happy with it, no errors on bootup?
TIA
 
Old 01-13-2003, 11:37 AM   #4
dorian33
Member
 
Registered: Jan 2003
Location: Poland, Warsaw
Distribution: LFS, Gentoo
Posts: 591

Rep: Reputation: 32
Well, for me it looks like the gateway is wrong; use XP and ping gateway next do 'netstat -rn' (sorry I do not know the proper syntax under XP) and traceroute from them; you'll be sure the ip adresses - especially the gateway one. If it'll be the same - sorry I do not know;
Regarding DHCP - it is usually used not only to get your own IP addres but the rest of "important" IPs like the gateway IP, DNS address, etc. So dhcpcd cannot acts like you describe "if it couldn't reach the router, it couldn't get an IP" - it usually uses broadcast to receive that IPs.
 
Old 01-13-2003, 10:59 PM   #5
Siderius
LQ Newbie
 
Registered: Jan 2003
Location: New Zealand
Distribution: Mandrake 9.0
Posts: 6

Original Poster
Rep: Reputation: 0
Well, thanks for your interest. The gateway is correct, I can ping it & traceroute & telnet it & netstat -rn it all in XP and it still gives the same ol' numbers, 192.168.10.254.
Oh well, I'll keep fiddling with it. "Firewall" still nags at me, but ps -ax doesn't show any processes I can't identify, and dmesg doesn't show any errors or odd services starting.
Just as well I'm not trying to sell my boss on the benefits of Linux.
 
Old 01-14-2003, 03:39 AM   #6
dorian33
Member
 
Registered: Jan 2003
Location: Poland, Warsaw
Distribution: LFS, Gentoo
Posts: 591

Rep: Reputation: 32
I see you are not sure you have got the firewall or not. The firewall start doesn't need to be reported at boot up messages. Try iptables -L and/or iptables -L (I do not know what is installed). You shoud got only a few lines. If you'll got any doubts, show the results.

Last edited by dorian33; 01-14-2003 at 03:41 AM.
 
Old 01-15-2003, 12:54 AM   #7
Siderius
LQ Newbie
 
Registered: Jan 2003
Location: New Zealand
Distribution: Mandrake 9.0
Posts: 6

Original Poster
Rep: Reputation: 0
iptables doesn't seem to be installed? just ' iptables ' at a prompt gives "command not found"
And 'ipt' -TAB" gives no options.

So is that the problem? The install program gave no choice to accept or reject, I just accecpted the defaults.
 
Old 01-15-2003, 02:44 AM   #8
dorian33
Member
 
Registered: Jan 2003
Location: Poland, Warsaw
Distribution: LFS, Gentoo
Posts: 591

Rep: Reputation: 32
First thing- I've made mistake in my last post: I've repeated 'iptables -L' twice (shoud be 'iptables -L' and 'ipchains -L'), but if ipt<tab> shows nothing (hope done as root) it seems you have no firewall;
Since you are sure the gateway address (checked with XP) it has to be pinged (as under XP you do)! No way!
I am really sorry. No idea. But I can told you that somewhere I install Linux on computer with a tulip eth card. And I got the following problem: sometimes I could ping the world sometimes I could not. Under Win there was no problem. But I throw away this card and everything is ok now.
 
Old 01-15-2003, 07:01 PM   #9
Siderius
LQ Newbie
 
Registered: Jan 2003
Location: New Zealand
Distribution: Mandrake 9.0
Posts: 6

Original Poster
Rep: Reputation: 0
Ok, thanks. I'll try another nic and see. The current one is using tulip, so that may well be the answer. I think I have a ne2000 clone somewhere, I'll try that. I'll post the results FYI
 
Old 01-16-2003, 12:28 PM   #10
oneiltj
LQ Newbie
 
Registered: Jan 2003
Location: NE, Ohio
Posts: 19

Rep: Reputation: 0
Back to the firewall deal... PING is ICMP. I don't recall exactly were in the install your asked about accepting ICMP. I think you already covered that though.

I've noticed at work simular situations with winnt w/s. In many cases it comes down to a speed and duplex issue. I really don't know ( and would like to learn ) to force the speed at the NIC. Also some cards absolelutly suck and autodetect.

My point is it may be a layer 1 issue. you've covered most everything else.
 
Old 01-18-2003, 04:58 PM   #11
Siderius
LQ Newbie
 
Registered: Jan 2003
Location: New Zealand
Distribution: Mandrake 9.0
Posts: 6

Original Poster
Rep: Reputation: 0
Cool

OK, Ok, problem solved!
Thanks to dorian33 and oneiltj

I tried another nic, but the MD autodetect-and-install-drivers (haven't found what it is called ) fell over with the line "insmod'ing module ne2k-pci failed at usr/lib/library/modules.pm line 55" . I went back to the Davicom nic, (it's 10/100, the ne2000 is 10 only) and I went looking on the net for alternative drivers, and read enough on ne2000 clones to scare me off them; so started looking for alternative drivers for the Davicom. (MD autoinstalled tulip). I found these, noted the filename was dmfe, found I had this module, removed tulip, installed dmfe, and it works!! In the course of doing this, before I altered modules.conf to load dmfe, MD tried on bootup to load tulip again, and fell over with the same error message as above.

So, I'm wondering, where does MD decide to load tulip for a davicom card, and should I try to bring this little episode out for others to learn from? Changing the modules is simple once you know the commands, but the defaults on the auto-installer give no options that I saw for manual selection of drivers.
 
  


Reply


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
Network card not working? Cannot activate network device eth0 lifeonitsown Linux - Networking 1 11-17-2005 06:30 AM
Network not working. zaicheke Solaris / OpenSolaris 12 01-04-2005 05:49 AM
Internet working, network not working... phoenix07 Fedora 1 04-11-2004 02:30 AM
Ethernet Adapter not working or Network not working... phoenix07 Linux - Hardware 2 04-09-2004 06:58 PM
Network Not working, please help jacobperkins973 Linux - Networking 2 10-06-2003 07:08 PM

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

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