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: 25eae47836 ("Documentation: add tutorial to set up a static IP address")
Signed-off-by: Miguel Bernal Marin <miguel.bernal.marin@linux.intel.com>
This commit is contained in:
Miguel Bernal Marin 2018-06-30 13:42:33 -05:00 committed by David Kinder
parent 50f06cad55
commit 5d94e9bbf0
1 changed files with 13 additions and 3 deletions

View File

@ -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