Courseiva
IPv6Interface Config

ipv6 dhcp server [pool-name]

Activates DHCPv6 server functionality on an interface using a configured pool.

Definition: ipv6 dhcp server [pool-name] is a Cisco IOS interface config command. Enables a DHCPv6 server on an interface and links it to a named DHCPv6 pool. Clients on that interface receive IPv6 addresses and parameters from the specified pool.

Syntax·Interface Config
ipv6 dhcp server <pool-name>

When to Use This Command

  • Serving IPv6 addresses to LAN hosts from a router acting as DHCPv6 server.
  • Enabling stateful DHCPv6 on a gateway interface.
  • Providing stateless DHCPv6 (DNS/domain only) when combined with SLAAC.
  • Required step after creating an 'ipv6 dhcp pool'.

Command Examples

Enable DHCPv6 server on LAN interface

R1(config)# interface GigabitEthernet0/1 R1(config-if)# ipv6 address 2001:db8:1::1/64 R1(config-if)# ipv6 dhcp server IPV6-CLIENTS R1(config-if)# ipv6 nd managed-config-flag
R1(config-if)#

The interface now serves DHCPv6 addresses from the IPV6-CLIENTS pool. The M flag tells clients to request an address from DHCPv6 instead of or in addition to SLAAC.

Verify active DHCPv6 server

R1# show ipv6 dhcp interface GigabitEthernet0/1
GigabitEthernet0/1 is in server mode
  Using pool: IPV6-CLIENTS
  Preference value: 0
  Hint from client: ignored
  Rapid-Commit: disabled

Confirms the interface is in server mode using the IPV6-CLIENTS pool. Preference 0 is the default (used for server selection when multiple DHCPv6 servers exist).

Understanding the Output

Verify with 'show ipv6 dhcp interface [intf]' to confirm server mode and pool. Use 'show ipv6 dhcp binding' to see active leases. If no clients appear in the binding table, check that the M or O flag is set on the interface and that clients are sending DHCPv6 Solicit messages.

CCNA Exam Tips

1.

CCNA exam tip: 'ipv6 dhcp server' is configured per-interface, not globally. Each interface that serves clients needs this command.

2.

CCNA exam tip: DHCPv6 uses UDP port 546 (client) and 547 (server) — different from IPv4 DHCP (67/68).

3.

CCNA exam tip: For stateless DHCPv6 (DNS only, addresses from SLAAC), use the O flag but NOT the M flag.

4.

CCNA exam tip: 'show ipv6 dhcp interface' and 'show ipv6 dhcp pool' are the two key verification commands.

Common Mistakes

Mistake 1: Referencing a pool name that doesn't exist or has a typo — no addresses are served.

Mistake 2: Forgetting to set the M or O flag on the interface — hosts fall back to SLAAC only.

Mistake 3: Configuring DHCPv6 server without configuring an IPv6 address on the interface — DHCPv6 requires the interface to be IPv6-enabled.

ipv6 dhcp server [pool-name] vs ipv6 dhcp pool [name]

These two commands are commonly confused because both are essential for configuring DHCPv6 on Cisco IOS, but one activates the service on an interface while the other defines the addressing and parameter pool. Understanding their distinct roles is critical for correct deployment.

Aspectipv6 dhcp server [pool-name]ipv6 dhcp pool [name]
ScopeInterface-specific; enables DHCPv6 service on a single interfaceGlobal; defines pool configuration for entire router
Configuration modeInterface configuration modeGlobal configuration mode, then DHCPv6 pool sub-mode
PersistenceOnly persists while interface exists and is enabledPersists in running config regardless of interface state
PrecedenceLinks pool to interface; only one pool per interfaceCreates pool; can be linked to multiple interfaces or none
Typical useActivating stateless or stateful DHCPv6 on a specific LAN segmentDefining address range, DNS, domain, and other parameters for clients

Use ipv6 dhcp server [pool-name] when you need to enable DHCPv6 service on a specific interface and tie it to an already-defined pool.

Use ipv6 dhcp pool [name] when you need to create or modify the pool parameters (e.g., address prefix, DNS servers) before or after attaching it to an interface.

Related Commands

Practice for the CCNA 200-301

Test your knowledge with practice questions covering all CCNA 200-301 exam domains.

Practice CCNA 200-301 Questions