iimx8mpevk How to fix the IP address v4

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

iimx8mpevk How to fix the IP address v4

Jump to solution
2,432 Views
HT_MOB
Contributor II

I bought imx8mpevk.
I don't know how to fix the ip address.

Could you please tell me.

0 Kudos
Reply
1 Solution
2,428 Views
jimmychan
NXP TechSupport
NXP TechSupport

use the 'ifconfig' command to set the IP address of your board.

View solution in original post

4 Replies
2,429 Views
jimmychan
NXP TechSupport
NXP TechSupport

use the 'ifconfig' command to set the IP address of your board.

2,422 Views
HT_MOB
Contributor II

With that method alone, rebooting will restore it.
I'm assuming that I will specify the address in some file, but in which file should I enter the address setting?

0 Kudos
Reply
2,418 Views
jimmychan
NXP TechSupport
NXP TechSupport

You can add the command in your system initial script. So every time the system startup will run this command.

 

e.g. for your reference

https://community.nxp.com/t5/i-MX-Processors/how-to-setup-static-ip-for-eth0-in-linux-on-MEK-board/m...

 

 

0 Kudos
Reply
2,409 Views
HT_MOB
Contributor II

Thank you.

I tried the URL method you showed, but couldn't fix the ip address.

I solved it in another way.

Added the ifconfig command to the line above exit0 in /etc/rc.local.

$ vi /etc/rc.local
-------------------------------------------------- --------
::
::
#set printk to 7 to dump kernel massage to console
echo 7> / proc / sys / kernel / printk

#set ip address
ifconfig eth0 <ip address> netmask <netmask>

exit0
-------------------------------------------------- --------

0 Kudos
Reply