三层交换机,开启dhcp 给虚拟机分配IP地址。主机正常获取IP。但是vmware workstation 虚拟机桥接模式直接连接主机网卡,无法获取地址。
切换其他DCHP 家用路由,可正常获取地址。
附件为wireshark抓包信息。
(0)
最佳答案
看抓包是终端发出的DHCP报文没有收到回复,可以在DHCP server上debugging dhcp server all看下交换机上有没有收到请求报文
(0)
DHCP server上没有该任何信息。 <XDKJ_7F_InterNet_core>debugging dhcp server all <XDKJ_7F_InterNet_core>terminal debugg The current terminal is enabled to display debugging logs. <XDKJ_7F_InterNet_core>
DHCP server 上有信息。。。。 *Aug 22 15:06:11:113 2022 XDKJ_7F_InterNet_core DHCPS/7/EVENT: Receive a DHCPDISCOVER message from Vlan-interface2100. *Aug 22 15:06:11:113 2022 XDKJ_7F_InterNet_core DHCPS/7/EVENT: Send an ICMP echo request to 172.27.60.236. *Aug 22 15:06:11:617 2022 XDKJ_7F_InterNet_core DHCPS/7/EVENT: Send a DHCPOFFER message on Vlan-interface2100. *Aug 22 15:06:11:618 2022 XDKJ_7F_InterNet_core DHCPS/7/PACKET: To 255.255.255.255 port 68, interface Vlan-interface2100 Message type: REPLY (2) Hardware type: 1, Hardware address length: 6 Hops: 0, Transaction ID: 2367513288 Seconds: 3072, Broadcast flag: 1 Client IP address: 0.0.0.0 Your IP address: 172.27.60.236 Server IP address: 0.0.0.0 Relay agent IP address: 0.0.0.0 Client hardware address: 000c-2937-42c1 Server host name: not configured Boot file name: not configured DHCP message type: DHCPOFFER (2) *Aug 22 15:06:27:166 2022 XDKJ_7F_InterNet_core DHCPS/7/PACKET: From 0.0.0.0 port 68, interface Vlan-interface2100 Message type: REQUEST (1) Hardware type: 1, Hardware address length: 6 Hops: 0, Transaction ID: 2367513288 Seconds: 7168, Broadcast flag: 1 Client IP address: 0.0.0.0 Your IP address: 0.0.0.0 Server IP address: 0.0.0.0 Relay agent IP address: 0.0.0.0 Client hardware address: 000c-2937-42c1 Server host name: not configured Boot file name: not configured DHCP message type: DHCPDISCOVER (1) *Aug 22 15:06:27:169 2022 XDKJ_7F_InterNet_core DHCPS/7/EVENT: Receive a DHCPDISCOVER message from Vlan-interface2100. *Aug 22 15:06:27:170 2022 XDKJ_7F_InterNet_core DHCPS/7/EVENT: Send an ICMP echo request to 172.27.60.236. *Aug 22 15:06:27:717 2022 XDKJ_7F_InterNet_core DHCPS/7/EVENT: Send a DHCPOFFER message on Vlan-interface2100. *Aug 22 15:06:27:718 2022 XDKJ_7F_InterNet_core DHCPS/7/PACKET: To 255.255.255.255 port 68, interface Vlan-interface2100 Message type: REPLY (2) Hardware type: 1, Hardware address length: 6 Hops: 0, Transaction ID: 2367513288 Seconds: 7168, Broadcast flag: 1 Client IP address: 0.0.0.0 Your IP address: 172.27.60.236 Server IP address: 0.0.0.0 Relay agent IP address: 0.0.0.0 Client hardware address: 000c-2937-42c1 Server host name: not configured Boot file name: not configured DHCP message type: DHCPOFFER (2) *Aug 22 15:06:30:352 2022 XDKJ_7F_InterNet_core DHCPS/7/PACKET: From 0.0.0.0 port 68, interface Vlan-interface2100 Message type: REQUEST (1) Hardware type: 1, Hardware address length: 6 Hops: 0, Transaction ID: 3029347688 Seconds: 0, Broadcast flag: 0 Client IP address: 0.0.0.0 Your IP address: 0.0.0.0 Server IP address: 0.0.0.0 Relay agent IP address: 0.0.0.0 Client hardware address: 74df-bf46-9203 Server host name: not configured Boot file name: not configured DHCP message type: DHCPREQUEST (3) *Aug 22 15:06:30:352 2022 XDKJ_7F_InterNet_core DHCPS/7/EVENT: Receive a DHCPREQUEST message for 172.27.60.43 from Vlan-interface2100; The server identifier is (none). *Aug 22 15:06:30:352 2022 XDKJ_7F_InterNet_core DHCPS/7/EVENT: Client was rebooted. *Aug 22 15:06:30:352 2022 XDKJ_7F_InterNet_core DHCPS/7/EVENT: Send a DHCPACK message on Vlan-interface2100. *Aug 22 15:06:30:354 2022 XDKJ_7F_InterNet_core DHCPS/7/PACKET: To 172.27.60.43 port 68, interface Vlan-interface2100 Message type: REPLY (2) Hardware type: 1, Hardware address length: 6 Hops: 0, Transaction ID: 3029347688 Seconds: 0, Broadcast flag: 0 Client IP address: 0.0.0.0 Your IP address: 172.27.60.43 Server IP address: 0.0.0.0 Relay agent IP address: 0.0.0.0 Client hardware address: 74df-bf46-9203 Server host name: not configured Boot file name: not configured DHCP message type: DHCPACK (5)
终端mac地址是000c-2937-42c1吗?看debug,交换机已经给分配地址了: *Aug 22 15:06:27:718 2022 XDKJ_7F_InterNet_core DHCPS/7/PACKET: To 255.255.255.255 port 68, interface Vlan-interface2100 Message type: REPLY (2) Hardware type: 1, Hardware address length: 6 Hops: 0, Transaction ID: 2367513288 Seconds: 7168, Broadcast flag: 1 Client IP address: 0.0.0.0 Your IP address: 172.27.60.236 Server IP address: 0.0.0.0 Relay agent IP address: 0.0.0.0 Client hardware address: 000c-2937-42c1 Server host name: not configured Boot file name: not configured DHCP message type: DHCPOFFER (2) 分配的地址是172.27.60.236 终端抓包没有收到这个offer报文,可能丢在relay上了,可以在relay交换机上下行抓包,看relay有没有收到这个offer报文
是000c-2937-42c1,这是虚拟机的MAC。 知识有限,我在现学习下怎样在抓 relay交换机上,下行抓包。
通过镜像端口下行抓包在 二层交换机上联口抓取,显示有offer包。 然后又在华为的AP上联口抓包,也显示有offer包。 华为AP为瘦模式,不知道咋往下抓包了。请问您有什么推荐方式么?
@Sonja777 通过镜像端口下行抓包在 二层交换机上联口抓取,显示有offer包。 然后又在华为的AP上联口抓包,也显示有offer包。 华为AP为瘦模式,不知道咋往下抓包了。请问您有什么推荐方式么?
VMware workstation 虚拟机 网卡桥接模式,无法通过华为AC+AP模式DHCP获取IP地址 前期进行测试发现。 1. 使用手机共享热点方式虚拟机可正常获取地址。 2. 使用有线网络(与AC+AP有线链路相同,唯一跳过AP链路。)虚拟机可正常获取地址。 3. 使用无线网络(AC+AP模式)虚拟机无法获取地址。 通过抓包 1. 通过抓包发现,DHCP服务器正常发送DHCP Offer报文,但是客户未获取。 2. 继续二层上联口和AP上联口抓包发现,均有 DHCPOffer报文。 3. 排查AC配置。在华为互动社区查找到相同问题。链接:https://forum.huawei.com/huaweiconnect/enterprise/zh/thread-698539.html 解决该问题。
交换机没有回应dhcp discover报文
(0)
关系不大。使用有线网卡正常获得IP。 但是使用无线网卡就没法获得地址。Intel WiFi6 AX201 可能和网卡有关系,继续排除中。
交换机收到 discover 并回应了,但是虚拟机没收到。中间不知哪点丢了。。。。。 *Aug 22 15:14:21:233 2022 XDKJ_7F_InterNet_core DHCPS/7/EVENT: Receive a DHCPDISCOVER message from Vlan-interface2100. *Aug 22 15:14:21:233 2022 XDKJ_7F_InterNet_core DHCPS/7/EVENT: Send an ICMP echo request to 172.27.60.236. *Aug 22 15:14:21:817 2022 XDKJ_7F_InterNet_core DHCPS/7/EVENT: Send a DHCPOFFER message on Vlan-interface2100. *Aug 22 15:14:21:818 2022 XDKJ_7F_InterNet_core DHCPS/7/PACKET: To 255.255.255.255 port 68, interface Vlan-interface2100 Message type: REPLY (2) Hardware type: 1, Hardware address length: 6 Hops: 0, Transaction ID: 3457146529 Seconds: 6656, Broadcast flag: 1 Client IP address: 0.0.0.0 Your IP address: 172.27.60.236 Server IP address: 0.0.0.0 Relay agent IP address: 0.0.0.0 Client hardware address: 000c-2937-42c1 Server host name: not configured Boot file name: not configured DHCP message type: DHCPOFFER (2)
关系不大。使用有线网卡正常获得IP。 但是使用无线网卡就没法获得地址。Intel WiFi6 AX201 可能和网卡有关系,继续排除中。
亲~登录后才可以操作哦!
确定你的邮箱还未认证,请认证邮箱或绑定手机后进行当前操作
举报
×
侵犯我的权益
×
侵犯了我企业的权益
×
抄袭了我的内容
×
原文链接或出处
诽谤我
×
对根叔社区有害的内容
×
不规范转载
×
举报说明
不好意思昨天没看到,华为的AP没有接触过,解决了就好,学到了哈哈哈