You are not logged in.

#1 2014-06-05 07:46:33

raunz
Member
Registered: 2008-11-27
Posts: 36

[SOLVED] Update broke netctl (I guess?)

Hello

After the update of some packages my netctl profile doesn't work anymore.
The interfaces seem to be renamed (again) from before eth0 to ens3, back to eth0.

[2014-06-05 08:55] [PACMAN] upgraded linux (3.14.4-1 -> 3.14.5-1)
[2014-06-05 08:55] [PACMAN] upgraded linux-headers (3.14.4-1 -> 3.14.5-1)
[2014-06-05 08:55] [PACMAN] upgraded perl-html-parser (3.71-2 -> 3.71-3)
[2014-06-05 08:55] [PACMAN] upgraded postgresql-libs (9.3.4-1 -> 9.3.4-2)
[2014-06-05 08:55] [PACMAN] upgraded python2 (2.7.6-3 -> 2.7.7-1)
[2014-06-05 08:55] [PACMAN] upgraded python2-setuptools (3.6-1 -> 4.0.1-1)
[2014-06-05 08:55] [PACMAN] upgraded systemd (212-3 -> 213-5)
[2014-06-05 08:55] [PACMAN] upgraded systemd-sysvcompat (212-3 -> 213-5)

after 'netctl restart uplink' failed
'journalctl -xn' states:

Job sys-subsystem-net-devices-ens3.device/start timed out.
Jun 05 09:26:24 hostname systemd[1]: Timed out waiting for device sys-subsystem-net-devices-ens3.device.
-- Subject: Unit sys-subsystem-net-devices-ens3.device has failed
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- Unit sys-subsystem-net-devices-ens3.device has failed.
--
-- The result is timeout.
Jun 05 09:26:24 hostname systemd[1]: Dependency failed for netcup uplink ipv4/6.
-- Subject: Unit netctl@uplink.service has failed
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- Unit netctl@uplink.service has failed.
--
-- The result is dependency.

'ip addr' states

1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default
[...]
2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP group default qlen 1000
[...]

my netctl profile:

Description='netcup uplink ipv4/6'
Interface=eth0
#Interface=ens3 ### ... WHICH WORKED BEFORE
Connection=ethernet
IP=dhcp
IP6=static
Address6=('someipv6/64')
#Routes6=('someipv6')
#Gateway6=('someipv6')

I already tried the old and new interface-names in the profile, but neither worked.
Now I only can connect if I run dhcpcd, which doesn't work for IPv6.
Any ideas where the problem could be?

rgds

/edit
after looking around a bit I found that in /etc/systemd/system there is a file called 'netctl@uplink.service' with this content:

.include /usr/lib/systemd/system/netctl@.service

[Unit]
Description=netcup uplink ipv4/6
BindsTo=sys-subsystem-net-devices-ens3.device
After=sys-subsystem-net-devices-ens3.device

Changing the last to lines to the right interface name made it work again.

BindsTo=sys-subsystem-net-devices-eth0.device
After=sys-subsystem-net-devices-eth0.device

Don't know why systemd changed the name of my interface, but I'm anxious to know when it will do it again.
Works for now. So its kind of solved.

Last edited by raunz (2014-06-05 12:35:27)

Offline

Board footer

Powered by FluxBB