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.
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 ] *
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. |
- |
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
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.