Got it

PCs Connected to a Switch Cannot Obtain IP Addresses Through DHCP or Obtain IP Addresses

Created: Nov 9, 2021 13:55:27Latest reply: Nov 11, 2021 08:40:01 213 4 0 0 0
  Rewarded HiCoins: 0 (problem resolved)

Hi

I have below issue :


PCs Connected to a Switch Cannot Obtain IP Addresses Through DHCP or Obtain IP Addresses 


What is the solution to connect it?




Featured Answers
E.DR_91
MVE Author Created Nov 9, 2021 13:56:49

Dear Friend:

Please to follow the following procedure:



1. Check the DHCP server configuration according to product manual. If the configuration is correct, check the network cables.

2. Connect PCs to the S5700 directly to check whether the PCs can obtain IP addresses.

− If the PCs obtain IP addresses, the access switch may not transparently transmit VLAN packets. Check whether the related interfaces can transparently transmit VLAN packets.
− If the PCs cannot obtain IP addresses, go to step 3.

3. Check whether there is available IP address in the address pool.

<Switch> display ip pool interface vlanif1
  Pool-name      : Vlanif1
  Pool-No        : 6
  Lease          : 1 Days 0 Hours 0 Minutes
  Domain-name    : -
  DNS-server0    : -              
  NBNS-server0   : -              
  Netbios-type   : -              
  Position       : Interface       Status           : Unlocked
  Gateway-0      : 10.10.90.253   
  Mask           : 255.255.255.0
  VPN instance   : --
-----------------------------------------------------------------------------
         Start           End     Total  Used  Idle(Expired)  Conflict  Disable
-----------------------------------------------------------------------------
      10.10.90.1    10.10.90.254   253     1        252(0)         0        0
-----------------------------------------------------------------------------

If no available IP address exists:
   a. If all IP addresses have been allocated, run the reset ip pool interface Vlanif1 +expired/ Conflict command in the user view to reclaim conflicting IP addresses or expired IP addresses.
   b. If the address pool does not contain conflicting or expired IP address, reduce the IP address lease period. This is applicable to the scenarios where users often change.
If the address pool contains conflicting available IP addresses, enable DHCP debugging or capture DHCP packets. Check whether the DHCP server has received the DHCP DISCOVER packets from clients, and whether the DHCP server has replied with DHCP OFFER packets.

Note:
PCs can obtain IP addresses only after several DHCP packets have been exchanged between the switch and PCs.

4. Enabling STP may cause a delay to obtain IP addresses. Disable STP or set the interfaces connected to PCs as STP edge ports.

View more
  • x
  • convention:

Recommended answer

jason_hu
Admin Created Nov 9, 2021 14:11:42

Hi friend!
You can refer to this troubleshooting idea. Generally, the reason why the IP address cannot be obtained is that the ID address pool is insufficient. https://support.huawei.com/enterprise/en/doc/EDOC1100197871/e0653f04


Hope to help you!

View more
  • x
  • convention:

All Answers
Hello,
We're working on your problem. Please be patient.
View more
  • x
  • convention:

E.DR_91
E.DR_91 MVE Author Created Nov 9, 2021 13:56:49

Dear Friend:

Please to follow the following procedure:



1. Check the DHCP server configuration according to product manual. If the configuration is correct, check the network cables.

2. Connect PCs to the S5700 directly to check whether the PCs can obtain IP addresses.

− If the PCs obtain IP addresses, the access switch may not transparently transmit VLAN packets. Check whether the related interfaces can transparently transmit VLAN packets.
− If the PCs cannot obtain IP addresses, go to step 3.

3. Check whether there is available IP address in the address pool.

<Switch> display ip pool interface vlanif1
  Pool-name      : Vlanif1
  Pool-No        : 6
  Lease          : 1 Days 0 Hours 0 Minutes
  Domain-name    : -
  DNS-server0    : -              
  NBNS-server0   : -              
  Netbios-type   : -              
  Position       : Interface       Status           : Unlocked
  Gateway-0      : 10.10.90.253   
  Mask           : 255.255.255.0
  VPN instance   : --
-----------------------------------------------------------------------------
         Start           End     Total  Used  Idle(Expired)  Conflict  Disable
-----------------------------------------------------------------------------
      10.10.90.1    10.10.90.254   253     1        252(0)         0        0
-----------------------------------------------------------------------------

If no available IP address exists:
   a. If all IP addresses have been allocated, run the reset ip pool interface Vlanif1 +expired/ Conflict command in the user view to reclaim conflicting IP addresses or expired IP addresses.
   b. If the address pool does not contain conflicting or expired IP address, reduce the IP address lease period. This is applicable to the scenarios where users often change.
If the address pool contains conflicting available IP addresses, enable DHCP debugging or capture DHCP packets. Check whether the DHCP server has received the DHCP DISCOVER packets from clients, and whether the DHCP server has replied with DHCP OFFER packets.

Note:
PCs can obtain IP addresses only after several DHCP packets have been exchanged between the switch and PCs.

4. Enabling STP may cause a delay to obtain IP addresses. Disable STP or set the interfaces connected to PCs as STP edge ports.

View more
  • x
  • convention:

Hi friend!
You can refer to this troubleshooting idea. Generally, the reason why the IP address cannot be obtained is that the ID address pool is insufficient. https://support.huawei.com/enterprise/en/doc/EDOC1100197871/e0653f04


Hope to help you!

View more
  • x
  • convention:

Good answer
View more
  • x
  • convention:

Comment

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

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

Login

Block
Are you sure to block this user?
Users on your blacklist cannot comment on your post,cannot mention you, cannot send you private messages.
Reminder
Please bind your phone number to obtain invitation bonus.