mac
Commands for DHCPv6
324
27.17 ipv6 general-prefix
Command: ipv6 general-prefix <prefix-name> <ipv6-prefix/prefix-length>
no ipv6 general-prefix <prefix-name>
Function: To define an IPv6 general prefix. The no form of this command will delete the
configuration.
Parameter: <prefix-name> is a character string less than 32 characters, to use as IPv6
general prefix name. <ipv6-prefix/prefix-length> is defined as IPv6 general prefix.
Command Mode: Global Mode.
Default: IPv6 general prefix is not configured by default.
Usage Guide: If IPv6 general prefix is configured, the interface will use the configured
prefix for IPv6 address generating. Commonly, the general prefix is used for enterprise
IPv6 prefix, and when entering an IPv6 address, users can simply add the address suffix
of to the name of the general prefix. The configured address prefix will be reserved in the
general address prefix pool. At most 8 general prefix can be configured at the same time.
When trying to remove a configured general prefix name, the operation will fail if any
interfaces used the configured prefix. Only one general prefix for a prefix name. The
general prefix cannot use the same prefix definition with prefixes learnt from prefix
delegation.
Example: To set the prefix of 2001:da8:221::/48 to general prefix my-prefix.
Switch(config)# ipv6 general-prefix my-prefix 2001:da8:221::/48
27.18 ipv6 local pool
Command: ipv6 local pool <poolname> <prefix/prefix-length> <assigned-length>
no ipv6 local pool <poolname>
Function: To configure the address pool for prefix delegation. The no form of this
command will remove the IPv6 prefix delegation configuration.
Parameters: <poolname> is the name for the IPv6 address pool of the prefix delegation,
the length name string should be less than 32. <prefix/prefix-length> is the address
prefix and its length of the prefix delegation. <assigned-length> is the length of the
prefix in the address pool which can be retrieved by the client, the assigned prefix length
should be no less than the value of <prefix-length>
Command Mode: Global Mode.
Default: No IPv6 prefix delegation address pool is configured by default.
Usage Guide: This command should be used with the “prefix delegation pool”
command to allocate address prefixes to the clients. If IPv6 prefix delegation is removed,










