You are not logged in.

#1 2015-09-17 18:47:39

marijus
Member
Registered: 2012-03-12
Posts: 20

[solved] systemd-networkd: static ip - network does not fire up

the content of my /etc/systemd/network/eth0.network is

[Match]
Name=eth0

[Network]
Address=192.168.0.10/24
Gateway=192.168.0.1

but the network does not fire up on boot.

if i manually execute

ip link set eth0 up

everything works fine...

this is hapening since systemd-219 onwards.

any help appreciated!

Last edited by marijus (2015-09-18 15:52:55)

Offline

#2 2015-09-17 18:48:44

Slithery
Administrator
From: Norfolk, UK
Registered: 2013-12-01
Posts: 5,776

Re: [solved] systemd-networkd: static ip - network does not fire up

Is the systemd-networkd service enabled?


No, it didn't "fix" anything. It just shifted the brokeness one space to the right. - jasonwryan
Closing -- for deletion; Banning -- for muppetry. - jasonwryan

aur - dotfiles

Offline

#3 2015-09-17 19:00:41

marijus
Member
Registered: 2012-03-12
Posts: 20

Re: [solved] systemd-networkd: static ip - network does not fire up

yes service is enabled and it works flawless with dhcp configured...

Offline

#4 2015-09-17 23:30:35

Head_on_a_Stick
Member
From: The Wirral
Registered: 2014-02-20
Posts: 8,778
Website

Re: [solved] systemd-networkd: static ip - network does not fire up

How are you handling DHCP?

Are you using systemd-resolved?

What is the output of:

networkctl list
networkctl status
ls -l /etc/systemd/system/multi-user.target.wants

Jin, Jîyan, Azadî

Offline

#5 2015-09-18 14:09:56

marijus
Member
Registered: 2012-03-12
Posts: 20

Re: [solved] systemd-networkd: static ip - network does not fire up

i am not using dhcp just tried it to see if it works with

[Match]
Name=eth0

[Network]
DHCP=ipv4

systemd-resolved is running

networkctl list

IDX LINK             TYPE               OPERATIONAL SETUP     
  1 lo               loopback           carrier     unmanaged 
  2 eth0             ether              routable    configured

2 links listed.

networkctl status

●      State: routable
     Address: xxx.xxx.xxx.xxx on eth0
              xxxx::xxxx:xxxx:xxxx:xxxx on eth0
     Gateway: xxx.xxx.xxx.xxx (some vendor) on eth0
         DNS: xxx.xxx.xxx.xxx

this is after running ip link set eth0 up
can't tell what the output would be before since it is an remote server connected via ssh

ls -l /etc/systemd/system/multi-user.target.wants

lists the enabled services...

Offline

#6 2015-09-18 15:51:57

marijus
Member
Registered: 2012-03-12
Posts: 20

Re: [solved] systemd-networkd: static ip - network does not fire up

Upon further investigation it seems to be an issue with an older kernel i use (linux-3.8) which seems not compatible with recent systemd...

Offline

Board footer

Powered by FluxBB