Got it

DHCP packets are not forwarded by the S5700 switch at L2

Latest reply: Apr 24, 2017 01:12:57 1417 1 0 0 0

As shown in the below figure, a DHCP server (SwitchB) is deployed on an enterprise network to dynamically allocate IP addresses to terminals from VLAN 200 and 300. The intermediate switch, SwitchA has two VLANIF in vlan 200,300 , where the vlanif 200 interface is configured as a DHCP client while the vlanif 300 is configured with a static IP.


Problem:<?xml:namespace prefix = "o" />

The DHCP client belonging to VLAN 200 can obtain an IP address from the server but the DHCP client belonging to VLAN 300 is not able to even though the devices are correctly configured to allow communication in VLAN 300 between the client and server.

This post was last edited by jack_U at 2017-04-24 00:47.
  • x
  • convention:

Created Apr 24, 2017 01:12:57

Verified that  the MAC-address of the client that cannot obtain an IP address is learnt on switch A<?xml:namespace prefix = "o" />

[R6_U24_S5710_Stack]display mac-address


MAC Address    VLAN/VSI                          Learned-From        Type     


643e-8c43-2a7f 200/-                             GE0/0/2           dynamic  

28d2-443c-0c2c 300/-                             GE0/0/2            dynamic  


-Collected a packet capture on the switch by using the port mirroring command to verify if the DHCP request sent by the client is received and sent by it.


According to the packet capture we can observe that the switch receives the DHCP request from the client but does not forward them further even though between the client and the server we have L2 connectivity. Given the packet capture, we can conclude that the packets are dropped by the switch.


transparent.gif Root Cause
transparent.gif Solution

To solve the problem we enabled the DHCP function on the switch by running the “dhcp enable “command in order to have the received DHCP packets processed and forwarded by the CPU of the switch.

After further investigation we noticed, that the problem in question appears in the vlans that do not have the  dhcp function enabled in the situation where the switch is configured as a DHCP client in an interface with the  ip address dhcp alloc-ip" command without having the DHCP function globally enabled globally.


View more
  • x
  • convention:


You need to log in to comment to the post Login | Register

Notice: To protect the legitimate rights and interests of you, the community, and third parties, do not release content that may bring legal risks to all parties, including but are not limited to the following:
  • Politically sensitive content
  • Content concerning pornography, gambling, and drug abuse
  • Content that may disclose or infringe upon others ' commercial secrets, intellectual properties, including trade marks, copyrights, and patents, and personal privacy
Do not share your account and password with others. All operations performed using your account will be regarded as your own actions and all consequences arising therefrom will be borne by you. For details, see " User Agreement."

My Followers

Login and enjoy all the member benefits


Are you sure to block this user?
Users on your blacklist cannot comment on your post,cannot mention you, cannot send you private messages.
Please bind your phone number to obtain invitation bonus.
Information Protection Guide
Thanks for using Huawei Enterprise Support Community! We will help you learn how we collect, use, store and share your personal information and the rights you have in accordance with Privacy Policy and User Agreement.