Following the recipes of the thread http://forum.siduction.org/index.php?topic=5580.0 (http://forum.siduction.org/index.php?topic=5580.0) I switched from ifupdown to systemd-networkd but, unfortunately, did not succeed.
That is, no more working (wired) internet connection.
# ping 8.8.8.8
connect: Network is unreachable
Network service is active, but with a name conflict:
# systemctl status systemd-networkd
● systemd-networkd.service - Network Service
Loaded: loaded (/lib/systemd/system/systemd-networkd.service; enabled; vendor preset: enabled)
Active: active (running) since Mo 2015-06-29 12:50:07 CEST; 17min ago
Docs: man:systemd-networkd.service
Main PID: 795 (systemd-network)
Status: "Processing requests..."
CGroup: /system.slice/systemd-networkd.service
└─795 /lib/systemd/systemd-networkd
Jun 29 12:50:07 tuxxy systemd[1]: Starting Network Service...
Jun 29 12:50:07 tuxxy systemd-networkd[795]: [/etc/systemd/network/eth.network:2] Unknown lvalue 'NAME' in section 'Match'
Jun 29 12:50:07 tuxxy systemd-networkd[795]: Enumeration completed
Jun 29 12:50:07 tuxxy systemd[1]: Started Network Service.
Jun 29 12:50:07 tuxxy systemd-networkd[795]: lo: Configured
Jun 29 12:50:09 tuxxy systemd-networkd[795]: eth0: Gained carrier
# less /etc/systemd/network/eth.network
[Match]
NAME=eth0
[Network]
DHCP=yes
/etc/systemd/network/eth.network (END)
# networkctl list
IDX LINK TYPE OPERATIONAL SETUP
1 lo loopback carrier configured
2 eth0 ether routable configuring
3 eth1 ether no-carrier configuring
eth0 not fully configured? But where?
# LANG=C ifconfig
eth0 Link encap:Ethernet HWaddr 00:24:1d:d8:be:f5
inet6 addr: fd00::224:1dff:fed8:bef5/64 Scope:Global
inet6 addr: fe80::224:1dff:fed8:bef5/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:753 errors:0 dropped:0 overruns:0 frame:0
TX packets:111 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:76605 (74.8 KiB) TX bytes:36309 (35.4 KiB)
eth1 Link encap:Ethernet HWaddr 00:e0:7d:9e:d8:8e
UP BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:65536 Metric:1
RX packets:330 errors:0 dropped:0 overruns:0 frame:0
TX packets:330 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:55617 (54.3 KiB) TX bytes:55617 (54.3 KiB)
Any hints appreciated.
I would like to give any additional info.
Greetings
Tom
If I'm not wrong, systemd configuration files are case sensitive.
Does
[Match]
Name=eth0
work?
Thanks, Gabriel, for your quick reply.
Indeed, the "name error" vanished, you were right :) .
Unfortunately network still unreachable, configuration error remaining :'(
Greetings
Tom
Please try for DHCP= either 'ipv4' or 'both' and see if that changes something.
der_bud, thanks for help.
Unfortunately, no success :(
Greetings
Tom
Hi samoht,
did you disable networking.service and/or NetworkManager.service? These services do not need any more your system with the networkd runs.
Yesterday after d-u had delivered a fresh systemd
# LANG=C apt-cache policy systemd
systemd:
Installed: 221-1
Candidate: 221-1
Version table:
*** 221-1 0
500 http://ftp.de.debian.org/debian/ unstable/main amd64 Packages
100 /var/lib/dpkg/status
220-7 0
500 http://ftp.de.debian.org/debian/ testing/main amd64 Packages
network worked again :) .
# networkctl list
IDX LINK TYPE OPERATIONAL SETUP
1 lo loopback carrier unmanaged
2 eth0 ether routable configured
3 eth1 ether off unmanaged
3 links listed.
# less /etc/systemd/network/eth.network
[Match]
Name=eth0
[Network]
DHCP=yes
# DHCP=ipv4
# DHCP=ipv6
# DHCP=both
Thanks to all supporters
Greetings
Tom