Welcome, Guest. Please login or register.
Did you miss your activation email?

Author Topic: [EN] |Solved] systemd-networkd misconfigured: Network lost  (Read 9548 times)

Offline samoht

  • User
  • Posts: 478
[EN] |Solved] systemd-networkd misconfigured: Network lost
« on: 2015/06/29, 13:53:56 »
Following the recipes of the thread 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.
Code: [Select]
# ping 8.8.8.8

connect: Network is unreachable


Network service is active, but with a name conflict:

Code: [Select]
# 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


Code: [Select]
# less /etc/systemd/network/eth.network
[Match]
NAME=eth0

[Network]
DHCP=yes
/etc/systemd/network/eth.network (END)


Code: [Select]
# 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?


Code: [Select]
# 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
« Last Edit: 2015/06/30, 10:25:16 by samoht »

gabrielb

  • Guest
Re: systemd-networkd misconfigured: Network lost
« Reply #1 on: 2015/06/29, 14:14:19 »
If I'm not wrong, systemd configuration files are case sensitive.
Does

Code: [Select]
[Match]
Name=eth0
work?

Offline samoht

  • User
  • Posts: 478
Re: systemd-networkd misconfigured: Network lost
« Reply #2 on: 2015/06/29, 14:44:06 »
Thanks, Gabriel, for your quick reply.
Indeed, the "name error" vanished, you were right  :) .
Unfortunately network still unreachable, configuration error remaining  :'(
Greetings
Tom

Offline der_bud

  • User
  • Posts: 1.072
  • member
Re: systemd-networkd misconfigured: Network lost
« Reply #3 on: 2015/06/29, 15:52:31 »
Please try for DHCP= either 'ipv4' or 'both' and see if that changes something.
Du lachst? Wieso lachst du? Das ist doch oft so, Leute lachen erst und dann sind sie tot.

Offline samoht

  • User
  • Posts: 478
Re: systemd-networkd misconfigured: Network lost
« Reply #4 on: 2015/06/29, 17:15:13 »
der_bud, thanks for help.
Unfortunately, no success  :(
Greetings
Tom

Offline bluelupo

  • User
  • Posts: 2.068
    • BluelupoMe
Re: systemd-networkd misconfigured: Network lost
« Reply #5 on: 2015/06/29, 17:51:58 »
Hi samoht,

did you disable networking.service and/or NetworkManager.service? These services do not need any more your system with the networkd runs.

Offline samoht

  • User
  • Posts: 478
Re: systemd-networkd misconfigured: Network lost
« Reply #6 on: 2015/06/30, 10:21:53 »
Yesterday after d-u had delivered a fresh systemd

Code: [Select]
# 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  :) .

Code: [Select]
# 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.

Code: [Select]
# less /etc/systemd/network/eth.network
[Match]
Name=eth0

[Network]
DHCP=yes
# DHCP=ipv4
# DHCP=ipv6
# DHCP=both

Thanks to all supporters

Greetings
Tom