LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   Problem with ethernet card? (https://www.linuxquestions.org/questions/linux-networking-3/problem-with-ethernet-card-42781/)

Machinegun 01-25-2003 05:03 PM

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)

michaelk 01-25-2003 06:05 PM

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

What are you trying to network to?

GAVollink 01-25-2003 09:29 PM

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.

Machinegun 01-26-2003 06:05 AM

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)

acid_kewpie 01-26-2003 06:07 AM

where do you get this "unrecheable host" message? what are you DOING with these connections?

Machinegun 01-26-2003 06:13 AM

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

inge_ninge 01-26-2003 08:41 AM

Did you define any firewallrules? Did you install ipchains or iptables? I think ipchains disables everything by default, dosn't it?

Darin 01-26-2003 08:48 AM

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)

Machinegun 01-26-2003 08:54 AM

I have no firewall installed. I disabled firewall when I installed RedHat. I have not defined ipchains or iptables. I have never used.:cry:

Machinegun 01-26-2003 09:46 AM

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.

inge_ninge 01-26-2003 10:34 AM

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.

Darin 01-26-2003 10:52 AM

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.

Machinegun 01-26-2003 11:56 AM

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.

Darin 01-26-2003 12:48 PM

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.

inge_ninge 01-26-2003 02:45 PM

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/


All times are GMT -5. The time now is 11:42 PM.