Use this command to sets an address prefix for address assignment. This address must be in hexadecimal, using 16-bit values between colons.
If lifetime values are not configured, the default lifetime values for valid-lifetime and preferred-lifetime are considered to be infinite.
| Format | address prefix ipv6-prefix |[lifetime {valid-lifetime preferred-lifetime | infinite}] |
| Mode | IPv6 DHCP Pool Config |
| Term | Definition |
|---|---|
| lifetime | (Optional) Sets a length of time for the hosts to remember router advertisements. If configured, both valid and preferred lifetimes must be configured. |
| valid-lifetime | The amount of time, in seconds, the prefix remains valid for the requesting router to use. The range is from 60 through 4294967294. The preferred-lifetime value cannot exceed the valid-lifetime value. |
| preferred-lifetime | The amount of time, in seconds, that the prefix remains preferred for the requesting router to use. The range is from 60 through 4294967294. The preferred-lifetime value cannot exceed the valid-lifetime value. |
| infinite | An unlimited lifetime. |
Example: The following example shows how to configure an IPv6 address prefix for the IPv6 configuration pool pool1:
(Switch) #configure (Switch) (Config)# ipv6 dhcp pool pool1 (Switch) (Config-dhcp6s-pool)# address prefix 2001::/64 (Switch) (Config-dhcp6s-pool)# exit