From b97e7fabaeaf12c88d6a10b2bfead54a77812105 Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Thu, 12 Nov 2015 11:16:17 +0100 Subject: man: add more (and simpler examples) to network.link(5) --- man/systemd.link.xml | 47 +++++++++++++++++++++++++++++++++++++++++++++-- 1 file changed, 45 insertions(+), 2 deletions(-) (limited to 'man') diff --git a/man/systemd.link.xml b/man/systemd.link.xml index 29b837834c..a9f8a654c8 100644 --- a/man/systemd.link.xml +++ b/man/systemd.link.xml @@ -1,4 +1,4 @@ - + @@ -387,10 +387,53 @@ - Example + Examples + + + /usr/lib/systemd/network/99-default.link + + The link file 99-default.link that is + shipped with systemd defines the default naming policy for + links. + + [Link] +NamePolicy=kernel database onboard slot path +MACAddressPolicy=persistent + + + + /etc/systemd/network/10-dmz.link + + This example assigns the fixed name + dmz0 to the interface with the MAC address + 00:a0:de:63:7a:e6: + + [Match] +MACAddress=00:a0:de:63:7a:e6 + +[Link] +Name=dmz0 + + + + /etc/systemd/network/10-internet.link + + This example assigns the fixed name + internet0 to the interface with the device + path pci-0000:00:1a.0-*: + + [Match] +Path=pci-0000:00:1a.0-* + +[Link] +Name=internet0 + + /etc/systemd/network/25-wireless.link + Here's an overly complex example that shows the use of a large number of [Match] and [Link] settings. + [Match] MACAddress=12:34:56:78:9a:bc Driver=brcmsmac -- cgit v1.2.3-54-g00ecf