reserved ipv6-address

Function

The reserved ipv6-address command configures a reservation type for the IPv6 addresses in a local prefix pool.

The undo reserved ipv6-address command deletes the configured reservation type.

The reserved prefix command configures a reservation type for the prefixes in a delegation prefix pool.

The undo reserved prefix command deletes the configured reservation type.

By default, prefixes are not reserved, meaning that prefixes are recycled after users get offline.

By default, IPv6 addresses are not reserved, meaning that IPv6 addresses are recycled after users get offline.

This command is supported only on the NetEngine 8000 F1A.

Format

reserved prefix { mac | duid } [ lease ]

reserved ipv6-address { mac | duid } [ lease ]

undo reserved { prefix | ipv6-address }

Parameters

Parameter Description Value
mac

Reserves prefixes based on MAC addresses.

-

duid

Reserves prefixes based on DUIDs.

-

lease

Reserves prefixes during a lease.

-

Views

IPv6 prefix pool view

Default Level

2: Configuration level

Task Name and Operations

Task Name Operations
ipv6pool write

Usage Guidelines

Usage Scenario

If an offline user wants to get online again using the IP address that was applied for the first time, you can run the reserved ipv6-address command to configure an IPv6 address reservation type. Different parameters can be configured in the reserved ipv6-address command:

  • To use DHCPv6 to dynamically allocate IPv6 addresses based on MAC addresses to end users, configure mac in the command to reserve the IPv6 addresses.
  • To use DHCPv6 to dynamically allocate IP addresses based on MAC addresses to end users during a valid lease, configure mac and lease in the command to reserve the IPv6 addresses.
  • To use DHCPv6 to dynamically allocate IPv6 addresses based on DUIDs to end users, configure duid in the command to reserve the IPv6 addresses.
  • To use DHCPv6 to dynamically allocate IP addresses based on DUIDs to end users during a valid lease, configure duid and lease in the command to reserve the IPv6 addresses.

    If a user that has get offline wants to get online again using the prefix that was applied for the first time, you can run the reserved prefix command to configure a prefix reservation type. Different parameters can be configured in the

    reserved prefix command:
  • To use NDRA to dynamically allocate exclusive prefixes to PPPoE and L2TP users based on MAC addresses, configure mac in the command to reserve the prefixes.
  • To use DHCPv6-PD to dynamically allocate prefixes based on MAC addresses to end users, configure mac in the command to reserve the prefixes.
  • To use DHCPv6-PD to dynamically allocate prefixes based on MAC addresses to end users during a valid lease, configure mac and lease in the command to reserve the prefixes.
  • To use DHCPv6-PD to dynamically allocate prefixes based on DUIDs to end users, configure duid in the command to reserve the prefixes.
  • To use DHCPv6-PD to dynamically allocate prefixes based on DUIDs to end users during a valid lease, configure duid and lease in the command to reserve the prefixes.

Precautions

  • In VS mode, this command is supported only in the admin VS.
  • The reserved ipv6-address command can be configured only in the local and remote prefix pools.
  • The reserved prefix command can be configured only in the delegation prefix pool.
  • After the reserved ipv6-address command is run, the specified address or prefix is reserved to a specified user, and other users cannot obtain this address or prefix. The IP addresses or prefixes should be properly planned to make this function take effect. If the reserved address or prefix needs to be reclaimed, run the recycle ipv6-address command, the undo reserved ipv6-address command, or recycle reserved ipv6-address command.
  • After the reserved prefix command is run, the specified prefix is reserved to a specified user, and other users cannot obtain this prefix. The prefixes should be properly planned to make this function take effect. If the reserved prefix needs to be reclaimed, run the recycle prefix command, undo reserved prefix command, or recycle reserved prefix command.
  • The function corresponding to the dhcpv6-server replace client-duid command is mutually exclusive with the reservation function configured by running the reserved ipv6-address { mac | duid } [ lease ] command in the remote address pool. After an address is reserved in the remote address pool, the DHCP server does not get aware of user logout and the IP address will be kept for one lease time. If the DUID of the user is replaced in this case, the DHCP server fails to query the user or the client DUID of the user is detected to be incorrect.

Example

# Configure a device to reserve prefixes based on MAC addresses.
<HUAWEI> system-view
[~HUAWEI] ipv6 prefix fix-prefix1 delegation
 Info: Create a prefix pool.
[*HUAWEI-ipv6-prefix-fix-prefix1] commit
[~HUAWEI-ipv6-prefix-fix-prefix1] reserved prefix mac lease
# Configure a device to reserve IPv6 addresses based on MAC addresses.
<HUAWEI> system-view
[~HUAWEI] ipv6 prefix fix-prefix1 local
 Info: Create a prefix pool.
[*HUAWEI-ipv6-prefix-fix-prefix1] commit
[~HUAWEI-ipv6-prefix-fix-prefix1] reserved ipv6-address mac lease
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >