以太网未收到广播数据包

发布于 2025-01-07 05:40:02 字数 349 浏览 1 评论 0原文

我正在开发在 cisco IPTV 上运行的 2.6.15 内核。当盒子出现时,DHCP 客户端挂断。其原因是 DHCP 客户端无法获取广播的 DHCP Offer 消息。

当我读取 /proc/net/dev 文件时,它显示以太网设备(eth0)尚未收到任何数据包。然后我在盒子上运行 tcpdump,它还显示以太网接口上没有收到数据包。

然后我在测试PC(正在运行DHCP服务器)上运行wireshark,它显示DHCP服务器广播了一条DHCP提供消息。

此 DHCP 客户端和服务器与其他设备运行良好,因此这些程序出现任何问题的可能性较小。以太网驱动程序肯定有问题。

我真的很困惑。我应该如何处理这个问题。请帮我。

I'm working on 2.6.15 kernel running on a cisco IPTV. When the box is coming up, the DHCP client hangs up. The reason for this is that the DHCP client does not get fetch the broadcasted DHCP offer message.

When I read /proc/net/dev file, it shows that ethernet device (eth0) has not received any packet. I then ran tcpdump on the box and it also shows that no packet is been received on the ethernet interface.

Then I ran wireshark on the test PC (on which DHCP server is running), it shows that a DHCP offer message is broadcasted by the DHCP server.

This DHCP client and server are working fine with other boxes so there are less chances that these programs have any issues. There must be an issue in the ethernet drivers.

I'm really confused. How should I proceed to this problem. Please help me.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

我很坚强 2025-01-14 05:40:02

也许您可以首先检查 DHCP 客户端是否正在发送发现。

DHCP 握手过程如下:
客户发现,
服务器优惠,
客户要求,
服务器确认
(维基百科有 DHCP 的步骤)

接下来您可以检查路由器上任何与 DHCP 相关的设置。
DHCP 客户端与服务器位于同一子网/vlan 吗?如果没有,路由器是否需要某种配置来中继到 DHCP 服务器子网/VLAN 或从 DHCP 服务器子网/VLAN 中继?

Maybe you can start by checking whether the DHCP client is sending out a discovery.

The DHCP handshake goes like this:
client discovery,
server offer,
client request,
server ack
(Wikipedia has the steps of DHCP)

The next thing you can check any DHCP related settings on the router.
Is the DHCP client on the same subnet/vlan as the server? If not, would the router need a certain configuration to relay to/from the DHCP server subnet/vlan?

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文