Changes

Jump to: navigation, search

How to configure the network interfaces

238 bytes added, 08:19, 26 October 2022
DNS
{{InfoBoxBottom}}
<section begin=Body/>
== How to configure the network interfaces ==
The network configuration for systemd are basically found in the <code>/etc/systemd/network/</code> directory.
The most simply way for configuring the network interface is to create/edit the file '''/etc/systemd/network/20-eth0.network''' as per the following paragraphs.
For more example and usage hints on systemd, please refer to our [[XELK-AN-008:_How_to_use_systemd_on_an_Embedded_system#Configuring_the_network_interfaces | wiki]] page.
DNS=192.168.1.1
</pre>
 
Once modified, the <code>networkd</code> service should be resarted:
 
systemctl restart systemd-networkd
==== Dynamic IP addres (DHCP) ====
ln -sf /run/systemd/resolve/stub-resolv.conf /etc/resolv.conf
 
Once modified, the <code>resolved</code> service should be resarted:
 
systemctl restart systemd-resolved
==== loopback network interface ====
8,154
edits

Navigation menu