summaryrefslogtreecommitdiffstats
path: root/docs/ENVIRONMENT.md
diff options
context:
space:
mode:
authorRaul Cheleguini <raul.cheleguini@gmail.com>2023-10-04 04:06:38 +0200
committerLuca Boccassi <luca.boccassi@gmail.com>2023-10-25 14:59:46 +0200
commit813dbff4d59a4f256f8824c45af9e8af8f7b4c05 (patch)
treec3a08eb872efe020e7581981c4414cfa50cf8fd2 /docs/ENVIRONMENT.md
parentMerge pull request #29704 from mrc0mmand/cocci (diff)
downloadsystemd-813dbff4d59a4f256f8824c45af9e8af8f7b4c05.tar.xz
systemd-813dbff4d59a4f256f8824c45af9e8af8f7b4c05.zip
nspawn: allow user-specified MAC address on container side
Introduce the environment variable SYSTEMD_NSPAWN_NETWORK_MAC to allow user-specified MAC address on container side.
Diffstat (limited to 'docs/ENVIRONMENT.md')
-rw-r--r--docs/ENVIRONMENT.md6
1 files changed, 6 insertions, 0 deletions
diff --git a/docs/ENVIRONMENT.md b/docs/ENVIRONMENT.md
index 9ebf2b3c64..5747c103e2 100644
--- a/docs/ENVIRONMENT.md
+++ b/docs/ENVIRONMENT.md
@@ -170,6 +170,12 @@ All tools:
friends. This is equivalent to passing `--suppress-sync=yes` on the
`systemd-nspawn` command line.
+* `$SYSTEMD_NSPAWN_NETWORK_MAC=...` — if set, allows users to set a specific MAC
+ address for a container, ensuring that it uses the provided value instead of
+ generating a random one. It is effective when used with `--network-veth`. The
+ expected format is six groups of two hexadecimal digits separated by colons,
+ e.g. `SYSTEMD_NSPAWN_NETWORK_MAC=12:34:56:78:90:AB`
+
`systemd-logind`:
* `$SYSTEMD_BYPASS_HIBERNATION_MEMORY_CHECK=1` — if set, report that