DHCPv6 Commands 963Command ModeInterface Configuration (VLAN, Tunnel) modeUser GuidelinesThe IPv6 DHCP service must be enavbled to use this feature. Enable theIPv6 DHCP service using the service dhcpv6 command. Ifrelay-address is anIPv6 global address, thenrelay-interface is not required. Ifrelay-address is alink-local or multicast address, thenrelay-interface is required. Finally, a valueforrelay-address is not specified, then a value forrelay-interface must bespecified and the DHCPV6-ALLAGENTS multicast address (i.e. FF02::1:2)is used to relay DHCPv6 messages to the relay server. An IP interface (VLAN)can be configured in DHCP relay mode or DHCP server mode. Configuringan interface in DHCP relay mode overwrites the DHCP server mode and vice-versa.An IP interface configured in relay mode cannot be configured as a DHCPclient (ip address dhcp).ExampleThe following example configures VLAN 15 for DHCPv6 relay functionality.console(config)#service dhcpv6console(config)#interface vlan 15console(config-if-vlan15)#ipv6 dhcp relay destination 2020:1::1ipv6 dhcp serverUse the ipv6 dhcp server command in Interface Configuration mode toconfigure DHCPv6 server functionality on an interface. For a particularinterface DHCPv6 server and DHCPv6 relay functions are mutually exclusive.Syntaxipv6 dhcp serverpool-name [rapid-commit] [preferencepref-value]•pool-name — The name of the DHCPv6 pool containing stateless and/orprefix delegation parameters• rapid-commit — An option that allows for an abbreviated exchangebetween the client and server.