Wireshark 中没有捕获到 DHCPOFFER 消息

网络工程 dhcp 线鲨
2022-02-04 09:12:18

我正在寻找为什么 Wireshark 中的数据包捕获不包含 DHCP 提供消息的答案。我试图直接在安装了 Wireshark 的计算机上捕获数据包并执行 SPAN 监控端口。

在这两种情况下,我都无法在以下屏幕上看到 DHCP 提供:

线鲨捕获

我在 MacOS Mojave 上使用 Wireshark 2.6.4。

下面是一个简单的拓扑图: 网络图

下面是交换机配置:

interface Vlan47
 ip address x.x.x.1 255.255.255.0
!
interface Vlan49
 ip address x.x.x.1 255.255.255.0
 ip helper-address x.x.x.55
!
SPAN monitor destination interface
 switchport access vlan 21
 switchport mode access
 switchport nonegotiate
 switchport block unicast
 no logging event link-status
 access-session port-control auto
 mab
 dot1x pae authenticator
 dot1x timeout tx-period 3
 storm-control broadcast level 2.00
 storm-control multicast level 5.00
 storm-control action trap
 spanning-tree portfast
 service-policy type control subscriber policy_name
 ip dhcp snooping limit rate 100
!
SPAN monitor source port
 switchport access vlan 49
 switchport mode access
 switchport nonegotiate
 switchport block unicast
 switchport port-security maximum 2
 switchport port-security maximum 1 vlan access
 switchport port-security violation restrict
 switchport port-security aging time 2
 switchport port-security aging type inactivity
 switchport port-security
 no logging event link-status
 mab
 dot1x pae authenticator
 dot1x timeout tx-period 3
 access-session port-control force-authorized
 storm-control broadcast level 2.00
 storm-control multicast level 5.00
 storm-control action trap
 spanning-tree portfast
 service-policy type control subscriber policy_name
 ip verify source
 ip dhcp snooping limit rate 100
!
DHCP server port
interface Port-channel1
 switchport trunk allowed vlan 47,70
 switchport mode trunk
 switchport nonegotiate
 switchport block unicast
 ip arp inspection trust
 ip arp inspection limit rate 100
 logging event link-status
 storm-control broadcast level 5.00
 storm-control multicast level 10.00
 storm-control action trap
 ip dhcp snooping limit rate 1000
 ip dhcp snooping trust
!
!
sh monit sess all
Session 1
---------
Type                     : Local Session
Source Ports             :
    Both                 : SPAN source port
Destination Ports        : SPAN dst port
    Encapsulation        : Native
          Ingress        : Disabled
!
!
1个回答

这是WireShark 捕获驱动程序的最新版本的错误/限制

在 MacOs Mojave 10.14.3 或 10.14.4 上,使用 WireShark 2.4.1 或 2.4.13 捕获未过滤的流量,我们可以看到 DHCP 提供:

在此处输入图像描述

升级到 WireShark 2.6.4 并执行完全相同的捕获,DHCP Offer 不再出现。

升级到 WireShark 3.0.0 产生相同的结果(没有 DHCP 提供)

用 V2.6.4/3.0 打开 V2.4.1 制作的捕获文件,它就在那里。

使用 V2.6.4 / 3.0 捕获然后在 V2.4.1 中打开捕获它仍然丢失。

在 Mac OS VM 中安装 Wireshark 2.4.13,出现 DHCP 提供,在此 VM 中复制(未安装)WS 3.0 应用程序,DHCP 提供仍然出现。

在此处输入图像描述