Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.user > #187143 > unrolled thread

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

Started byRick Thomas <rbthomas@pobox.com>
First post2017-09-24 06:00 +0200
Last post2017-09-27 01:10 +0200
Articles 15 — 6 participants

Back to article view | Back to linux.debian.user


Contents

  in /etc/network/interfaces:  "auto" vs "allow-hotplug" Rick Thomas <rbthomas@pobox.com> - 2017-09-24 06:00 +0200
    Re: in /etc/network/interfaces:  "auto" vs "allow-hotplug" Henrique de Moraes Holschuh <hmh@debian.org> - 2017-09-24 15:30 +0200
      Re: in /etc/network/interfaces:  "auto" vs "allow-hotplug" Rick Thomas <rbthomas@pobox.com> - 2017-09-25 11:20 +0200
    Re: in /etc/network/interfaces:  "auto" vs "allow-hotplug" Greg Wooledge <wooledg@eeg.ccf.org> - 2017-09-25 15:10 +0200
      Re: in /etc/network/interfaces:  "auto" vs "allow-hotplug" Greg Wooledge <wooledg@eeg.ccf.org> - 2017-09-25 17:50 +0200
        Re: in /etc/network/interfaces:  "auto" vs "allow-hotplug" Gene Heskett <gheskett@shentel.net> - 2017-09-25 18:10 +0200
          Re: in /etc/network/interfaces: "auto" vs "allow-hotplug" Pascal Hambourg <pascal@plouf.fr.eu.org> - 2017-09-25 19:30 +0200
      Re: in /etc/network/interfaces:  "auto" vs "allow-hotplug" Gene Heskett <gheskett@shentel.net> - 2017-09-25 17:50 +0200
    Re: in /etc/network/interfaces: "auto" vs "allow-hotplug" Jimmy Johnson <field.engineer@gmail.com> - 2017-09-25 19:30 +0200
      Re: in /etc/network/interfaces: "auto" vs "allow-hotplug" Rick Thomas <rbthomas@pobox.com> - 2017-09-26 11:40 +0200
        Re: in /etc/network/interfaces: "auto" vs "allow-hotplug" Pascal Hambourg <pascal@plouf.fr.eu.org> - 2017-09-26 14:00 +0200
        Re: in /etc/network/interfaces: "auto" vs "allow-hotplug" Greg Wooledge <wooledg@eeg.ccf.org> - 2017-09-26 15:30 +0200
          Re: in /etc/network/interfaces: "auto" vs "allow-hotplug" Gene Heskett <gheskett@shentel.net> - 2017-09-26 17:30 +0200
          Re: in /etc/network/interfaces: "auto" vs "allow-hotplug" Rick Thomas <rbthomas@pobox.com> - 2017-09-26 23:30 +0200
            Re: in /etc/network/interfaces: "auto" vs "allow-hotplug" Jimmy Johnson <field.engineer@gmail.com> - 2017-09-27 01:10 +0200

#187143 — in /etc/network/interfaces: "auto" vs "allow-hotplug"

FromRick Thomas <rbthomas@pobox.com>
Date2017-09-24 06:00 +0200
Subjectin /etc/network/interfaces: "auto" vs "allow-hotplug"
Message-ID<ut6ff-3Eq-1@gated-at.bofh.it>
I have two machines (out of a group of ten) that will not bring up their ethernet interface at boot time if the interfaces is of type “allow-hotplug”.  When I change that to “auto” the interface comes up at boot with no problem…

The remaining eight machines have no problem with allow-hotplug. (which is the default as setup by the d-i)

It does not seem to correlate to kernel version.  The two “auto” machines are running 4.12 and 4.9;  The “allow-hotplug” machines are running anything between 3.16 and 4.12.

Nor does it seem to correlate with static vs dhcp.  The two “auto” machines are both using dhcp.  The “allow-hotplug” machines are using a mixture of static and dhcp.

Anybody have a clue as to what’s going on?

Thanks in advance…
Rick

[toc] | [next] | [standalone]


#187152

FromHenrique de Moraes Holschuh <hmh@debian.org>
Date2017-09-24 15:30 +0200
Message-ID<utf8S-N4-17@gated-at.bofh.it>
In reply to#187143
On Sat, 23 Sep 2017, Rick Thomas wrote:
> I have two machines (out of a group of ten) that will not bring up
> their ethernet interface at boot time if the interfaces is of type
> “allow-hotplug”.  When I change that to “auto” the interface comes up
> at boot with no problem…

...

> Anybody have a clue as to what’s going on?

auto:            try to ip link set <dev> up  at boot.  Best choice for
                 anything PCIe/SoC.

allow-hotplug:   *wait* for kernel+drivers+udev to detect the device,
                 then ip link set <dev> up it.  The only thing that can
                 deal with annoying USB, SDIO, etc.

This can be kinda important when non-auto-loading stuff is involved, or
when network file systems are involved.

So, look at what *exact* kind of network device you're dealing with.

-- 
  Henrique Holschuh

[toc] | [prev] | [next] | [standalone]


#187174

FromRick Thomas <rbthomas@pobox.com>
Date2017-09-25 11:20 +0200
Message-ID<utxIu-4nC-25@gated-at.bofh.it>
In reply to#187152
On Sep 24, 2017, at 6:24 AM, Henrique de Moraes Holschuh <hmh@debian.org> wrote:

> On Sat, 23 Sep 2017, Rick Thomas wrote:
>> I have two machines (out of a group of ten) that will not bring up
>> their ethernet interface at boot time if the interfaces is of type
>> “allow-hotplug”.  When I change that to “auto” the interface comes up
>> at boot with no problem…
> 
> ...
> 
>> Anybody have a clue as to what’s going on?
> 
> auto:            try to ip link set <dev> up  at boot.  Best choice for
>                 anything PCIe/SoC.
> 
> allow-hotplug:   *wait* for kernel+drivers+udev to detect the device,
>                 then ip link set <dev> up it.  The only thing that can
>                 deal with annoying USB, SDIO, etc.
> 
> This can be kinda important when non-auto-loading stuff is involved, or
> when network file systems are involved.
> 
> So, look at what *exact* kind of network device you're dealing with.
> 
> -- 
>  Henrique Holschuh

Thanks, Henrique. That helps somewhat…
In both cases, the ethernet interface is on the motherboard, which (I guess) means they are PCI.

One is an Apple PowerMac G5. lspci says:
    0002:20:0f.0 Ethernet controller: Apple Inc. UniNorth 2 GMAC (Sun GEM)

The other is a Toshiba Satellite laptop.  lspci says:
    02:00.0 Network controller: Qualcomm Atheros AR9285 Wireless Network Adapter (PCI-Express) (rev 01)
    08:00.0 Ethernet controller: Qualcomm Atheros AR8152 v1.1 Fast Ethernet (rev c1)
The interface in question is the Fast Ethernet, not the Wireless (which is unused)

Since “allow-hotplug” seems to work OK most of the time, even for PCI/PCIe/SoC, and “auto” doesn’t work at all for USB, I guess that’s why the installer uses “allow-hotplug” by default.  Or maybe they just chose the first thing that seemed to work long ago and have not seen any reason to change it?

I’ve only started seeing this since Stretch (though I may have seen it once or twice in late revs of Jessie).  Do you have any idea what may have changed in that timeframe?

Another semi-correlation that may be relevant:  The two that require “auto” both have new-style network interface names.  One of the “allow-hotplug” machines also has a new-style name, but all the rest have old-style “eth#” names.

If it really is true that for PCI/PCIe/SOC interfaces, the best choice is “auto”:  Is there some way the installer could know the difference and do the “right thing” in all cases?

Thoughts?
Rick

[toc] | [prev] | [next] | [standalone]


#187176

FromGreg Wooledge <wooledg@eeg.ccf.org>
Date2017-09-25 15:10 +0200
Message-ID<utBj4-6Ms-21@gated-at.bofh.it>
In reply to#187143
On Sat, Sep 23, 2017 at 08:56:49PM -0700, Rick Thomas wrote:
> I have two machines (out of a group of ten) that will not bring up their ethernet interface at boot time if the interfaces is of type “allow-hotplug”.  When I change that to “auto” the interface comes up at boot with no problem…
> 
> The remaining eight machines have no problem with allow-hotplug. (which is the default as setup by the d-i)

The basic difference is the order in which services get loaded at
boot time, and whether the services wait for something, or just go.

An interface marked "auto" will be waited-for by services that are
configured to wait for interfaces to be up.  E.g. mounting NFS file
systems, or starting an NFS server.

An interface marked "allow-hotplug" is considered nonessential or
transient, and the core OS services won't wait for it before starting.

[toc] | [prev] | [next] | [standalone]


#187184

FromGreg Wooledge <wooledg@eeg.ccf.org>
Date2017-09-25 17:50 +0200
Message-ID<utDNT-8jd-1@gated-at.bofh.it>
In reply to#187176
On Mon, Sep 25, 2017 at 11:40:12AM -0400, Gene Heskett wrote:
> On Monday 25 September 2017 09:00:51 Greg Wooledge wrote:
> > An interface marked "auto" will be waited-for by services that are
> > configured to wait for interfaces to be up.  E.g. mounting NFS file
> > systems, or starting an NFS server.
> >
> > An interface marked "allow-hotplug" is considered nonessential or
> > transient, and the core OS services won't wait for it before starting.
> 
> Thank you Greg. Its not possible to check that because a new minimal 
> stretch install for an arm64 has no man command.  If the man page can be 
> found, zmore can read it but thats such an eyeball assault you lose 
> track of what it was you wanted to check.

It's not in the man pages anyway.  It's the sort of thing you either
find out the hard way, or because someone tells you.

Also, there's http://manpages.debian.org/interfaces

In fact, the man page outright *lies* and says they're synonyms.  Didn't
notice that until just now.

[toc] | [prev] | [next] | [standalone]


#187186

FromGene Heskett <gheskett@shentel.net>
Date2017-09-25 18:10 +0200
Message-ID<utE7g-fi-19@gated-at.bofh.it>
In reply to#187184
On Monday 25 September 2017 11:47:36 Greg Wooledge wrote:

> On Mon, Sep 25, 2017 at 11:40:12AM -0400, Gene Heskett wrote:
> > On Monday 25 September 2017 09:00:51 Greg Wooledge wrote:
> > > An interface marked "auto" will be waited-for by services that are
> > > configured to wait for interfaces to be up.  E.g. mounting NFS
> > > file systems, or starting an NFS server.
> > >
> > > An interface marked "allow-hotplug" is considered nonessential or
> > > transient, and the core OS services won't wait for it before
> > > starting.
> >
> > Thank you Greg. Its not possible to check that because a new minimal
> > stretch install for an arm64 has no man command.  If the man page
> > can be found, zmore can read it but thats such an eyeball assault
> > you lose track of what it was you wanted to check.
>
> It's not in the man pages anyway.  It's the sort of thing you either
> find out the hard way, or because someone tells you.
>
> Also, there's http://manpages.debian.org/interfaces
>
> In fact, the man page outright *lies* and says they're synonyms. 

No way in hell I'd call them that.

> Didn't notice that until just now.

Do I smell a manpage update for stretch? This is stuff that truly NEEDS 
to be in the manpages instead of pestering all the forums and IRC lists 
on the planet and still not getting a meaningful answer that works 
because everyone is looking at the same, and WRONG manpage.

We scooped that stuff up out of the trench behind the bovines in the 
cowbarn, daily. Or did 78 years ago when I was a child on an Iowa, USA 
farm.

Thanks again Greg.

Cheers, Gene Heskett
-- 
"There are four boxes to be used in defense of liberty:
 soap, ballot, jury, and ammo. Please use in that order."
-Ed Howdershelt (Author)
Genes Web page <http://geneslinuxbox.net:6309/gene>

[toc] | [prev] | [next] | [standalone]


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

FromPascal Hambourg <pascal@plouf.fr.eu.org>
Date2017-09-25 19:30 +0200
SubjectRe: in /etc/network/interfaces: "auto" vs "allow-hotplug"
Message-ID<utFmG-11y-15@gated-at.bofh.it>
In reply to#187186
Le 25/09/2017 à 18:00, Gene Heskett a écrit :
>>
>> Also, there's http://manpages.debian.org/interfaces
>>
>> In fact, the man page outright *lies* and says they're synonyms.

No it doesn't. It says that "allow-auto" (not "allow-hotplug") and 
"auto" are synonyms, which is correct AFAICS.

[toc] | [prev] | [next] | [standalone]


#187185

FromGene Heskett <gheskett@shentel.net>
Date2017-09-25 17:50 +0200
Message-ID<utDNT-8jd-3@gated-at.bofh.it>
In reply to#187176
On Monday 25 September 2017 09:00:51 Greg Wooledge wrote:

> On Sat, Sep 23, 2017 at 08:56:49PM -0700, Rick Thomas wrote:
> > I have two machines (out of a group of ten) that will not bring up
> > their ethernet interface at boot time if the interfaces is of type
> > “allow-hotplug”.  When I change that to “auto” the interface comes
> > up at boot with no problem…
> >
> > The remaining eight machines have no problem with allow-hotplug.
> > (which is the default as setup by the d-i)
>
> The basic difference is the order in which services get loaded at
> boot time, and whether the services wait for something, or just go.
>
> An interface marked "auto" will be waited-for by services that are
> configured to wait for interfaces to be up.  E.g. mounting NFS file
> systems, or starting an NFS server.
>
> An interface marked "allow-hotplug" is considered nonessential or
> transient, and the core OS services won't wait for it before starting.

Thank you Greg. Its not possible to check that because a new minimal 
stretch install for an arm64 has no man command.  If the man page can be 
found, zmore can read it but thats such an eyeball assault you lose 
track of what it was you wanted to check.

Cheers, Gene Heskett
-- 
"There are four boxes to be used in defense of liberty:
 soap, ballot, jury, and ammo. Please use in that order."
-Ed Howdershelt (Author)
Genes Web page <http://geneslinuxbox.net:6309/gene>

[toc] | [prev] | [next] | [standalone]


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

FromJimmy Johnson <field.engineer@gmail.com>
Date2017-09-25 19:30 +0200
SubjectRe: in /etc/network/interfaces: "auto" vs "allow-hotplug"
Message-ID<utFmF-11y-1@gated-at.bofh.it>
In reply to#187143
On 09/23/2017 08:56 PM, Rick Thomas wrote:
> I have two machines (out of a group of ten) that will not bring up their ethernet interface at boot time if the interfaces is of type �allow-hotplug�.  When I change that to �auto� the interface comes up at boot with no problem�
> 
> The remaining eight machines have no problem with allow-hotplug. (which is the default as setup by the d-i)
> 
> It does not seem to correlate to kernel version.  The two �auto� machines are running 4.12 and 4.9;  The �allow-hotplug� machines are running anything between 3.16 and 4.12.
> 
> Nor does it seem to correlate with static vs dhcp.  The two �auto� machines are both using dhcp.  The �allow-hotplug� machines are using a mixture of static and dhcp.
> 
> Anybody have a clue as to what�s going on?
> 
> Thanks in advance�
> Rick

Hi, Rick

As you have pointed out, things have changed, have you ran #ifconfig -a
to get the name of your device? I'm thinking the name you are using is 
not the same name the system is using and why hotplug is not working?
-- 
Jimmy Johnson

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

[toc] | [prev] | [next] | [standalone]


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

FromRick Thomas <rbthomas@pobox.com>
Date2017-09-26 11:40 +0200
SubjectRe: in /etc/network/interfaces: "auto" vs "allow-hotplug"
Message-ID<utUvo-2W9-35@gated-at.bofh.it>
In reply to#187191
> On Sep 25, 2017, at 10:25 AM, Jimmy Johnson <field.engineer@gmail.com> wrote:
> 
> On 09/23/2017 08:56 PM, Rick Thomas wrote:
>> I have two machines (out of a group of ten) that will not bring up their ethernet interface at boot time if the interfaces is of type �allow-hotplug�.  When I change that to �auto� the interface comes up at boot with no problem�
>> The remaining eight machines have no problem with allow-hotplug. (which is the default as setup by the d-i)
>> It does not seem to correlate to kernel version.  The two �auto� machines are running 4.12 and 4.9;  The �allow-hotplug� machines are running anything between 3.16 and 4.12.
>> Nor does it seem to correlate with static vs dhcp.  The two �auto� machines are both using dhcp.  The �allow-hotplug� machines are using a mixture of static and dhcp.
>> Anybody have a clue as to what�s going on?
>> Thanks in advance�
>> Rick
> 
> Hi, Rick
> 
> As you have pointed out, things have changed, have you ran #ifconfig -a
> to get the name of your device? I'm thinking the name you are using is not the same name the system is using and why hotplug is not working?

OK:

root@macpro:~# ifconfig -a
enP1p3s15f0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
        inet 192.168.1.148  netmask 255.255.240.0  broadcast 192.168.15.255
        inet6 fe80::211:24ff:fe38:1048  prefixlen 64  scopeid 0x20<link>
        ether 00:11:24:38:10:48  txqueuelen 1000  (Ethernet)
        RX packets 4450  bytes 4876801 (4.6 MiB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 2649  bytes 246222 (240.4 KiB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

lo: flags=73<UP,LOOPBACK,RUNNING>  mtu 65536
        inet 127.0.0.1  netmask 255.0.0.0
        inet6 ::1  prefixlen 128  scopeid 0x10<host>
        loop  txqueuelen 1000  (Local Loopback)
        RX packets 0  bytes 0 (0.0 B)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 0  bytes 0 (0.0 B)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

So the interface name is “enP1p3s15f0"
I haven’t done anything to change the name from the original one assigned by the installer.

Here’s what’s in /e/n/interfaces:
root@macpro:~# cat /etc/network/interfaces
# 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
auto enP1p3s15f0
iface enP1p3s15f0 net dhcp

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
11c11
< allow-hotplug enP1p3s15f0
---
> auto enP1p3s15f0

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

> -- 
> Jimmy Johnson

Rick
Linux user since 1987

[toc] | [prev] | [next] | [standalone]


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

FromPascal Hambourg <pascal@plouf.fr.eu.org>
Date2017-09-26 14:00 +0200
SubjectRe: in /etc/network/interfaces: "auto" vs "allow-hotplug"
Message-ID<utWGS-4jM-21@gated-at.bofh.it>
In reply to#187230
Le 26/09/2017 à 11:38, Rick Thomas a écrit :
> 
> # The primary network interface
> auto enP1p3s15f0
> iface enP1p3s15f0 net dhcp
                     ^^^
It should be "inet". Typo in your post or in the actual file ?

[toc] | [prev] | [next] | [standalone]


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

FromGreg Wooledge <wooledg@eeg.ccf.org>
Date2017-09-26 15:30 +0200
SubjectRe: in /etc/network/interfaces: "auto" vs "allow-hotplug"
Message-ID<utY5Y-5jU-27@gated-at.bofh.it>
In reply to#187230
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".

> 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
> 11c11
> < 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.

[toc] | [prev] | [next] | [standalone]


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

FromGene Heskett <gheskett@shentel.net>
Date2017-09-26 17:30 +0200
SubjectRe: in /etc/network/interfaces: "auto" vs "allow-hotplug"
Message-ID<utZY5-6wo-3@gated-at.bofh.it>
In reply to#187245
On Tuesday 26 September 2017 09:21:47 Greg Wooledge 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".
>
No Greg, the word "net" s/b "inet".

> > 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 11c11
> > < 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.


Cheers, Gene Heskett
-- 
"There are four boxes to be used in defense of liberty:
 soap, ballot, jury, and ammo. Please use in that order."
-Ed Howdershelt (Author)
Genes Web page <http://geneslinuxbox.net:6309/gene>

[toc] | [prev] | [next] | [standalone]


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

FromRick Thomas <rbthomas@pobox.com>
Date2017-09-26 23:30 +0200
SubjectRe: in /etc/network/interfaces: "auto" vs "allow-hotplug"
Message-ID<uu5Au-1Es-9@gated-at.bofh.it>
In reply to#187245
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
>> 11c11
>> < 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.)

Rick

[toc] | [prev] | [next] | [standalone]


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

FromJimmy Johnson <field.engineer@gmail.com>
Date2017-09-27 01:10 +0200
SubjectRe: in /etc/network/interfaces: "auto" vs "allow-hotplug"
Message-ID<uu79f-2IR-1@gated-at.bofh.it>
In reply to#187287
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
>>> 11c11
>>> < 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.)
> 
> Rick


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

[toc] | [prev] | [standalone]


Back to top | Article view | linux.debian.user


csiph-web