Imx6ull restart network after changing ip address


So i can change the IP address of eth0 using

ifconfig eth0

and the network interface changes BUT i have to unplug and then reinsert the network lead to get it to be recognised on the network.

Is there a command i need to issue after the ifconfig to get the network to ‘restart’ so i do not need to unplug and then reinsert the lead ?

I found the way to do this without unplugging the lead is

ifconfig eth0 down

ifconfig eth0 up

Greetings @adrian!

Our BSP images are shipped with connman for managing network interfaces.
Can you please try using that to configure your IP address? Refer to this article for instructions.

Hi @adrian,

Please be aware that this also depends on other network properties.

Here in my local network, as soon as I change the IP, even with the cable plugged in, the properties are applied at the same time.

Best regards,
André Curvello


You are welcome.