DHCP DORA Process stucks at DISCOVER/OFFER

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

DHCP DORA Process stucks at DISCOVER/OFFER

1,208 次查看
Muthyam
Contributor I

Hello Community,

I’m using the Apalis iMX8 QuadPlus with Yocto Dunfell on our custom board. While the unit generally functions well, there are times when it fails to obtain an IP address from the DHCP server. We’ve used tcpdump on both the server and client sides for analysis. The client continuously sends DHCP Discover packets, which the server receives and responds to with DHCP Offer packets. However, these Offer packets are not visible on the client side. As a result, the client keeps sending additional Discover packets, causing the process to stall and preventing it from acquiring an IP address. This situation persists until the unit is power-cycled or the eth0 interface is brought down and then back up.

Client Side

 

Muthyam_0-1731931817079.png

 

Client_Broadcasting_DISCOVER_Message1366×768 69.4 KB

 

Server Side

 

Muthyam_1-1731931817202.png

 

Server_Replying2Discover_OfferWithUnicast719×678 15.1 KB

 

Any guidance on resolving this issue promptly would be greatly appreciated.

Thank you,
Muthyam D.

0 项奖励
回复
4 回复数

1,192 次查看
JosephAtNXP
NXP TechSupport
NXP TechSupport

Hi,

Thank you for your interest in NXP Semiconductor products,

Have you tried to replicate with the latest BSP for your board? Is the issue still present?

Regards

0 项奖励
回复

1,188 次查看
Muthyam
Contributor I
Hi,

I have not tried with the latest BSP, as this issue is occurring with units already deployed in the field. We need to address this problem without changing the BSP version.

Regards,
Muthyam D.
0 项奖励
回复

1,163 次查看
JosephAtNXP
NXP TechSupport
NXP TechSupport

Hi @Muthyam,

The workaround you can use is to add the following line to your /etc/network/interfaces:

auto eth0
iface eth0 inet dhcp
dhclient_opts -nw

Regards,

0 项奖励
回复

1,145 次查看
Muthyam
Contributor I

Hello @JosephAtNXP ,

As far as I know, the /etc/network/interfaces file is used when NetworkManager manages the network interfaces. However, the Toradex BSP provides two utilities for network configuration: ConnMan and systemd-networkd. By default:

  • The Ethernet port is managed by ConnMan.
  • The USB RNDIS interface is managed by systemd-networkd.

In our setup, there was no /etc/network/interfaces file by default. After encountering this issue, we disabled the ConnMan service and assigned control of the eth0 interface to systemd-networkd.

Even after manually adding an interfaces file at /etc/network, the issue still persists.

Thank you,
Muthyam D.

0 项奖励
回复