The address prefix command configures the network prefix and lifetime in the IPv6 address pool view.
The undo address prefix command deletes the network prefix and lifetime that are configured in the IPv6 address pool view.
By default, no network prefix and lifetime are configured in the IPv6 address pool view.
address prefix ipv6-prefix/ipv6-prefix-length [ eui-64 ] [ life-time { valid-lifetime | infinite } { preferred-lifetime | infinite } ]
address prefix ipv6-prefix/ipv6-prefix-length [ eui-64 ] [ life-time preferred-lifetime days days [ hours hours [ minutes minutes [ seconds seconds ] ] ] valid-lifetime days days [ hours hours [ minutes minutes [ seconds seconds ] ] ] ]
address prefix ipv6-prefix/ipv6-prefix-length [ lock ]
undo address prefix ipv6-prefix/ipv6-prefix-length [ lock ]
Parameter |
Description |
Value |
---|---|---|
ipv6-prefix/ipv6-prefix-length |
Specifies the network prefix and prefix length. |
ipv6-prefix: The value has 128 bits. It is represented as eight groups of four hexadecimal digits with the groups being separated by colons, in the format of X:X:X:X:X:X:X:X. ipv6-prefix-length: The value is an integer that ranges from 1 to 128. |
eui-64 |
Generates the interface ID based on the user MAC address according to the EUI-64 specifications. This method can be used to allocate addresses only when the client DUID type is LL or LLT. |
- |
life-time |
Specifies the network prefix lifetime. |
- |
valid-lifetime |
Specifies the valid lifetime. |
The value is an integer that ranges from 60 to 172799999, in seconds. The default value is 172800, that is two days. |
preferred-lifetime |
Specifies the preferred lifetime. The preferred lifetime cannot exceed the valid lifetime. |
The value is an integer that ranges from 60 to 172799999, in seconds. The default value is 86400, that is one day. |
infinite |
Sets the lifetime to infinite. When the preferred lifetime is set to infinite, the valid lifetime must be set to infinite. |
- |
preferred-lifetime days days [ hours hours [ minutes minutes [seconds seconds ] ] ] |
Specifies the preferred lifetime of the IPv6 prefix. The time must be no less than 1 minute. |
|
valid-lifetime days days [ hours hours [ minutes minutes [seconds seconds ] ] ] |
Specifies the valid lifetime of the IPv6 prefix. The time must be no less than 1 minute and cannot be less than the preferred lifetime. |
|
lock |
Locks the address prefix. |
- |
Usage Scenario
When the device functions as a DHCPv6 server, run the address prefix command to configure the network prefix in an IPv6 address pool. If IPv6 addresses in an IPv6 address pool have been assigned to DHCPv6 clients, only the value of life-time can be modified.
Precautions
If no DHCPv6 relay agent exists between the DHCPv6 server and client, the length of the network prefix configured to the DHCPv6 server address pool must be longer than or equal to the prefix length of IPv6 addresses of Layer 3 interfaces on the DHCPv6 server.
Idle addresses or prefixes are assigned to DHCPv6 clients from the IPv6 address pool. Reserved addresses, conflicted addresses, and used addresses cannot be assigned to DHCPv6 clients. Reserved addresses include unspecified addresses, multicast addresses, loopback addresses, link-local addresses, NSAP addresses, and anycast addresses (defined in RFC 2526).
Prerequisites
An address pool has been created by using the dhcpv6 pool command.