< Home

logging (IPv6 address pool view)

Function

The logging command enables the function of recording a log when the DHCPv6 or DHCPv6 PD server allocates an IPv6 address or prefix in the IPv6 address pool view.

The undo logging command disables the function of recording a log when the DHCPv6 or DHCPv6 PD server allocates an IPv6 address or prefix in the IPv6 address pool view.

By default, this function is disabled.

Format

logging [ allocation-address-success | allocation-prefix-success | detect-address-conflict | release-address-success | release-prefix-success | renew-address-success | renew-prefix-success ] *

undo logging [ allocation-address-success | allocation-prefix-success | detect-address-conflict | release-address-success | release-prefix-success | renew-address-success | renew-prefix-success ] *

Parameters

If the following parameters are not specified, the function of recording related logs is enabled or disabled.

Parameter Description Value

allocation-address-success

Displays a log when an IPv6 address is successfully allocated.

-

allocation-prefix-success

Displays a log when an IPv6 prefix is successfully allocated.

-

detect-address-conflict

Displays a log when an IPv6 address conflict is detected.

-

release-address-success

Displays a log when an IPv6 address is released.

-

release-prefix-success

Displays a log when an IPv6 prefix is released.

-

renew-address-success

Displays a log when an IPv6 address is renewed.

-

renew-prefix-success

Displays a log when an IPv6 prefix is renewed.

-

Views

IPv6 address pool view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

This command is applied to the DHCPv6 or DHCPv6 PD server. After the logging command is configured, the server records a log if an IPv6 address or prefix is allocated, renewed, or released, or an IPv6 address or prefix conflict is detected, facilitating routine maintenance and fault locating.

You can run the display dhcpv6 pool command to check the status of the log recording function on the server.

Prerequisites

An IPv6 address pool has been created using the dhcpv6 pool command.

Precautions

  • 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.

Example

# Enable the function of recording a log when the server allocates an IPv6 address or prefix in the IPv6 address pool pool1.

<HUAWEI> system-view
[HUAWEI] dhcpv6 pool pool1
[HUAWEI-dhcpv6-pool-pool1] logging
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >