iimx8mpevk How to fix the IP address v4

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

iimx8mpevk How to fix the IP address v4

ソリューションへジャンプ
2,459件の閲覧回数
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,455件の閲覧回数
jimmychan
NXP TechSupport
NXP TechSupport

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

元の投稿で解決策を見る

4 返答(返信)
2,456件の閲覧回数
jimmychan
NXP TechSupport
NXP TechSupport

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

2,449件の閲覧回数
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,445件の閲覧回数
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,436件の閲覧回数
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 件の賞賛
返信