To enable IPv6 address DHCP, use the interface GigabitEthernet 0 command in Configuration mode. This command does not have a no form.
No default behavior or values.
Enter configuration commands, one per line. End with CNTL/Z.
/admin(config)# interface GigabitEthernet 0
/admin(config-GigabitEthernet)# ipv6 address dhcp
/admin(config-GigabitEthernet)# end
When IPv6 DHCPv6 is enabled, the running configuration shows the interface settings similar to the following:
ip address 172.23.90.116 255.255.255.0
Note The IPv6 stateless autoconfiguration and IPv6 address DHCP are not mutually exclusive. It is possible to have both IPv6 stateless autoconfiguration and IPv6 address DHCP on the same interface. You can use the show interface to display what IPv6 addresses are in use for a particular interface.
When both the IPv6 stateless autoconfiguration and IPv6 address DHCP are enabled, the running configuration shows the interface settings similar to the following:
ip address 172.23.90.116 255.255.255.0
ip address (interface configuration mode) |
|
shutdown (interface configuration mode) |
Shuts down the interface (see “shutdown”). |
Displays the contents of the currently running configuration file or the configuration. |