mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2025-06-19 12:12:16 +00:00
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:
parent
50f06cad55
commit
5d94e9bbf0
@ -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
|
Setting up the static IP address
|
||||||
********************************
|
********************************
|
||||||
|
|
||||||
You can set up a static IP address by modifying the
|
You can set up a static IP address by copying the
|
||||||
``/usr/lib/systemd/network/50-eth.network`` file, and more specifically the ``[Network]``
|
``/usr/lib/systemd/network/50-eth.network`` file to
|
||||||
section. This is the content of the file used in ACRN by default.
|
``/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
|
.. literalinclude:: ../../tools/acrnbridge/eth.network
|
||||||
:caption: tools/acrnbridge/eth.network
|
:caption: tools/acrnbridge/eth.network
|
||||||
|
Loading…
Reference in New Issue
Block a user