< Home

(Optional) Configuring the Function of Recording a Log When an IPv6 Address or Prefix Is Allocated

Context

Recording a log on the DHCPv6 or DHCPv6 PD server when an IPv6 address or prefix is allocated, renewed, or released, or an IPv6 address or prefix conflict is detected facilitates routine maintenance and fault locating.

  • After the log recording function is enabled, the server may frequently record logs if a large number of clients request for IPv6 addresses or prefixes, deteriorating device performance.
  • IP address allocation logs are recorded in the AM module. To view log information, the information center must be enabled. In addition, default settings for log output vary depending on various factors including the log level and output direction. For details, see Information Center Configuration in the CLI-based Configuration - Device Management Configuration Guide.

    For example, the level of logs indicating that an IP address is successfully allocated, an IP address is successfully renewed, and an IP address is successfully released is informational, and these logs are not recorded in the log buffer by default. You can run the info-center source AM channel 4 log level informational command to change the level of the logs to be recorded in the log buffer. You can then run the display logbuffer command to check the preceding logs.

Procedure

  1. Run the system-view command to enter the system view.
  2. Run the dhcpv6 pool pool-name command to create an IPv6 address pool and enter the IPv6 address pool view.

    By default, no IPv6 address pool is created on a device.

  3. Run the logging [ allocation-address-success | allocation-prefix-success | detect-address-conflict | release-address-success | release-prefix-success | renew-address-success | renew-prefix-success ] * command to enable the function of recording a log when the DHCPv6 or DHCPv6 PD server allocates an IPv6 address or prefix.

    By default, the function of recording a log when the DHCPv6 or DHCPv6 PD server allocates an IPv6 address or prefix is disabled.

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