You are not logged in.
Hi all,
On my living room (HT)PC I have configured the network using systemd-networkd and I am using systemd-resolved to provide resolv.conf.
The .network file looks like this:
[Match]
Name=enp5s0
[Network]
DHCP=no
Address=192.168.23.200/24
Gateway=192.168.23.1
DNS=192.168.23.254
Domains=network23.local network24.local
IPv6AcceptRouterAdvertisements=false
[Route]
Destination=192.168.24.0/24
Gateway=192.168.23.254
Unfortunately, after an automatic login on the tty, resolv.conf is filled with the default values from resolved (Google's DNS servers). The rest of the network is configured correctly, including the defined route.
In this situation, networkctl status -a shows
● 1: lo
Link File: /usr/lib/systemd/network/99-default.link
Network File: n/a
Type: loopback
State: n/a (n/a)
MTU: 65536
Address: 127.0.0.1
::1
● 2: enp5s0
Link File: /usr/lib/systemd/network/99-default.link
Network File: n/a
Type: ether
State: n/a (n/a)
Path: pci-0000:05:00.0
Driver: r8169
Vendor: Realtek Semiconductor Co., Ltd.
Model: RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller (Motherboard (one of many))
HW Address: d0:50:99:39:03:db (ASRock Incorporation)
MTU: 1500
Address: 192.168.23.200
fe80::d250:99ff:fe39:3db
Gateway: 192.168.23.1 (ASUSTek COMPUTER INC.)
To restore the correct settings, I can restart systemd-networkd. This gives me the correct settings in resolv.conf and it will show the correct "Network File" and "State" in networkctl status -a.
However, after a short while (~30 seconds) the problem comes back again.
On my laptop I am using NetworkManager without any issues, but I would prefer systemd-networkd on this system instead if it can be done without issues.
Last edited by mvn23 (2016-01-06 09:21:38)
Offline
OK, since the config is static anyway, I ditched systemd-resolved and created resolv.conf myself.
Offline