Debian Codegraph @

test/test-network/conf/25-dhcp-server-static-hostname.network

raw
1 # SPDX-License-Identifier: LGPL-2.1-or-later
2 [Match]
3 Name=veth-peer
4
5 [Network]
6 Address=10.1.1.1/24
7 DHCPServer=yes
8 IPv6AcceptRA=no
9
10 [DHCPServer]
11 PoolOffset=100
12 PoolSize=50
13 DefaultLeaseTimeSec=60
14
15 # Scenario 1: Option 12
16 # Matches veth99's default MAC (from 25-veth.netdev)
17 [DHCPServerStaticLease]
18 MACAddress=12:34:56:78:9a:bc
19 Address=10.1.1.200
20 Hostname=simple-host
21
22 # Scenario 2: Option 81
23 # Matches the MAC set by 25-dhcp-client-fqdn-hostname.network
24 [DHCPServerStaticLease]
25 MACAddress=92:12:01:87:11:19
26 Address=10.1.1.201
27 Hostname=fqdn.example.com