static-bind prefix
Syntax
static-bind prefix prefix/prefix-len duid duid [ iaid iaid ] [ preferred-lifetime preferred-lifetime valid-lifetime valid-lifetime ]
undo static-bind prefix prefix/prefix-len
View
DHCPv6 address pool view
Default level
2: System level
Parameters
prefix/prefix-len: Static prefix and prefix length.
duid duid: Client DUID. The value is an even hexadecimal number, in the range of 2 to 256.
iaid iaid: Client IAID. The value is a hexadecimal number in the range of 0 to FFFFFFFF. If no IAID is specified, the server does not match against the client IAID for prefix assignment.
preferred-lifetime preferred-lifetime: Specifies the preferred lifetime of the prefix to be assigned. The value ranges from 60 to 4294967295, in seconds. The default value is 604800 seconds, that is, seven days.
valid-lifetime valid-lifetime: Specifies the valid lifetime of the prefix to be assigned. The value ranges from 60 to 4294967295, in seconds. The default value is 2592000 seconds, that is, 30 days. The valid lifetime must be greater than or equal to the preferred lifetime.
Description
Use static-bind prefix to configure a static prefix.
Use undo static-bind prefix to remove a static prefix.
No static prefix is configured by default.
After a static prefix is bound to a client, the configuration cannot be modified. You need to delete the static prefix before you can bind the prefix to another client.
Examples
# Configure static prefix 2001:0410::/35 in address pool 1, and specify the DUID as 00030001CA0006A400, the IAID as A1A1A1A1, the preferred lifetime as one day, and the valid lifetime as three days.
<Sysname> system-view [Sysname] ipv6 dhcp pool 1 [Sysname-dhcp6-pool-1] static-bind prefix 2001:0410::/35 duid 00030001CA0006A400 iaid A1A1A1A1 preferred-lifetime 86400 valid-lifetime 259200