1
0
mirror of https://github.com/systemd/systemd.git synced 2025-01-10 05:18:17 +03:00

test-network: set DNS= and NTP= for DHCP server

Now, RoutesToDNS= and RoutesToNTP= are enabled by default on DHCPv4
client. So, if DHCP server picks up DNS or NTP servers from uplink,
then the routes may break CI environment.

Hopefully fixes #19463.
This commit is contained in:
Yu Watanabe 2021-04-30 05:14:24 +09:00 committed by Frantisek Sumsal
parent 96ae72ce1a
commit 4bd7e99232
3 changed files with 9 additions and 0 deletions

View File

@ -4,7 +4,10 @@ Name=server
Address=192.168.5.1/24 Address=192.168.5.1/24
IPForward=ipv4 IPForward=ipv4
DHCPServer=yes DHCPServer=yes
[DHCPServer] [DHCPServer]
BindToInterface=no BindToInterface=no
PoolOffset=150 PoolOffset=150
PoolSize=1 PoolSize=1
DNS=192.168.5.1
NTP=192.168.5.1

View File

@ -11,3 +11,5 @@ PoolOffset=10
PoolSize=50 PoolSize=50
EmitRouter=yes EmitRouter=yes
Timezone=Europe/Berlin Timezone=Europe/Berlin
DNS=192.168.5.1
NTP=192.168.5.1

View File

@ -9,3 +9,7 @@ IPv6SendRA=yes
[IPv6Prefix] [IPv6Prefix]
Prefix=2002:da8:1:0::/64 Prefix=2002:da8:1:0::/64
[DHCPServer]
DNS=192.168.5.1
NTP=192.168.5.1