Linux - NetworkingThis forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Introduction to Linux - A Hands on Guide
This guide was created as an overview of the Linux Operating System, geared toward new users as an exploration tour and getting started guide, with exercises at the end of each chapter.
For more advanced trainees it can be a desktop reference, and a collection of the base knowledge needed to proceed with system and network administration. This book contains many real life examples derived from the author's experience as a Linux system and network administrator, trainer and consultant. They hope these examples will help you to get a better understanding of the Linux system and that you feel encouraged to try out things on your own.
Click Here to receive this Complete Guide absolutely free.
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:
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
RX bytes:0 (0.0 b) TX bytes:0 (0.0 b)
Interrupt:9 Base address:0x1800
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.
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.
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.
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.
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.comwww.tldp.org or www.samba.org that will help you set it up in 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.
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.
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/