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

Re: in /etc/network/interfaces: "auto" vs "allow-hotplug"

On 09/26/2017 02:24 PM, Rick Thomas wrote:

On Sep 26, 2017, at 6:21 AM, Greg Wooledge <wooledg@eeg.ccf.org> wrote:

On Tue, Sep 26, 2017 at 02:38:37AM -0700, Rick Thomas wrote:
# The primary network interface
auto enP1p3s15f0
iface enP1p3s15f0 net dhcp

As Pascal noted, the word before �dhcp" should be "inet".

That�s interesting!  I�m quite sure I did not put that there (i.e remove the �i� from �inet�.  It�s purely as it came from the installer.

And, given that the �i� is missing in both versions of the interfaces file, why does �auto� work and �allow-hotplug� not work?

I had to change �allow-hotplug� to �auto� to get it to come up on reboot:
root@macpro:~# diff /etc/network/interfaces.ORIG /etc/network/interfaces
< allow-hotplug enP1p3s15f0
auto enP1p3s15f0

Looks good.

If there�s some place that�s mistakenly expecting a name like �eth0�, where might it be located?

A locally created script (especially one that does firewall stuff),
or a third party package.

Pretty sure I don�t have any of those installed.  (Indeed, *quite* sure, since this is a test machine and it�s running an absolutely minimal �fresh from the box� debian installation � no add-ons at all.)


Have you tried running the system install disc in recovery mode, it will setup the internet or at lest it will try.

Below is my Stretch interfaces config.
# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).

source /etc/network/interfaces.d/*

# The loopback network interface
auto lo
iface lo inet loopback

# The primary network interface
allow-hotplug eno1
iface eno1 inet dhcp
# This is an autoconfigured IPv6 interface
iface eno1 inet6 auto

Good Luck,
Jimmy Johnson

Debian Stretch - KDE Plasma 5.8.6 - Intel i7-3540M - EXT4 at sda6
Registered Linux User #380263

Reply to: