[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: no network connection



My goal is to have the debian-based system start up with Ethernet
enabled immediately (I would have thought that would be the standard
way it would boot up).  I don't want to have to log into my console
and click something to start up Ethernet.  My typical usage of
this system is to ssh into it from another machine, that won't
necessarily be local to my debian machine's console.  This all works
fine, except that I have to log into the console the first time after
bootup to enable ethernet through that icon I mentioned earlier.

I assumed that the ifup/ifdown stuff discussed in the "man interfaces"
was referring to some call to ifup that was being done during
system startup somewhere; hence, the reason for my reboot.

See what I mean?


Shachar Or wrote:
On Wednesday 20 August 2008 23:29, Ed Sutter wrote:
Thanks for the responses!

My /etc/network/interfaces file already has the following:
 > # The loopback network interface
 > auto lo
 > iface lo inet loopback
 >
 > # The primary network interface
 > allow-hotplug eth0
 > iface eth0 inet dhcp
 >
 > auto eth0

I commented out the "auto eth0" line and rebooted.

Don't reboot for network configuration...
No change.

What is the change you're looking for?

Then I put "auto eth0" back in and commented out "allow-hotplug eth0".
Same thing.

Any other thoughts?

Did you read the whole documentation and understand how the ifupdown thing works?

Also, 'man ifconfig' to see how to check the status of your interfaces.
Ed

Shachar Or wrote:
On Wednesday 20 August 2008 22:46, Sebastian Canagaratna wrote:
Ed Sutter wrote:
Hi,
I have Debian 4.0 on a machine now for 2 days.
Thanks to this list, my screen resolution problem is
resolved.  Next (and hopefully last) problem is that
each time I boot the system I have to manually enable
my network connection.  When Gnome starts up, I see in
the top of the screen a small ethernet cable icon with
a big NOT sign  (red circle with a slash
through it) over top of it.  I right-click on that and
a pull-down menu allows me to enable my wired network.
Then everything is fine.

How can I fix this so that the network just comes up automatically?
Couldn't find anything on this in the archives or in the GUI.

Thanks
Ed
Hi:
    You should have a files /etc/network/interfaces

which should have something like:

auto lo
iface lo inet loopback


allow-hotplug eth0

iface eth0 inet dhcp

auto eth0
There's no point in having both allow-hotplug and auto.

*****

try it with and without the auto eth0. I am assuming the eth0 is your
wired network: it may be eth1, or eth3 for you. I am also assuming you
are using dhcp.


man interfaces will give you more information.

Sebastian Canagaratna



Reply to: