imx8mplus : Random IP getting assigned to ethernet interface when the link is UP

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

imx8mplus : Random IP getting assigned to ethernet interface when the link is UP

跳至解决方案
582 次查看
ssuresh
Contributor I

Hi NXP Team,

 

Please find the test procedure:

1. Connect the board eth0 port to a Linux PC via ethernet cable

2. After one minute, check the ethernet interface using ifconfig

A random IP is seen for eth0 interface as shown below:

ssuresh_0-1710312829392.png

 

Is this an expected behaviour?

 

Thank you!

0 项奖励
回复
1 解答
558 次查看
jimmychan
NXP TechSupport
NXP TechSupport

It is normal. When no dhcp, no IP assign to the board. Then it will set this 169.xx.xx.xx. You could set the IP to board manually.

在原帖中查看解决方案

0 项奖励
回复
4 回复数
571 次查看
jimmychan
NXP TechSupport
NXP TechSupport

You could connect the board to a router. So, it could get the IP from the router.

0 项奖励
回复
569 次查看
ssuresh
Contributor I

Yes, that is true !! When board is connected to a router, it will get IP from router.

But, when we connect our board to another board or laptop over ethernet, we see an IP is getting set in the range 169.xx.xx.xx.

We would like to know who is assigning this IP; is it NXP itself or the other end i.e lap/board? Does this happen since ethernet is expecting a dynamic IP when the link is UP?

0 项奖励
回复
559 次查看
jimmychan
NXP TechSupport
NXP TechSupport

It is normal. When no dhcp, no IP assign to the board. Then it will set this 169.xx.xx.xx. You could set the IP to board manually.

0 项奖励
回复
554 次查看
ssuresh
Contributor I

Thanks NXP for the answer !

 

BR.

0 项奖励
回复