Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game. |
Notices |
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.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
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.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
|
01-25-2003, 05:03 PM
|
#1
|
Member
Registered: Jan 2003
Posts: 56
Rep:
|
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)
|
|
|
01-25-2003, 06:05 PM
|
#2
|
Moderator
Registered: Aug 2002
Posts: 26,640
|
Yes it appears that your ethernet card is work correctly. We need a little more information.
What are you trying to network to?
|
|
|
01-25-2003, 09:29 PM
|
#3
|
Member
Registered: Apr 2002
Location: Bronx, NY
Distribution: Ubuntu
Posts: 371
Rep:
|
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.
|
|
|
01-26-2003, 06:05 AM
|
#4
|
Member
Registered: Jan 2003
Posts: 56
Original Poster
Rep:
|
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)
|
|
|
01-26-2003, 06:07 AM
|
#5
|
Moderator
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417
|
where do you get this "unrecheable host" message? what are you DOING with these connections?
|
|
|
01-26-2003, 06:13 AM
|
#6
|
Member
Registered: Jan 2003
Posts: 56
Original Poster
Rep:
|
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
|
|
|
01-26-2003, 08:41 AM
|
#7
|
LQ Newbie
Registered: Jan 2003
Posts: 7
Rep:
|
Did you define any firewallrules? Did you install ipchains or iptables? I think ipchains disables everything by default, dosn't it?
|
|
|
01-26-2003, 08:48 AM
|
#8
|
Senior Member
Registered: Jan 2003
Location: Portland, OR USA
Distribution: Slackware, SLAX, Gentoo, RH/Fedora
Posts: 1,024
Rep:
|
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)
|
|
|
01-26-2003, 08:54 AM
|
#9
|
Member
Registered: Jan 2003
Posts: 56
Original Poster
Rep:
|
I have no firewall installed. I disabled firewall when I installed RedHat. I have not defined ipchains or iptables. I have never used. 
|
|
|
01-26-2003, 09:46 AM
|
#10
|
Member
Registered: Jan 2003
Posts: 56
Original Poster
Rep:
|
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.
|
|
|
01-26-2003, 10:34 AM
|
#11
|
LQ Newbie
Registered: Jan 2003
Posts: 7
Rep:
|
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.
|
|
|
01-26-2003, 10:52 AM
|
#12
|
Senior Member
Registered: Jan 2003
Location: Portland, OR USA
Distribution: Slackware, SLAX, Gentoo, RH/Fedora
Posts: 1,024
Rep:
|
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.
|
|
|
01-26-2003, 11:56 AM
|
#13
|
Member
Registered: Jan 2003
Posts: 56
Original Poster
Rep:
|
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.
|
|
|
01-26-2003, 12:48 PM
|
#14
|
Senior Member
Registered: Jan 2003
Location: Portland, OR USA
Distribution: Slackware, SLAX, Gentoo, RH/Fedora
Posts: 1,024
Rep:
|
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.
|
|
|
01-26-2003, 02:45 PM
|
#15
|
LQ Newbie
Registered: Jan 2003
Posts: 7
Rep:
|
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 07:40 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|