iimx8mpevk How to fix the IP address v4

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

iimx8mpevk How to fix the IP address v4

跳至解决方案
2,435 次查看
HT_MOB
Contributor II

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

Could you please tell me.

0 项奖励
回复
1 解答
2,431 次查看
jimmychan
NXP TechSupport
NXP TechSupport

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

在原帖中查看解决方案

4 回复数
2,432 次查看
jimmychan
NXP TechSupport
NXP TechSupport

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

2,425 次查看
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 项奖励
回复
2,421 次查看
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 项奖励
回复
2,412 次查看
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 项奖励
回复