< Home

Users Cannot Go Online After DHCP Policy VLAN Is Configured

Fault Description

Users cannot obtain configuration information such as IP addresses and fail to go online.

Procedure

  1. Run the display current-configuration | include dhcp enable command to check whether DHCP is globally enabled on the device.

    • If no information is displayed, DHCP is disabled. Run the dhcp enable command to enable DHCP.
    • If dhcp enable is displayed, DHCP is enabled. Go to step 2.

  2. Run the display this command in the VLAN where the DHCP server is located to check whether the DHCP policy VLAN function is correctly configured.

    • If the DHCP policy VLAN is based on MAC addresses, check whether the MAC address displayed behind dhcp policy-vlan mac-address belongs to the host who requests an IP address.
      • If not, run the dhcp policy-vlan mac-address command to specify the correct MAC address for the DHCP policy VLAN.
      • If yes, go to step 3.
    • If the DHCP policy VLAN is based on interfaces, check whether the interface displayed behind dhcp policy-vlan port belongs to the host who requests an IP address.
      • If not, run the dhcp policy-vlan port command to specify the correct interface for the DHCP policy VLAN.
      • If yes, go to step 3.
    • If neither MAC address-based nor interface-based DHCP policy VLAN is configured, check whether the ordinary DHCP policy VLAN is configured.
      • If the command output does not contain dhcp policy-vlan generic, run the dhcp policy-vlan generic command to configure the ordinary DHCP policy VLAN.
      • If the command output contains dhcp policy-vlan generic, go to step 3.

  3. Run the display current-configuration interface command on the device to check whether the interface connected to user has been added to the DHCP policy VLAN in untagged mode and the interface type is hybrid.

    Field

    Description

    Action

    port link-type access

    The interface type is access.

    Run the undo port link-type command to set the interface type to hybrid.

    port hybrid untagged vlan vlan-id

    If the value of vlan-id is different from the VLAN ID of the DHCP server, the interface has not been added to the DHCP policy VLAN.

    Run the port hybrid untagged vlan vlan-id command with the vlan-id value being the VLAN ID of the DHCP server.

    If the value of vlan-id is the same as the VLAN ID of the DHCP server, the interface has been added to the DHCP policy VLAN in untagged mode and the interface type is hybrid.

    Go to step 4.

    port hybrid tagged vlan vlan-id

    The interface is added to the VLAN in tagged mode.

    Run the port hybrid untagged vlan vlan-id command to add the interface to the VLAN in untagged mode.

    The preceding information is not displayed.

    The interface is not added to the VLAN configured with DHCP policy VLAN.

  4. Check whether the DHCP server connected to the device is correctly configured and there are IP addresses for allocation.

    If the DHCP server does not function properly, re-configure it according to Configuring a DHCP Server.

Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.