How to configure the static IP and assigning a single static IP for Ethernet?

Follow the below steps for configuring the static IP for Ethernet:

Create the file

vi /etc/systemd/network/10-eth0-static.network

Add the below content

[Match]

Name=<interface>

[Network]

DHCP=no

Address=<ip>/24

Restart the service

systemctl restart systemd-networkd

Note: Replace <interface> with user network interface name (ex: eth0) and Replace <ip> with the desired static IP address (ex: 192.168.1.100)

Assigning a single static IP

Kindly note that the below commands should be executed each time after booting to ensure only a single IP is assigned:

killall dhcpcd

systemctl stop dhcpcd

systemctl disable dhcpcd

systemctl restart systemd-networkd

This will ensure only the static IP configuration is applied.

To automate this, add these commands in the .profile file.

For further product inquiries, please get in touch with our sales team at mktg@iwave-global.com

Please find the detailed product information here:
i.MX 8M Quad/QuadLite/Dual SMARC System On Module