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 10-03-2003, 05:17 PM   #1
driftwolf
LQ Newbie
 
Registered: Oct 2003
Location: west coast of Canada
Distribution: Mandrake 9.1
Posts: 7

Rep: Reputation: 0
Old "newbie" needs help. eth0 on Mandrake 9.1


Been admin for unix systems for 20 years but been out of the loop for a couple of years, memory is weak, and Linux is new(ish) to me. I'm guessing it's a "um, yes, I knew that, really" sort of error, but I'm stumped.

Setting up two new Mandrake 9.1 systems. Having trouble with eth0. It can ping itself (which took a while until I realised the security settings were getting in the way), but it can't find the other linux box.

two linux boxen hooked up through hub. Hub works (I've confirmed this), cables good, hardware seems ok, systems new.

Hardware for both systems: ([...] means I editted text out),
excuse any typos as I'm typing this from one system while reading the screen across the room...

ECS L7VMM2 motherboard.
manual says: Realtek RTL8100B LAN chip, VT6103 physical layer device.

The ethernet is on-board here, no separate card.

root@sage> lspci
...
00:12.0 Ethernet [...] VIA [...] VT6102 (Rhine-II) (rev 74)

root@sage> ifconfig -a
eth0
Link encap: Ethernet HWaddr ([...mac id...])
inet addr: 192.168.0.2 Bcast:192.168.0.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:14 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:100
RX bytes:0 (0.0 b) TX bytes:0 (0.0 b)

lo:
Link encap:Local Loopback
(etc...)

root@thyme> route -n
Kernel IP routing table
Destination: Gateway: Genmask Flags: Metric Ref Use Iface
192.168.0.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.0.1 0.0.0.0 UG 0 0 0 eth0

(note: I've tried various combinations of adding the system
itself as a gateway, ie:
> route add default gw sage,
> route add default gw thyme
with no luck.

root@thyme> cat /etc/hosts
127.0.0.1 localhost
192.168.0.1 firewall hub1
192.168.0.2 thyme
192.168.0.3 sage

root@thyme> cat /etc/modules.conf
[...]
alias eth0 via-rhine


Anyone know what the heck I'm doing wrong?

cheers,
Marc
 
Old 10-03-2003, 06:01 PM   #2
Peacedog
LQ Guru
 
Registered: Sep 2003
Location: Danville, VA
Distribution: Slackware, Windows, FreeBSD, OpenBSD, Mac OS X
Posts: 5,296

Rep: Reputation: 168Reputation: 168
root@thyme> cat /etc/hosts
127.0.0.1 localhost
192.168.0.1 firewall hub1
192.168.0.2 thyme
192.168.0.3 sage




could it be that both boxes are acting as host and causing a conflict? i'm new as well (really new...been running mandrake 9.1 for about 6 weeks) so i'm guessing here.

Last edited by Peacedog; 10-03-2003 at 06:14 PM.
 
Old 10-03-2003, 06:27 PM   #3
crossconnects
LQ Newbie
 
Registered: Sep 2003
Posts: 17

Rep: Reputation: 0
it has something to do with the configuration of the card. the tx packets line shows 14 errors -- nothing is getting out.

The gateway is the device which connects the computers on your local network to other networks and should be left as your router address.
 
Old 10-03-2003, 06:45 PM   #4
chort
Senior Member
 
Registered: Jul 2003
Location: Silicon Valley, USA
Distribution: OpenBSD 4.6, OS X 10.6.2, CentOS 4 & 5
Posts: 3,660

Rep: Reputation: 76
I think the card is to blame (well, chip). It's either misconfigured, or has a fault.

You say you're running a hub. Is it 100Mbs or 10Mbs? Is your card hard coded to a certain media setting (100full, 10half, etc)? Use mii-tool to discover the card's setting and possibly change it. Some networking hardware has difficulty auto-negotiating. Find out what the max speed your hub will support is and use mii-tool to hard code your card's media settings to that. Note that hubs are shared media so you can only operate in HALF duplex (don't try setting duplex to full, you'll have problems).

If you do arp -a, can you see any other MAC addrs on your network? Can any other hosts ping yours? Do their arp caches have your MAC addr? Try running a sniffer (tcpdump, snoop, Ethereal, etc) on the hub to see what exactly is going on.
 
Old 10-03-2003, 06:46 PM   #5
/bin/bash
Senior Member
 
Registered: Jul 2003
Location: Indiana
Distribution: Mandrake Slackware-current QNX4.25
Posts: 1,802

Rep: Reputation: 47
You probably need to start without any firewall on either box and get them talking first. Just start the Mandrake Control panel and select Security -> DrakFirewall Then where it says which services do you want to allow check Everything (no firewall). Then Select Network & Internet and configure your eth0 card. Then from the same screen click on Configure Internet Access and set the Gateway to 192.168.0.1.

Try restarting your network:
service network restart
 
Old 10-03-2003, 07:25 PM   #6
driftwolf
LQ Newbie
 
Registered: Oct 2003
Location: west coast of Canada
Distribution: Mandrake 9.1
Posts: 7

Original Poster
Rep: Reputation: 0
/bin/bash - that's basically where I'm at now. DrakFirewall is off, and I'm running basic "linux" as opposed to "linux-secure".

Hub is an old 8-port 10BaseT. mii-tool seems to say the card settings seem to be what is expected (10BaseT, half duplex).
I'd love to think the problem is with the hardware, but the fact that two identical systems are having exactly the same fault seem to suggest that it's a user error on my part.

root@thyme > mii-tool
eth0: no autonegotiation, 10baseT-HD, link ok

root@thyme > ping sage
[...]4 packets terminated, 0 received, +3 errors, 100% packet loss, time 3027ms

root@thyme > arp -a
sage (192.168.0.3) at <incomplete> on eth0
 
Old 10-03-2003, 07:34 PM   #7
driftwolf
LQ Newbie
 
Registered: Oct 2003
Location: west coast of Canada
Distribution: Mandrake 9.1
Posts: 7

Original Poster
Rep: Reputation: 0
I've now done service network restart after running netconf to reset gateways and stuff.

route -v now returns:
default firewall 0.0.0.0
as the last line.

However, I can't ping firewall either. (firewall = 192.168.0.1, a DLink hardware firewall. I can ping the Dlink from my current system (my old XP system).
 
Old 10-03-2003, 07:48 PM   #8
/bin/bash
Senior Member
 
Registered: Jul 2003
Location: Indiana
Distribution: Mandrake Slackware-current QNX4.25
Posts: 1,802

Rep: Reputation: 47
When you ping the firewall do you see the TX light blink on the eth0 on the computer and on the D-Link?
 
Old 10-03-2003, 08:11 PM   #9
driftwolf
LQ Newbie
 
Registered: Oct 2003
Location: west coast of Canada
Distribution: Mandrake 9.1
Posts: 7

Original Poster
Rep: Reputation: 0
Hadn't thought of that!

The eth0 on the computer has no lights, but the "network traffic" light on the hub flashes in time to the pings.

I unplugged the DLink from this computer (lots of traffic) and yes, the network traffic light there does flash in time to the pings, at the same time as the hub.

Network diagram:
|----- sage
hub ------ thyme
|
|
DLink ----- WinXP
|
|- Internet
 
Old 10-03-2003, 08:45 PM   #10
driftwolf
LQ Newbie
 
Registered: Oct 2003
Location: west coast of Canada
Distribution: Mandrake 9.1
Posts: 7

Original Poster
Rep: Reputation: 0
OK, I've downloaded, installed and configured Ethereal on my WinXP box and have discovered that pings from either system are, in fact, being seen on my internal network.

So, something is getting out of eth0 ok, but nobody seems to be replying.

oddity: when I ping from my WinXP box, I see ICMP packets.
When I ping from Linux, all I'm seeing is ARP, but no ICMP.
hmm, I vaguely recall this is significant, but I can't remember why, darnit.
 
Old 10-04-2003, 12:18 AM   #11
doorman007
LQ Newbie
 
Registered: Oct 2003
Posts: 10

Rep: Reputation: 0
try ethereal on one of the linux boxes, then ping
 
Old 10-04-2003, 02:33 AM   #12
chort
Senior Member
 
Registered: Jul 2003
Location: Silicon Valley, USA
Distribution: OpenBSD 4.6, OS X 10.6.2, CentOS 4 & 5
Posts: 3,660

Rep: Reputation: 76
Well for some reason the Linux boxes either aren't getting, or aren't storing the ARP responses. Your ARP cache is empty so it's no wonder you cannot ping anything, you have no MAC addr to send the packet to!

By the way, you do not need to install packet sniffers on all you boxes (chances are the *nix boxes already have tcpdump, but that's beside the point). You're connected via a hub, and remember, hubs are shared media. All the packets are echoed to all the ports on the hub, so running a sniffer on one machine is as good as running a sniffer on all of them.

The routing setup posted above should be correct:
Quote:
root@thyme> route -n
Kernel IP routing table
Destination: Gateway: Genmask Flags: Metric Ref Use Iface
192.168.0.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.0.1 0.0.0.0 UG 0 0 0 eth0
Your ifconfig output matches this, so that should be fine as well. The fact that you see ARP requests with Ethereal shows that at least ARP is getting out of the box (although for whatever reason the replies aren't sticking).

Now there are several things to check. One, you said you saw the ARP reqs. Were they from the box that was pinging? Was there an ARP response with the correct MAC addr of the IP you were trying to ping? After the reply, were there more ARP reqs from the box that was sending the pings (I'm assuming the answers are yes, yes, yes). If my assumptions are correct, then the problem is with the original box receiving the replies.

Try iptables -Ln to see if you currently have anything loaded in the kernel netfilter. If you do have entries, then iptables -F will flush all of them. It's sounding to me like either you have the remenents of a firewall installed and you don't realize it, or else the driver you're using is not working correctly with your hardware.
 
Old 10-04-2003, 01:36 PM   #13
driftwolf
LQ Newbie
 
Registered: Oct 2003
Location: west coast of Canada
Distribution: Mandrake 9.1
Posts: 7

Original Poster
Rep: Reputation: 0
The arp requests were from the box that was pinging, down to the mac address of the eth0. The answers are indeed yes, yes and yes.

I'm off for some liquid recovery to Vancouver now, but will return tomorrow with more exciting news about the results of iptables and firewall remnants that refuse to die.

many thanks, see you tomorrow.
Marc
 
  


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
newbie question: whats the difference between "su root", "su" and "su -&quo mojarron Slackware 9 12-07-2009 04:08 PM
Mandrake 10.1 - "Bringing up eth0: FAILED" zhex900 Linux - Networking 10 12-07-2004 11:59 PM
Another newbie with "eth0 failed" ugo Linux - Networking 4 09-20-2004 08:46 PM
Can you change the "title" under your name that says "member" or "newbie&qu Whitehat LQ Suggestions & Feedback 3 11-19-2003 06:32 PM
does failed using urpmi messed up my "Install Software" / "mandrake update" ??? sirpelidor Mandriva 1 11-02-2003 09:00 PM

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

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