On Sun, 29 Feb 2004 11:49:17 +0100, Timothy Truckle
<(E-Mail Removed)> wrote:
>Did you check the LED's on the NIC?
>Did you try another port on your switch?
Yes I did, I double checked everything. But when I replaced ethernet
card in linux box everything was working perfectly so the problem is
not in cable/switch.
>> "eth0: Unknown host" What does that mean?
>Usually this message means, that the hostname "eth0" could not be
>resolved by your DNS. But that may not a problem of your DNS
>because "eth0" most likly not a computername.
>I guess there is any software (maybe a script) on your Linux-box
>that wrongly tries to access "eth0" as computer name.
>
>Try a 'grep eth0 /etc/* -R' and look into the files reported to
>check, if the occurence of "eth0" is in the right context.
I ran grep on my etc folder and string "eth0" showed up in many files
there. However, file /etc/network/interfaces was most suspicious
becouse it is used by ifup/ifdown so I checked it out. This is how it
looked like:
--------------------------------------------------------------------------
auto lo eth0
iface lo inet loopback
iface eth0 inet static
address 192.168.1.2
netmask 255.255.255.0
gateway
--------------------------------------------------------------------------
I also found an older version named interfaces.pre-etherconf so I
opened it to see what's the difference, here is that old version:
---------------------------------------------------------------------------
# /etc/network/interfaces -- configuration file for ifup(8), ifdown(8)
# The loopback interface
auto lo
iface lo inet loopback
# The first network card - this entry was created during the Debian
installation
# (network, broadcast and gateway are optional)
auto eth0
iface eth0 inet static
address 192.168.0.1
netmask 255.255.255.0
network 192.168.0.0
broadcast 192.168.0.255
----------------------------------------------------------------------------
Analysing the last one I realised every network interface should begin
with a line like "auto <interfacename>" and then some lines defining
interface itself. So I modified the infertaces file and now it looks
like this:
-----------------------------------------------------------------------------
auto lo
iface lo inet loopback
auto eth0
iface eth0 inet static
address 192.168.1.2
netmask 255.255.255.0
network 192.168.1.0
broaadcast 192.168.1.255
-----------------------------------------------------------------------------
Everything works fine now, no more "eth0: Unknown host" messages on my
linux box! I even tried to put in my old ethernet card (just in case)
and it seems to be malfunctioning. I couldn't ping anything and then
several ICMP echos returned from remote machines but it was terrible
response time (> 1000 ms) and packet loss was more than 90%
I will take that old ethernet card to test it on one Windows machine,
but I don't think I'll ever put it back in my linux box.
Thank you very much for helping me and I hope you all don't mind I've
posted all this back on the group. I did it for all other people who
might be reading this and have similar problems.
Greetz from Croatia
Tomislav Knapic
|