Configuring a DHCPv6 relay agent

You can enable the DHCPv6 relay agent function and specify the relay destination (the DHCP server) address on an interface.
  1. Enter global configuration mode by issuing the configure terminal command.
    device# configure terminal
  2. Enter interface configuration mode.
    device(config)# interface ethernet 1/2/3
  3. Specify the relay destination (the DHCP server) address on the interface.
    device(config-if-e10000-1/2/3)# ipv6 dhcp-relay destination 2001::2
    The DHCPv6 relay agent is enabled on the specified interface, and the IPv6 destination address, to which client messages are forwarded, is defined. You can configure up to 16 relay destination addresses on an interface.
  4. Specify the relay destination (the DHCP server) address on the interface and the outgoing interface on which DHCPv6 packets will be relayed.
    device(config-if-e10000-1/2/3)# ipv6 dhcp-relay destination fe80::224:38ff:febb:e3c0 outgoing-interface ethernet 1/2/5
    Use the outgoing-interface parameter when the destination relay address is a link-local or multicast address. Specify the interface type as ethernet, tunnel interface, or VE (including corresponding identifier).

The following example enables the DHCPv6 relay agent function on two different relay destinations (DHCP servers) for the specified ethernet interface, and specifies an ethernet port as the outgoing interface for the second destination.

device(config)# interface ethernet 1/2/3
device(config-if-e10000-1/2/3)# ipv6 dhcp-relay destination 2001::2 
device(config-if-e10000-1/2/3)# ipv6 dhcp-relay destination fe80::224:38ff:febb:e3c0 outgoing-interface ethernet 1/2/5