LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 11-10-2004, 11:46 AM   #1
ror
Member
 
Registered: May 2004
Distribution: Ubuntu
Posts: 583

Rep: Reputation: 33
routing woes


ok, I have 2 computers, descartes and aristotle. Descartes is my main desktop machine, has 2 NICs, eth1 going out to the rest of the world via a LAN connection, eth0 going via crossover cable to aristotle. Aristotle is just a small machine I want to use for file storage and a bit of distributed computing.

Trouble is, I can't get them to ping each other, I think it must be somethign to do with my routing tables.

Descartes is 192.168.0.1, aristotle is 192.168.0.2, netmask 255.255.255.0

Pinging each other they get "destination host unreachable", despite the fact that using ifconfig I can see they actually recieve the bytes, RX bytes on one matches TX on the other.

Code:
bash-3.00# route
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
137.222.232.0   *               255.255.255.0   U     0      0        0 eth1
192.168.0.0     *               255.255.255.0   U     0      0        0 eth0
loopback        *               255.0.0.0       U     0      0        0 lo
default         hlbr2-s232.nwgw 0.0.0.0         UG    0      0        0 eth1
That's from descartes.

I know this should be simple but I've read HOWTOs and googled but can't find why it's not working.
 
Old 11-10-2004, 12:53 PM   #2
Matir
LQ Guru
 
Registered: Nov 2004
Location: San Jose, CA
Distribution: Debian, Arch
Posts: 8,507

Rep: Reputation: 128Reputation: 128
May we assume that no iptables rules are in place?
 
Old 11-10-2004, 02:24 PM   #3
Darin
Senior Member
 
Registered: Jan 2003
Location: Portland, OR USA
Distribution: Slackware, SLAX, Gentoo, RH/Fedora
Posts: 1,024

Rep: Reputation: 45
Post the result of running '/sbin/ifconfig -a' as root on both machines (if one is windows, run 'ipconfig /all' from a command prompt)

you should have something like this on each machine:

Code:
Descartes:
          eth0      Link encap:Ethernet  HWaddr FA:FA:FA:FA:FA:FB  
          inet addr:192.168.0.1  Bcast:192.168.0.255  Mask:255.255.255.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1

aristotle:
          eth0      Link encap:Ethernet  HWaddr FA:FA:FA:FA:FA:FA  
          inet addr:192.168.0.2  Bcast:192.168.0.255  Mask:255.255.255.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
The important parts are the inet addr on each set right and the Bcast and Mask are the same along with the word UP. For windows it should have something like:
Code:
Ethernet adapter Local Area Connection:

        Description . . . . . . . . . . . : Intel(R) PRO/100+
        Physical Address. . . . . . . . . : FA-FA-FA-FA-FA-FB
...
        IP Address. . . . . . . . . . . . : 192.168.0.2
        Subnet Mask . . . . . . . . . . . : 255.255.255.0
...
Also, check to make sure the computers can ping their local network stack with 'ping 127.0.0.1' (this proves the networking is working) and then that they can ping their own IP addresses with 'ping 192.168.0.1' and 'ping 192.168.0.2' (this proves that each machine sees it's own network card is set up and working) and post if any of these pings fail.
 
Old 11-10-2004, 02:49 PM   #4
ror
Member
 
Registered: May 2004
Distribution: Ubuntu
Posts: 583

Original Poster
Rep: Reputation: 33
Here's the one from my main machine (the other is just similar but only has 1 NIC and is 192.168.0.2 not 0.1.

Code:
bash-3.00# ifconfig -a
eth0      Link encap:Ethernet  HWaddr 00:60:6E:77:0A:7F  
          inet addr:192.168.0.1  Bcast:192.168.0.255  Mask:255.255.255.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:12 errors:0 dropped:0 overruns:0 frame:0
          TX packets:21 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:720 (720.0 b)  TX bytes:882 (882.0 b)
          Interrupt:11 Base address:0xd400 

eth1      Link encap:Ethernet  HWaddr 00:50:8D:4D:C3:4E  
          inet addr:137.222.232.128  Bcast:137.222.232.255  Mask:255.255.255.0
          UP BROADCAST NOTRAILERS RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:892657 errors:0 dropped:0 overruns:0 frame:0
          TX packets:1440104 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:76910067 (73.3 Mb)  TX bytes:2122648213 (2024.3 Mb)
          Interrupt:10 Base address:0x1000 

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:11544 errors:0 dropped:0 overruns:0 frame:0
          TX packets:11544 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 
          RX bytes:740807 (723.4 Kb)  TX bytes:740807 (723.4 Kb)
Edit, and yes they can each ping themselves on their 192.168 addresses.
 
Old 11-10-2004, 03:16 PM   #5
Matir
LQ Guru
 
Registered: Nov 2004
Location: San Jose, CA
Distribution: Debian, Arch
Posts: 8,507

Rep: Reputation: 128Reputation: 128
You are sure that your crossover cable is good, correct? (And wired properly)
 
Old 11-10-2004, 03:52 PM   #6
ror
Member
 
Registered: May 2004
Distribution: Ubuntu
Posts: 583

Original Poster
Rep: Reputation: 33
Fairly sure, (note the TX and RX bytes on eth0, indicating that /something/ has happened on the hardware level).

They were networked (kinda) find when decartes was on windows. (although if I had ICS running every other ping would ping 1000ms and it would be laggy as hell, but that went away when I stopped sharing the net).
 
Old 11-10-2004, 03:59 PM   #7
Matir
LQ Guru
 
Registered: Nov 2004
Location: San Jose, CA
Distribution: Debian, Arch
Posts: 8,507

Rep: Reputation: 128Reputation: 128
Anything appearing in dmesg on either box?
 
Old 11-10-2004, 04:37 PM   #8
ror
Member
 
Registered: May 2004
Distribution: Ubuntu
Posts: 583

Original Poster
Rep: Reputation: 33
eth0: Davicom DM9102/DM9102A rev 64 at 0xd400, 00:60:6E:77:0A:7F, IRQ 11.
I have a feeling it's using the tulip (?) module.

The reason I think it's a routing problem is this: the TX from aristotle matches the RX from descartes, but the TX from descartes never reaches aristotle because it has RX bytes 0.
 
Old 11-10-2004, 07:24 PM   #9
Darin
Senior Member
 
Registered: Jan 2003
Location: Portland, OR USA
Distribution: Slackware, SLAX, Gentoo, RH/Fedora
Posts: 1,024

Rep: Reputation: 45
Quote:
Originally posted by ror
the TX from aristotle matches the RX from descartes, but the TX from descartes never reaches aristotle because it has RX bytes 0.
That sounds like a cabling problem, or in the worst case a bad network card.
edit - could also be a NIC driver problem

Also, the error message, "destination host unreachable" indicates that the system knows how to reach the network segment that the other computer is on but can't find the machine when it looks there. A routing problem usually returns the error, "destination net unreachable" although it is possible for routing problems to produce either message.

Last edited by Darin; 11-11-2004 at 02:35 AM.
 
Old 11-11-2004, 07:40 AM   #10
ror
Member
 
Registered: May 2004
Distribution: Ubuntu
Posts: 583

Original Poster
Rep: Reputation: 33
Thanks, I know the problem isn't with the other machine/NIC since I can network to that fine under windows.

so, that leaves eth0's NIC on my main machine, could it not be transmitting? it logs TX bytes ?

It's a tulip chipset/module and someone else said they were having problems with one of them the other day. But I don't really have a way of checking the NICs out. (I would swap eth0 and eth1 but my ISP lock the connection to a MAC address)
 
Old 11-11-2004, 04:39 PM   #11
Darin
Senior Member
 
Registered: Jan 2003
Location: Portland, OR USA
Distribution: Slackware, SLAX, Gentoo, RH/Fedora
Posts: 1,024

Rep: Reputation: 45
Quote:
Originally posted by ror
...
They were networked (kinda) fine when decartes was on windows. (although if I had ICS running every other ping would ping 1000ms and it would be laggy as hell, but that went away when I stopped sharing the net).
That too sounds like a cabling problem, or a failing network card. I'd try a new cable just to eliminate that as a problem, maybe just borrow one to test. It would be a shame if a flakey cable made you lose hours of time fiddling with it.

Anyhow, type '/sbin/lsmod' as root and see if tulip is listed there, you could also try 'cat /etc/modules.conf' and see what alias eth0 and alias eth1 are.

Code:
root@kollins:~# cat /etc/modules.conf
alias eth0 e100
alias eth1 3c59x
alias sound-slot-0 sb
alias char-major-195 nvidia
is mine, e100 is an Intel Pro 100 and the 3c59x is a 3Com 3C905B-TX

I don't know much about the tulip driver but I've read posts here where people had problems with them.

You could also actually try swapping eth0 and eth1 temporarily just to see if it is something with the card (hardware or driver) which could probably be done by changing the aliases around in modules.conf and then rebooting. Just unplug The Internet and then change them back and plug it back in after you try to ping the two machines.

edit - another trick would be to run 'tcpdump -i eth0' on one machine while you try to ping it from the other, you should see something like arp who-has 192.168.whatever tell xxx and then a reply with a MAC address and then some icmp echo requests which are the actual pings.

Last edited by Darin; 11-11-2004 at 04:47 PM.
 
Old 11-11-2004, 07:52 PM   #12
ror
Member
 
Registered: May 2004
Distribution: Ubuntu
Posts: 583

Original Poster
Rep: Reputation: 33
neither are aliased in modules.conf
my lsmod is also a mess.

forcedeth is my eth1.





Module Size Used by Tainted: P
forcedeth 8844 1

tulip 39200 0 (unused)
crc32 2880 0 [tulip]


01:09.0 Ethernet controller: Davicom Semiconductor, Inc. Ethernet 100/10 MBit (rev 40)

I've seen similar posts on here from people never getting these cards to work so I assume the linux drivers for it just don't work, guess I'll go spend ten quid on a new card :/
 
Old 11-12-2004, 02:13 PM   #13
Darin
Senior Member
 
Registered: Jan 2003
Location: Portland, OR USA
Distribution: Slackware, SLAX, Gentoo, RH/Fedora
Posts: 1,024

Rep: Reputation: 45
Quote:
Originally posted by ror
...forcedeth is my eth1....
Ahh so thats what's got all those guys over at the other forum in such a huff about NVidia!

Running only 3Com and Intel NICs on anything that has linux on it, I've never opened that can of worms trying to get an NVidia network card to work...good luck

Guess that's another thing to add to the list when I shop for a new motherboard since they usually have LOM now, that or shut off the onboard and throw a 3Com NIC in.
 
Old 11-12-2004, 04:11 PM   #14
ror
Member
 
Registered: May 2004
Distribution: Ubuntu
Posts: 583

Original Poster
Rep: Reputation: 33
no, my forcedeth is eth1, that's the one to the rest of the world, that's working perfect, never had a problem.
 
  


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
Routing gtkmike Linux - Networking 1 11-13-2003 09:21 AM
9.2 Woes kyte Mandriva 4 11-08-2003 05:22 PM
real routing under nat routing nothingmuch Linux - Networking 4 10-27-2003 03:11 PM
X woes norfenstein Slackware 9 03-13-2003 12:11 AM
IP Woes :( adcworks Linux - Networking 8 08-05-2002 11:05 AM

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

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