ethernet woes

I've installed debian on a small PC to run a couple of servers, however I am having terrible trouble with the ethernet.

Sometimes it works, most of the time it doesn't. I have not yet been able to find any reasons for the differences in these scenarios.

It set up to obtain an address from a dhcp server. Unfortunately it fails this.

I won't put the output from "sudo ifup eth0" here, (i would, but since I can't copy it over the network...)

it does however report, amongst it's numerous "DHCPDISCOVER"s:
receive_packet failed on eth0: Network is down

If i run the same command at the same time on my laptop, it configures correctly, and does not report "network is down"

Can anyone give me some guidance on how to troubleshoot this?
It is either going to be the configuration (hopefully), the dhcp server (which isn't the most cooperative thing to deal with) or the hardware. I certainly hope it's not the hardware, since the card is built into the motherboard, and no pci slots.

Cheers, James
-----
oh, my /etc/network/interfaces is:
(ignoring the comments)
--
auto lo
iface lo inet loopback

allow-hotplug eth0
iface eth0 inet dhcp
--

No votes yet

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.

allow-hotplug or auto

I just write this because I can't shout up, but I suppose pinniped give you a better ansver later.

I have always had problems with the default configuration "allow-hotplug eth0" and always changed it to "auto eth0". The difference is when eth0 should be started. And I had read a deeper discussion about their pros and cons but have forgot where.

From the interfaces manual I copy this:
Lines beginning with the word "auto" are used to identify the physical interfaces to be brought up when ifup is run with the -a option. (This option is used by the system boot scripts.) Physical interface names should follow the word "auto" on the same line. There can be multiple "auto" stanzas. ifup brings the named interfaces up in the order listed.

Lines beginning with "allow-" are used to identify interfaces that should be brought up automatically by various subsytems. This may be done using a command such as "ifup --allow=hotplug eth0 eth1", which will only bring up eth0 or eth1 if it is listed in an "allow-hotplug" line. Note that "allow-auto" and "auto" are synonyms.

Re: ethernet woes

Hey there!
Just wanted to say i have same problems, and i 'think' the problem is not in the hardware.
Did you manage to fix those annoying problems?? I've been trying to setup the network to run smoothly for a long time now, but no success.
Please report if you find out something useful.

I have other problems too! Mostly with port opening.

Cheers,
Tvrtko.

Syndicate content