< Home

Configuring the LDRA to Detect Client Locations

Context

To allow a DHCPv6 server to detect client locations on a DHCPv6 network, configure the lightweight DHCPv6 relay agent (LDRA) on the client-side access device.

After the LDRA is configured on a DHCPv6 network with a large number of trusted clients, disable the device from generating DHCP snooping binding entries. Without this function enabled, new users cannot go online if the number of DHCP snooping binding entries reaches the upper limit. In addition, the LDRA-enabled device inserts the interface-ID or remote-ID option into the Relay-Forward message to record client location information. Configure the formats of interface-ID and remote-ID depending on the actual location of users on the network.

Procedure

  1. Run system-view

    The system view is displayed.

  2. Run vlan vlan-id

    The VLAN view is displayed.

  3. Run dhcpv6 snooping relay-information enable [ trust ]

    The LDRA is enabled for DHCPv6 snooping.

    By default, the LDRA is disabled for DHCPv6 snooping.

  4. Run quit

    Return to the system view.

  5. (Optional) Run dhcpv6 interface-id format { default | user-defined text }

    The format of the interface-id option in the DHCPv6 packets is configured.

    By default, the interface-id option is in the default format.

  6. (Optional) Run dhcpv6 remote-id format { default | user-defined text }

    The format of the remote-id option in the DHCPv6 packets is configured.

    By default, the remote-id option is in the default format.

  7. (Optional) Disable the interface from generating DHCP snooping binding entries after the DHCP snooping function has been enabled.

    When this configuration is performed in the VLAN view, the configuration takes effect for all DHCP users belonging to this VLAN on all interfaces. When this configuration is performed in the interface view, the configuration takes effect for all DHCP users connecting to this interface.

    By default, an interface generates DHCP snooping binding entries after DHCP snooping is enabled.

    Configuration Dimension

    Step

    VLAN-based configuration

    For a batch of VLANs in the system view

    • Run the dhcp snooping enable no-user-binding vlan { vlan-id1 [ to vlan-id2 ] }&<1-10> command to disable the interfaces from generating DHCP snooping binding entries after DHCP snooping is enabled.

    For a single VLAN in the VLAN view

    1. Run the vlan vlan-id command to enter the VLAN view.
    2. Run the dhcp snooping enable no-user-binding command to disable the interfaces from generating DHCP snooping binding entries after DHCP snooping is enabled.
    3. Run the quit command to return to the system view.

    Interface-based configuration

    1. Run the interface interface-type interface-number command to enter the interface view.
    2. Run the dhcp snooping enable no-user-binding command to disable the interfaces from generating DHCP snooping binding entries after DHCP snooping is enabled.
    3. Run the quit command to return to the system view.

Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >