我正在设计一个将使用以太网连接到计算机的设备。它已经内置了一个 mac 控制器。当我连接设备时,所发生的只是计算机广播了一堆 DHCP 发现数据包和我猜想的其他一些数据包,以试图找到设备并建立连接。我假设我需要让我的设备在这一点上使用某种确认数据包进行响应,但我不确定是什么?有没有人做过这样的事情?谢谢
我正在使用wireshark查看数据包。输出看起来像这样:
time source destination protocol info
1 0.000000 0.0.0.0 255.255.255.255 DHCP DHCP Discover - Transaction ID 0xc82a69f
2 4.000064 0.0.0.0 255.255.255.255 DHCP DHCP Discover - Transaction ID 0xc82a69f
3 10.688469 0.0.0.0 255.255.255.255 DHCP DHCP Discover - Transaction ID 0xb452266b
4 14.690625 0.0.0.0 255.255.255.255 DHCP DHCP Discover - Transaction ID 0xb452266b
5 22.690576 0.0.0.0 255.255.255.255 DHCP DHCP Discover - Transaction ID 0xb452266b
6 38.690605 0.0.0.0 255.255.255.255 DHCP DHCP Discover - Transaction ID 0xb452266b
7 62.652821 my_ip XXX.XXX.255.255 BROWSER Local Master Announcement MYLAPTOP, Workstation, Server, Print Queue Server, NT Workstation, Potential Browser, Master Browser
8 65.555281 my_ip XXX.XXX.255.255 BROWSER Domain/Workgroup Announcement MY, NT Workstation, Domain Enum
9 352.692192 0.0.0.0 255.255.255.255 DHCP DHCP Discover - Transaction ID 0xa23d42a4
10 356.692376 0.0.0.0 255.255.255.255 DHCP DHCP Discover - Transaction ID 0xa23d42a4
11 364.692421 0.0.0.0 255.255.255.255 DHCP DHCP Discover - Transaction ID 0xa23d42a4
12 381.692442 0.0.0.0 255.255.255.255 DHCP DHCP Discover - Transaction ID 0xa23d42a4
13 665.557507 my_ip XXX.XXX.255.255 BROWSER Domain/Workgroup Announcement MY, NT Workstation, Domain Enum
14 686.724951 0.0.0.0 255.255.255.255 DHCP DHCP Discover - Transaction ID 0xbe3a7bdb
15 691.724307 0.0.0.0 255.255.255.255 DHCP DHCP Discover - Transaction ID 0xbe3a7bdb
16 698.724276 0.0.0.0 255.255.255.255 DHCP DHCP Discover - Transaction ID 0xbe3a7bdb
17 715.724291 0.0.0.0 255.255.255.255 DHCP DHCP Discover - Transaction ID 0xbe3a7bdb
18 783.295682 my_ip XXX.XXX.255.255 BROWSER Local Master Announcement MYLAPTOP, Workstation, Server, Print Queue Server, NT Workstation, Potential Browser, Master Browser
19 908.920831 my_ip XXX.XXX.255.255 BROWSER Get Backup List Request
20 908.920940 my_ip XXX.XXX.255.255 NBNS Name query NB MY<1b>