From 5d94e9bbf003d58673d7bacfdf8a0b5dcbbe4ab0 Mon Sep 17 00:00:00 2001 From: Miguel Bernal Marin Date: Sat, 30 Jun 2018 13:42:33 -0500 Subject: [PATCH] Documentation: fix set up a static IP tutorial Clear Linux is a stateless system, also systemd. https://clearlinux.org/features/stateless This tutorial advice to modify a file in /usr/lib which is used by vendors. Instead of that, this commit advice to use the local administration network directory at /etc/systemd/network. See more reference using: man systemd.network Fixes: 25eae47836b9 ("Documentation: add tutorial to set up a static IP address") Signed-off-by: Miguel Bernal Marin --- doc/tutorials/static-ip.rst | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) diff --git a/doc/tutorials/static-ip.rst b/doc/tutorials/static-ip.rst index 8f7ab97f2..ad8eb68df 100644 --- a/doc/tutorials/static-ip.rst +++ b/doc/tutorials/static-ip.rst @@ -21,9 +21,19 @@ on the target device and can also be found under ``tools/acrnbridge`` in the sou Setting up the static IP address ******************************** -You can set up a static IP address by modifying the -``/usr/lib/systemd/network/50-eth.network`` file, and more specifically the ``[Network]`` -section. This is the content of the file used in ACRN by default. +You can set up a static IP address by copying the +``/usr/lib/systemd/network/50-eth.network`` file to +``/etc/systemd/network/`` directory. You can create this directory and +copy the file with the following command: + +.. code-block:: console + + mkdir -p /etc/systemd/network + cp /usr/lib/systemd/network/50-eth.network /etc/systemd/network + +Modify the ``[Network]`` section in the +``/etc/systemd/network/50-eth.network`` file you just created. +This is the content of the file used in ACRN by default. .. literalinclude:: ../../tools/acrnbridge/eth.network :caption: tools/acrnbridge/eth.network