Configuring DHCPv6 Lease Proxy

Context

If a DHCPv6 server has assigned a long lease to a client, the user will go offline when the client is faulty or the link between the client and the BRAS fails. However, if the lease time is not expired, the DHCPv6 server cannot detect user offline or release the IPv6 address assigned to the user in time, leading to an IPv6 address waste. To prevent this problem, configure DHCPv6 lease proxy in a domain or on a BAS interface.

Procedure

  • Configure DHCPv6 lease proxy in a domain.
    1. Run system-view

      The system view is displayed.

    2. Run aaa

      The AAA view is displayed.

    3. Run domain domain-name

      A domain is created and the domain view is displayed.

    4. Run dhcpv6 lease-proxy preferred-lifetime preferred-lifetime valid-lifetime valid-lifetime [ user-detect ]

      DHCPv6 lease proxy is enabled and a proxy lease time is configured.

      If DHCPv6 lease proxy has been configured both in the BAS interface view and the AAA domain view, the command configured in the BAS interface view takes effect.

    5. (Optional) Configure a rate limit lease proxy.

      1. Run quit

        Return to the system view.

      2. Run slot slot-id

        The slot view is displayed.

      3. Run dhcpv6 lease-proxy rate-limit rate-value

        A rate limit is configured for lease proxy.

    6. Run commit

      The configuration is committed.

  • Enable DHCPv6 lease proxy on a BAS interface.
    1. Run system-view

      The system view is displayed.

    2. Run interface interface-type interface-number

      The interface view is displayed.

    3. Run bas

      The BAS interface view is displayed.

    4. Run access-type layer2-subscriber [ bas-interface-name bname | default-domain { pre-authentication predname | authentication [ force | replace ] dname } * | accounting-copy radius-server rd-name ] * or access-type layer3-subscriber [ default-domain { [ pre-authentication predname ] authentication [ force | replace ] dname } ]

      The type of the BAS interface is configured.

    5. Run dhcpv6 lease-proxy preferred-lifetime preferred-lifetime valid-lifetime valid-lifetime [ user-detect ]

      DHCPv6 lease proxy is enabled and a proxy lease time is configured.

      If DHCPv6 lease proxy has been configured both in the BAS interface view and the AAA domain view, the command configured in the BAS interface view takes effect.

    6. (Optional) Configure a rate limit lease proxy.

      1. Run quit

        Return to the system view.

      2. Run slot slot-id

        The slot view is displayed.

      3. Run dhcpv6 lease-proxy rate-limit rate-value

        A rate limit is configured for lease proxy.

    7. Run commit

      The configuration is committed.

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