Configuring DHCP for IPv6 Address Assignment Default DHCPv6 Address Assignment Configuration By default, no DHCPv6 features are configured on the switch. DHCPv6 Address Assignment Configuration Guidelines The following prerequisites apply when configuring DHCPv6 address assignment: • In the following procedures, the specified interface must be one of these Layer 3 interfaces: • If the IPv6 address is not explicitly configured, enable IPv6 routing by using the ipv6 enable command. • DHCPv6 routing must be enabled on a Layer 3 interface. • SVI: A VLAN interface created by using the interface vlan vlan_id command. • EtherChannel port channel in Layer 3 mode:
a port-channel logical interface created by using the interface port-channel port-channel-number command. • The device can act as a DHCPv6 client, server, or relay agent. The DHCPv6 client, server, and relay function are mutually exclusive on an interface. Configuring DHCP Configuring DHCP for IPv6 Address Assignment Command or Action Purpose Step 7 Use one of the following: • interface range port-range • interface interface-id Example: Device(config)# interface gigabitethernet 1/0/2 Configures multiple physical ports that are connected to the DHCP clients, and enters interface range configuration mode.
or Configures a single physical port that is connected to the DHCP client, and enter interface configuration mode. Step 8 switchport mode access Example: Device(config-if)# switchport mode access Defines the VLAN membership mode for the port. Step 9 switchport access vlan vlan-id Example: Device(config-if)# switchport access vlan 1 Assigns the ports to the same VLAN as configured in Step 2. Step 10 end Example: Device(config-if)# end Exits interface configuration mode and returns to privileged EXEC mode. Configuring DHCP 13