LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
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-25-2003, 05:03 PM   #1
Machinegun
Member
 
Registered: Jan 2003
Posts: 56

Rep: Reputation: 15
Problem with ethernet card?


I can't get my net working. The message is "unrecheable host". I have reviewed my configuration and I
don't know why. It is Real Tek 8139 on a notebook computer with RedHat 8.0. Response to commands are as follow:

ifconfig:

eth0 Link encap:Ethernet HWaddr 00:40:CA:BE:25:3F
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:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:100
RX bytes:0 (0.0 b) TX bytes:0 (0.0 b)
Interrupt:9 Base address:0x1800

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

netstat -rn

Kernel IP routing table
Destination Gateway Genmask Flags MSS Window irtt Iface
192.168.0.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

NETWORK file in etc/sysconfig has

NETWORKING=yes
HOSTNAME=Mobile

ifcfg-eth0 has

DEVICE=eth0
ONBOOT=yes
BOOTPROTO=none
IPADDR=192.168.0.2
NETMASK=255.255.255.0
USERCTL=no
PEERDNS=no
TYPE=Ethernet
NETWORK=192.168.0.0
BROADCAST=192.168.0.255

8139too module is load without problems. Ifup eth0, ifdown eth0 without problem, but it doesn't work

Please help.javascript:smilie(%27%3Acry%3A%27)
 
Old 01-25-2003, 06:05 PM   #2
michaelk
Moderator
 
Registered: Aug 2002
Posts: 11,856

Rep: Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738
Yes it appears that your ethernet card is work correctly. We need a little more information.

What are you trying to network to?
 
Old 01-25-2003, 09:29 PM   #3
GAVollink
Member
 
Registered: Apr 2002
Location: St. Paul, Minnesota
Distribution: UbuntuStudio, Ubuntu
Posts: 357

Rep: Reputation: 31
I agree with michealk - From your config info - you should be directly attached to a hub or switch with other computers. You should NOT be able to reach an internet (you have no defined gateway) - but you SHOULD be able to ping any IP addresses 192.168.0.1 through 192.168.0.254 that are connected to your switch/hub.
 
Old 01-26-2003, 06:05 AM   #4
Machinegun
Member
 
Registered: Jan 2003
Posts: 56

Original Poster
Rep: Reputation: 15
I have tried two differents conections: one with Windows 98, and anotherone with a computer with Red Hat 6.2. The problem seems to be the same.
I also have a Windows XP partition, and the net work fine, so I know the card and the wire works.

(Sorry for my English and thank you)
 
Old 01-26-2003, 06:07 AM   #5
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,384

Rep: Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963
where do you get this "unrecheable host" message? what are you DOING with these connections?
 
Old 01-26-2003, 06:13 AM   #6
Machinegun
Member
 
Registered: Jan 2003
Posts: 56

Original Poster
Rep: Reputation: 15
I will try to clarify. I am doing PC to Pc direct conection (without hub). The error is if I try to ping the others computers. But also if I try to mount a disk on remote computers, it fails.
I know I have not defined a gateway, so I am not trying to do an internet conection. I only want to connect two computers.

Thanks for the interest
 
Old 01-26-2003, 08:41 AM   #7
inge_ninge
LQ Newbie
 
Registered: Jan 2003
Posts: 7

Rep: Reputation: 0
Did you define any firewallrules? Did you install ipchains or iptables? I think ipchains disables everything by default, dosn't it?
 
Old 01-26-2003, 08:48 AM   #8
Darin
Senior Member
 
Registered: Jan 2003
Location: Portland, OR USA
Distribution: Slackware, SLAX, Gentoo, RH/Fedora
Posts: 1,024

Rep: Reputation: 45
What are the IP addresses of the two computers?

Win 2k/xp/nt: in a cmd box type ipconfig /all
Win9x: start-run-winipcfg (not the ppp adapter)
Linux: at a shell prompt as root type ifconfig -a

Post the results of whichever command you use for both the computers you are trying to connect together.

(5 buck says he never assigned IPs on the win boxes and xp can see 98 cause they both use another protocol like IPX or the IPAC addresses 168.whatever, loser donates to affero)
 
Old 01-26-2003, 08:54 AM   #9
Machinegun
Member
 
Registered: Jan 2003
Posts: 56

Original Poster
Rep: Reputation: 15
Unhappy

I have no firewall installed. I disabled firewall when I installed RedHat. I have not defined ipchains or iptables. I have never used.
 
Old 01-26-2003, 09:46 AM   #10
Machinegun
Member
 
Registered: Jan 2003
Posts: 56

Original Poster
Rep: Reputation: 15
Windows 98 configuration is IP:192.168.0.1 Mask:255.255.255.0.

you can see results of ifconfig in my first message.

I think the problem is not in Windows, because I have no problem to connect with my old computer with Red Hat 6.2. I have problem with the notebook computer with Red Hat 7.2. Later I installed Red Hat 8, but the problem is the same.
 
Old 01-26-2003, 10:34 AM   #11
inge_ninge
LQ Newbie
 
Registered: Jan 2003
Posts: 7

Rep: Reputation: 0
Is it a 10/100 card?
Do you have a Switch? I had problems getting a realtec-card to work because it can't handle 10/100MBit/s switching. I put it on a Switch and it works fine.
 
Old 01-26-2003, 10:52 AM   #12
Darin
Senior Member
 
Registered: Jan 2003
Location: Portland, OR USA
Distribution: Slackware, SLAX, Gentoo, RH/Fedora
Posts: 1,024

Rep: Reputation: 45
So you have RH installed on one computer. The card comes up and looks OK and is set to IP 192.168.0.2 mask 255.255.255.0

And 98 on the other box, IP is 192.168.0.1 and mask is 255.255.255.0

But when you try to ping from one to the other it says "unrecheable host"?

At this point, gateway or firewall should not matter. You shouldn't get a message like that if you try to ping an address on your subnet; If the IP is 192.168.0.2 and the netmask is 255.255.255.0 You can ping anything from 192.168.0.1 to 192.168.0.254 even if there is nothing with that IP address... if it can't see the address you will either see "request timed out" on a win box or just get 100% packet loss in Linux.

If you get a different error with ping then you either have IP settings different than what you stated or the driver didn't load right and ethernet isn't started. If this is your case then please post again what error you get when you try to ping in both windows and linux. Also ping 127.0.0.1 in linux and post if that works.

If you can ping then you probably just need to set up Samba and there are several threads here if you search for "samba" along with good info from www.redhat.com www.tldp.org or www.samba.org that will help you set it up in Linux.
 
Old 01-26-2003, 11:56 AM   #13
Machinegun
Member
 
Registered: Jan 2003
Posts: 56

Original Poster
Rep: Reputation: 15
Results are:

Ping 192.168.0.2 from windows - Time out

ping from linux..

PING 192.168.0.1 (192.168.0.1) from 192.168.0.2 : 56(84) bytes of data.
From 192.168.0.2 icmp_seq=1 Destination Host Unreachable
From 192.168.0.2 icmp_seq=2 Destination Host Unreachable

ping 127.0.0.1 works

I am not sure but I know Ethernet Card is sharing IRQ with modem. Maybe this is the problem, but if I don't load modem modules, ethernet card neither work. I don't know what probes can I do to know if this is the problem. I have try to change IRQ in modules.conf , but eth0 IRQ is always the same.
 
Old 01-26-2003, 12:48 PM   #14
Darin
Senior Member
 
Registered: Jan 2003
Location: Portland, OR USA
Distribution: Slackware, SLAX, Gentoo, RH/Fedora
Posts: 1,024

Rep: Reputation: 45
My Linux ping command doesn't ever say destination host unreachable but I probably just have a different version than you, it is still an error message that makes sense. It just means what it says, you can't connect to the other computer. Just to make sure Linux networking is really working like it reports, ping your own IP address, 192.168.0.2. That should work, no need to go into detail unless it actually doesn't work.

You also mentioned an XP partition, so if you have the same computer booted in XP you can connect to the other computer and then you reboot into Linux, without changing anything like the cables, and when it comes up you can't connect?

And I know you may have already done this but check the connections:
If there is no hub, is it a crossover cable?
Are there linklights on both network cards?
Did you try another cable?
Does either card have an activity light and does it flash when you try to ping?
Those little rubber boots on the ends of the cable aren't stopping it from going all the way into each card?

If you actually have the network working in XP but reboot to Linux with all the same TCP/IP settings and it doesn't connect and you can ping your own IP address but not the other computer's then my guess would be that the driver module for your card isn't working correctly. If you upgrade to a new kernel it could have an updated realtek module and another option would be to see if realtek has driver modules to download from their web site. Also check with realtek's sight for information about linux, if it is a module problem you probably aren't the first one to have this happen and there could be information they have on how to fix it.

At least we have clarified what isn't working so there is less confusion in this thread.
 
Old 01-26-2003, 02:45 PM   #15
inge_ninge
LQ Newbie
 
Registered: Jan 2003
Posts: 7

Rep: Reputation: 0
this could help!
The driver is:
http://www.scyld.com/network/rtl8139.html
This driver provide a interface to the Media Independent Interface, "MII" transceiver configuration and diagnostic settings. This interface allows the media type (i.e. 10Mbps or 100Mbps, half or full duplex) to be configured. The settings are usually configured by the (slightly misnamed) mii-diag program. The details of this program may found on the diagnostic home page.
http://www.scyld.com/page/support/network/
 
  


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
Problem with ethernet card Kover_25 Linux - Networking 2 04-19-2005 05:20 AM
Ethernet card on laptop: I installed my D-Link ethernet card into Redhat 9, not detec brighamr Linux - Hardware 0 05-18-2004 12:33 AM
Problem with ethernet card? ankitgdit Linux - Hardware 3 04-28-2004 02:22 PM
problem with ethernet card n3wb1e Linux - Hardware 1 02-13-2004 08:54 PM
problem with ethernet card bpmovva Linux - Newbie 12 01-31-2002 07:06 PM


All times are GMT -5. The time now is 02:47 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration