Configuring DHCPv6 Server and Relay Settings 1279
Configuring DHCPv6 Interface Information

Beginning in Privileged EXEC mode, use the following commands to

configure an interface as a DHCPv6 server or a DHCPv6 relay agent. The

server and relay functionality are mutually exclusive. In other words, a VLAN

routing interface can be configured as a DHCPv6 server or a DHCPv6 relay

agent, but not both.

Command Purpose
configure Enter Global Configuration mode.
interface {tunnel
tunnel-id
| vlan
vlan-id
}
Enter interface configuration mode for a tunnel or VLAN
routing interface to configure as a DHCPv6 relay agent.
ipv6 dhcp relay
{destination

relay-

address
[interface vlan
vlan-id
] | interface vlan
vlan-id
} [remote-id
{duid-ifid |

user-

defined-string

}]
Configure the interface for DHCPv6 relay functionality.
destination
— Keyword that sets the relay server IPv6
address.
relay-address
— An IPv6 address of a DHCPv6 relay
server.
interface
— Sets the relay server interface.
vlan-id
— A valid VLAN ID.
• [remote-id {duid-ifid |
user-defined-string
}] — The
Relay Agent Information Option “remote ID” sub-option
to be added to relayed messages. This can either be the
special keyword duid-ifid, which causes the “remote ID”
to be derived from the DHCPv6 server DUID and the
relay interface number, or it can be specified as a user-
defined string.
exit Exit to Global Configuration Mode
interface {tunnel
tunnel-id
| vlan
vlan-id
}
Enter interface configuration mode for a tunnel or VLAN
routing interface to configure with DHCPv6 server
functionality.