Trucrux Inc

Set static IP configuration for Trux-iMX8M-Q01

Trucrux provices “nmcli” Networking Package to configure network.

To set static ip run below command. Replace <static ip-address> with static ip and <gateway address> with Gateway Address.

nmcli connection add type ethernet con-name my-static-ip ifname eth0 ip4 <static ip-address> gw4 <gateway address>

For Example

$ nmcli con add type ethernet con-name my-static-ip ifname eth0 ip4 10.10.10.10/24 gw4 10.10.10.254