|
Command or Action |
Purpose |
Step 1 |
configure terminal
Example:
Switch# configure terminal
|
Enters global configuration mode. |
Step 2 |
ipv6 dhcp pool poolname
Example:
Switch(config)# ipv6 dhcp pool 7
|
Enters DHCP pool configuration mode, and define the name for the IPv6 DHCP pool. The pool name can be a symbolic string (such as Engineering) or an integer (such as 0). |
Step 3 |
address prefix IPv6-prefix {lifetime} {t1 t1 | infinite}
Example:
Switch(config-dhcpv6)# address prefix 2001:1000::0/64 lifetime 3600
|
(Optional) Specifies an address prefix for address assignment. This address must be in hexadecimal, using 16-bit values between colons. lifetime t1 t1—Specifies a time interval (in seconds) that an IPv6 address prefix remains in the valid state. The range is 5 to 4294967295 seconds. Specify infinite for no time interval. |
Step 4 |
link-address IPv6-prefix
Example:
Switch(config-dhcpv6)# link-address 2001:1002::0/64
|
(Optional) Specifies a link-address IPv6 prefix. When an address on the incoming interface or a link-address in the packet matches the specified IPv6 prefix, the server uses the configuration information pool. This address must be in hexadecimal, using 16-bit values between colons. |
Step 5 |
vendor-specific vendor-id
Example:
Switch(config-dhcpv6)# vendor-specific 9
|
(Optional) Enters vendor-specific configuration mode and specifies a vendor-specific identification number. This number is the vendor IANA Private Enterprise Number. The range is 1 to 4294967295. |
Step 6 |
suboption number {address IPv6-address | ascii ASCII-string | hex hex-string}
Example:
Switch(config-dhcpv6-vs)# suboption 1 address 1000:235D::
|
(Optional) Enters a vendor-specific suboption number. The range is 1 to 65535. Enter an IPv6 address, ASCII text, or a hex string as defined by the suboption parameters. |
Step 7 |
exit
Example:
Switch(config-dhcpv6-vs)# exit
|
Returns to DHCP pool configuration mode. |
Step 8 |
exit
Example:
Switch(config-dhcpv6)# exit
|
Returns to global configuration mode. |
Step 9 |
interface interface-id
Example:
Switch(config)# interface gigabitethernet 1/0/1
|
Enters interface configuration mode, and specifies the interface to configure. |
Step 10 |
ipv6 dhcp server [poolname | automatic] [rapid-commit] [preference value] [allow-hint]
Example:
Switch(config-if)# ipv6 dhcp server automatic
|
Enables DHCPv6 server function on an interface.
-
poolname—(Optional) User-defined name for the IPv6 DHCP pool. The pool name can be a symbolic string (such as Engineering) or an integer (such as 0).
-
automatic—(Optional) Enables the system to automatically determine which pool to use when allocating addresses for a client.
-
rapid-commit—(Optional) Allows two-message exchange method.
-
preference value—(Optional) Configures the preference value carried in the preference option in the advertise message sent by the server. The range is from 0 to 255. The preference value default is 0.
-
allow-hint—(Optional) Specifies whether the server should consider client suggestions in the SOLICIT message. By default, the server ignores client hints.
|
Step 11 |
end
Example:
Switch(config)# end
|
Returns to privileged EXEC mode. |
Step 12 |
Do one of the following:
-
show ipv6 dhcp pool
-
show ipv6 dhcp interface
Example: Switch# show ipv6 dhcp pool or Switch# show ipv6 dhcp interface
|
-
Verifies DHCPv6 pool configuration.
-
Verifies that the DHCPv6 server function is enabled on an interface.
|
Step 13 |
copy running-config startup-config
Example:
Switch# copy running-config startup-config
|
(Optional) Saves your entries in the configuration file. |