ipv6 address dhcp

To enable IPv6 address DHCP, use the interface GigabitEthernet 0 command in Configuration mode. This command does not have a no form.

interface GigabitEthernet 0

Syntax Description

interface

The command to configure an interface.

GigabitEthernet

Configures the Gigabit Ethernet interface.

0

Gigabit Ethernet port number to be configured.

Defaults

No default behavior or values.

Command Modes

Configuration

Usage Guidelines

None.

Examples

/admin# configure terminal

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

/admin#

 

When IPv6 DHCPv6 is enabled, the running configuration shows the interface settings similar to the following:

!

interface GigabitEthernet 0

ip address 172.23.90.116 255.255.255.0

ipv6 address dhcp

!

 

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:

!

interface GigabitEthernet 0

ip address 172.23.90.116 255.255.255.0

ipv6 address dhcp

!

 

Related Commands

Command

Description

show interface

Displays information about the system interfaces.

ip address (interface configuration mode)

Sets the IP address and netmask for the interface.

shutdown (interface configuration mode)

Shuts down the interface (see “shutdown”).

ipv6 address autoconfig

Enables IPv6 stateless autoconfiguration on an interface.

show running-config

Displays the contents of the currently running configuration file or the configuration.