Why Can't a PC Access the Internet after Obtaining an IP Address Through DHCP

Created Apr 27, 2017 09:00:46Latest reply Apr 27, 2017 11:31:48 738 1 0 0
Why Can't a PC Access the Internet after Obtaining an IP Address Through DHCP
  • x
  • convention:

ms.america     Created Apr 27, 2017 11:31:48 Helpful(0) Helpful(0)

In normal situations, a PC can access the Internet after obtaining an IP address through DHCP. However, if the IP address is assigned by a bogus DHCP server, the PC cannot access the Internet with the bogus IP address. If this problem occurs, you are advised to configure DHCP snooping on the Layer 2 access device or first DHCP relay agent from the device, to ensure that PCs can obtain correct IP addresses.

  • When you configure DHCP snooping on a Layer 2 access device, steps 1, 2, and 3 are mandatory and must be performed in sequence.

  • When you configure DHCP snooping on a DHCP relay agent, only steps 1 and 2 are required.

  1. Enable DHCP snooping globally.

    <HUAWEI> system-view
    [HUAWEI] dhcp enable
    [HUAWEI] dhcp snooping enable
  2. Configure the interfaces connected to DHCP clients. Perform the configuration on all interfaces connected to DHCP clients. GE0/0/1 is used as an example.

    [HUAWEI] interface gigabitethernet 0/0/1
    [HUAWEI-GigabitEthernet0/0/1] dhcp snooping enable
    [HUAWEI-GigabitEthernet0/0/1] quit
  3. Perform the configuration on interfaces connected to the DHCP server. GE0/0/2 is used as an example.

    [HUAWEI] interface gigabitethernet 0/0/2
    [HUAWEI-GigabitEthernet0/0/2] dhcp snooping trusted
    [HUAWEI-GigabitEthernet0/0/2] quit
  • x
  • convention:

Responses

Reply
You need to log in to reply to the post Login | Register

Notice:To ensure 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 not limited to politically sensitive content, content concerning pornography, gambling, drug abuse and trafficking, content that may disclose or infringe upon others' intellectual properties, including commercial secrets, 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“ Privacy Policy.”
If the attachment button is not available, update the Adobe Flash Player to the latest version!
Fast reply Scroll to top