How to configure static ip in SAIL-IMX6 linux
In the previous article, we learned how to modify boot animation in sail-imx6 linux4.1.15, so how to configure static ip in sail-imx6 linux? The detailed steps are below.
Modify the root/etc/network/interfaces file as follows:
Wired or wireless interfaces
Auto eth0
Iface eth0 inet static
Address 192.168.2.100
Netmask 255.255.255.0
Gateway 192.168.2.1
Broadcast 192.168.2.255
Set static IP to 192.168.2.100
Add / etc/init.d/networkingrestart to the / etc/rc.local file
The modified content is as follows:
Echo 30000 > / proc/sys/vm/min_free_kbytes
/ etc/init.d/networking restart
Exit 0
After reboot, the static IP setup is complete.