Ethernet Eth0 IP auto assign

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

Ethernet Eth0 IP auto assign

842 Views
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 Kudos
2 Replies

612 Views
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 Kudos

612 Views
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 Kudos