You are not logged in.

#1 2017-09-25 08:29:47

lapsio
Member
From: Warsaw
Registered: 2015-09-30
Posts: 50

[SOLVED] systemd-networkd derps with static IP

Hello I'm trying to set up Arch server but networking completely derps up to point of achieving mechanics I didn't know Linux is capable of.

So at first I tried with standard, simplest config:

[Link]
Name=ens192

[Network]
Address=172.30.130.30/24
Gateway=172.30.130.1
LinkLocalAddressing=no

But it doesn't work. I can ping 172.30.130.1 but server can't reach world or even rest of LAN. So then I tried DHCP:

[Link]
Name=ens192

[Network]
DHCP=ipv4
LinkLocalAddressing=no

Server receives some 172.30.130.201 ip, gateway like mentioned above and it works in terms of connectivity but it's not really what i want to achieve so...

[Link]
Name=ens192

[Network]
Address=172.30.130.30/24
Gateway=172.30.130.1
DHCP=ipv4
LinkLocalAddressing=no

This again doesn't work. No response from world/LAN. And here comes star of the show:

[Link]
Name=ens192

[Network]
Address=172.30.130.30/24
DHCP=ipv4
LinkLocalAddressing=no

This reaches both world and LAN, BUT it actually spoofs all IPs in the network for some reason. So it covers all other VMs in LAN and no matter what IP you connect to this VM will always respond. To 172.30.130.6, 172.30.130.50, 172.30.130.220, anything. I didn't know it's even possible...

Am I doing something wrong?

Last edited by lapsio (2017-09-25 09:10:38)

Offline

#2 2017-09-25 08:47:40

lapsio
Member
From: Warsaw
Registered: 2015-09-30
Posts: 50

Re: [SOLVED] systemd-networkd derps with static IP

Nevermind, it should be [Match] instead of [Link], i was writing those configs without any reference and remembered it incorrectly... rookie mistake.

Offline

#3 2017-09-25 09:08:47

hcjl
Member
From: berlin
Registered: 2007-06-29
Posts: 330

Re: [SOLVED] systemd-networkd derps with static IP

Then please mark your thread as solved. Thx.

Offline

Board footer

Powered by FluxBB