TS-4900 Network configuration example

From embeddedTS Manuals
Revision as of 16:04, 10 February 2017 by Mark (talk | contribs)

Our Yocto image uses systemd which stores its network files in "/etc/systemd/network/". The simplest network config for a DHCP configuration would look like this:

In /etc/systemd/network/eth.network

[Match]
Name=eth*

[Network]
DHCP=yes

For a static configuration create a config file for that specific interface. /etc/systemd/network/eth0.network

[Match]
Name=eth0

[Network]
Address=192.168.0.50/24
Gateway=192.168.0.1
DNS=192.168.0.1

For more information on what options are available to configure the network, see the systemd network documentation.