Ethernet Eth0 IP auto assign

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

Ethernet Eth0 IP auto assign

1,407 次查看
yashavanthashet
Contributor V

Hi,

We are using i.MX8M custom board with linux4.9.5_ga release.

Here for 'eth0' IP address is not auto assigning while booting, needs to manually give the command "udhcpc -i eth0" to assign the IP address.
Observed that '/etc/network/interfaces' file is not available in this release which used to be there in previous i.MX releases(which we feel is the file responsible to assign IP address).
Kindly let us know how to auto assign the IP address?

Thanks in advance.
Regards,
Yashavantha

0 项奖励
回复
2 回复数

1,177 次查看
b36401
NXP Employee
NXP Employee

You can add udhcpc command into /etc/rc.local instead.

Have a great day,
Victor

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 项奖励
回复

1,177 次查看
yashavanthashet
Contributor V

Hi Victor,

When I add 'udhcpc -i eth0' in rc.local file board gets stucked with below print.

"[***   ] A start job is running for /etc/rc....patibility (3min 58s / no limit)"

Time keeps on updating.

I am using same old filesystem (without udhcpc) in imx8 evk, but it assign IP address there without any issues. how it is?

Regards,

Yashavantha

0 项奖励
回复