Debian Codegraph @

doc/example-config

raw
1 network:
2 version: 2
3 # if specified, can only realistically have that value, as networkd cannot
4 # render wifi/3G. This would be shipped as a separate snippet by desktop images.
5 #renderer: NetworkManager
6 ethernets:
7 # opaque ID for physical interfaces, only referred to by other stanzas
8 id0:
9 match:
10 macaddress: 00:11:22:33:44:55
11 wakeonlan: true
12 dhcp4: true
13 addresses:
14 - 192.168.14.2/24
15 - "2001:1::1/64"
16 routes:
17 - to: default
18 via: 192.168.14.1
19 - to: default
20 via: "2001:1::2"
21 - to: 11.22.0.0/16
22 via: 192.168.14.3
23 metric: 100
24 nameservers:
25 search: [foo.local, bar.local]
26 addresses: [8.8.8.8]
27 lom:
28 match:
29 driver: ixgbe
30 # you are responsible for setting tight enough match rules
31 # that only match one device if you use set-name
32 set-name: lom1
33 dhcp6: true
34 switchports:
35 # all cards on second PCI bus; unconfigured by themselves, will be added
36 # to br0 below (note: globbing is not supported by NetworkManager)
37 match:
38 name: enp2*
39 mtu: 1280
40 wifis:
41 all-wlans:
42 # useful on a system where you know there is only ever going to be one device
43 match: {}
44 access-points:
45 "Joe's home":
46 # mode defaults to "managed" (client)
47 password: "s3kr1t"
48 # this creates an AP on wlp1s0 using hostapd; no match rules, thus ID is
49 # the interface name
50 wlp1s0:
51 access-points:
52 "guest":
53 mode: ap
54 # no WPA config implies default of open
55 bridges:
56 # the key name is the name for virtual (created) interfaces; no match: and
57 # set-name: allowed
58 br0:
59 # IDs of the components; switchports expands into multiple interfaces
60 interfaces: [wlp1s0, switchports]
61 dhcp4: true