D&C GLug - Home Page

[ Date Index ] [ Thread Index ] [ <= Previous by date / thread ] [ Next by date / thread => ]

Re: [LUG] Changing User ID.

 

On 08/05/17 16:20, mr meowski wrote:
On 08/05/17 15:29, Julian Hall wrote:

I'm confused why eth0 isn't listed.. is that due to the method I used to
set it up?

This is the content of my current /etc/network/interfaces
Ah ha, now we approach the heart of the matter. Mint has really done a
number on you during an upgrade as it transitions towards a fully
systemd managed init. Mint is particularly bad at handling the
transition gracefully unfortunately so you now have a system with some
remnants of the old init system coexisting entirely inharmoniously with
systemd which *really* wants to take over everything itself. No wonder
stuff has been going wrong.

You are correct that your /etc/network/interfaces file is being
completely ignored by the system at the moment, which is to be expected:
you'd have to specifically disable certain system services (remnants of
old init) *and* whichever systemd unitfiles are currently handling the
network before Cerce will fall back to the most basic configuration of
honouring the static configuration file. You could modify the interfaces
file now but without disabling these conflicting services not only will
it fail, but you'll quite probably end up with multiple network configs
and IPs simultaneously!

Great explanation.. thanks!
The enp*s* naming convention is standard now I'm afraid - without manual
intervention, Linux has been renaming network interfaces from the old
ethX convention for literally years. Check to see what Cerce is doing
with your network names with:

dmesg | egrep "eth|enp0"
julian@Cerce ~ $ dmesg | egrep "eth|enp0"
[ÂÂÂ 1.379456] forcedeth: Reverse Engineered nForce ethernet driver. Version 0.64.
[ÂÂÂ 1.447042] forcedeth 0000:00:0a.0: ifname eth0, PHY OUI 0x732 @ 3, addr 00:19:66:f7:4b:1c
[ÂÂÂ 1.447048] forcedeth 0000:00:0a.0: highdma csum pwrctl mgmt gbit lnktim msi desc-v3
[ÂÂÂ 1.447872] forcedeth 0000:00:0a.0 enp0s10: renamed from eth0
[ÂÂÂ 7.182965] IPv6: ADDRCONF(NETDEV_UP): enp0s10: link is not ready
[ÂÂÂ 7.183792] forcedeth 0000:00:0a.0 enp0s10: MSI enabled
[ÂÂÂ 7.184063] forcedeth 0000:00:0a.0 enp0s10: no link during initialization
[ÂÂÂ 7.184403] IPv6: ADDRCONF(NETDEV_UP): enp0s10: link is not ready
[ÂÂ 25.207358] forcedeth 0000:00:0a.0 enp0s10: link up
[ÂÂ 25.207843] IPv6: ADDRCONF(NETDEV_CHANGE): enp0s10: link becomes ready
julian@Cerce ~ $
And whilst we're at it, let's have a look at things from the systemd
side, which is where ultimately we're going to have to end up doing the
config anyway:

systemctl status network*
julian@Cerce ~ $ systemctl status network*
â network.target - Network
ÂÂ Loaded: loaded (/lib/systemd/system/network.target; static; vendor preset: en
ÂÂ Active: active since Mon 2017-05-08 14:41:21 BST; 3h 15min ago
ÂÂÂÂ Docs: man:systemd.special(7)
http://www.freedesktop.org/wiki/Software/systemd/NetworkTarget

May 08 14:41:21 Cerce systemd[1]: Reached target Network.

â networking.service - Raise network interfaces
ÂÂ Loaded: loaded (/lib/systemd/system/networking.service; enabled; vendor prese
 Drop-In: /run/systemd/generator/networking.service.d
ÂÂÂÂÂÂÂÂÂÂ ââ50-insserv.conf-$network.conf
ÂÂ Active: active (exited) since Mon 2017-05-08 14:41:21 BST; 3h 15min ago
ÂÂÂÂ Docs: man:interfaces(5)
 Process: 870 ExecStart=/sbin/ifup -a --read-environment (code=exited, status=0
 Process: 843 ExecStartPre=/bin/sh -c [ "$CONFIGURE_INTERFACES" != "no" ] && [
ÂMain PID: 870 (code=exited, status=0/SUCCESS)
ÂÂ CGroup: /system.slice/networking.service

May 08 14:41:21 Cerce systemd[1]: Starting Raise network interfaces...
May 08 14:41:21 Cerce systemd[1]: Started Raise network interfaces.

â network-pre.target - Network (Pre)
lines 1-23...skipping...
â network.target - Network
ÂÂ Loaded: loaded (/lib/systemd/system/network.target; static; vendor preset: enabled)
ÂÂ Active: active since Mon 2017-05-08 14:41:21 BST; 3h 15min ago
ÂÂÂÂ Docs: man:systemd.special(7)
http://www.freedesktop.org/wiki/Software/systemd/NetworkTarget

May 08 14:41:21 Cerce systemd[1]: Reached target Network.

â networking.service - Raise network interfaces
ÂÂ Loaded: loaded (/lib/systemd/system/networking.service; enabled; vendor preset: enabled)
 Drop-In: /run/systemd/generator/networking.service.d
ÂÂÂÂÂÂÂÂÂÂ ââ50-insserv.conf-$network.conf
ÂÂ Active: active (exited) since Mon 2017-05-08 14:41:21 BST; 3h 15min ago
ÂÂÂÂ Docs: man:interfaces(5)
 Process: 870 ExecStart=/sbin/ifup -a --read-environment (code=exited, status=0/SUCCESS)
 Process: 843 ExecStartPre=/bin/sh -c [ "$CONFIGURE_INTERFACES" != "no" ] && [ -n "$(ifquery --read-environment --list --exclude=lo)" ] && udevadm settle (code=exited, status=1/FAILURE)
ÂMain PID: 870 (code=exited, status=0/SUCCESS)
ÂÂ CGroup: /system.slice/networking.service

May 08 14:41:21 Cerce systemd[1]: Starting Raise network interfaces...
May 08 14:41:21 Cerce systemd[1]: Started Raise network interfaces.

â network-pre.target - Network (Pre)
ÂÂ Loaded: loaded (/lib/systemd/system/network-pre.target; static; vendor preset: enabled)
ÂÂ Active: active since Mon 2017-05-08 14:41:21 BST; 3h 15min ago
ÂÂÂÂ Docs: man:systemd.special(7)
http://www.freedesktop.org/wiki/Software/systemd/NetworkTarget

May 08 14:41:21 Cerce systemd[1]: Reached target Network (Pre).


Julian
-- 
The Mailing List for the Devon & Cornwall LUG
https://mailman.dclug.org.uk/listinfo/list
FAQ: http://www.dcglug.org.uk/listfaq