The documentation set for this product strives to use bias-free language. For the purposes of this documentation set, bias-free is defined as language that does not imply discrimination based on age, disability, gender, racial identity, ethnic identity, sexual orientation, socioeconomic status, and intersectionality. Exceptions may be present in the documentation due to language that is hardcoded in the user interfaces of the product software, language used based on RFP documentation, or language that is used by a referenced third-party product. Learn more about how Cisco is using Inclusive Language.
Restrictions for Configuring a DHCPv6 Relay Source
If the configured interface is shut down, or if all of its IPv6 addresses are removed, the relay will revert to its standard
behavior.
The command line interface (CLI) will report an error if the user attempts to specify an interface that has no IPv6 addresses
configured.
The interface configuration takes precedence over the global configuration if both have been configured.
Information About DHCPv6 Relay Source Configuration
The DHCPv6 server sends its replies to the source address of relayed messages. Normally, a DHCPv6 relay uses the address
of the server-facing interface used to send messages as the source. However, in some networks, it may be desirable to configure
a more stable address (such as a loopback interface) and have the relay use that interface as the source address of relayed
messages. The DHCPv6 Relay Source Configuration feature provides this capability.
The figure below shows a simple network with a single client, relay, and server. The relay and server communicate over 2001:DB8:1::/64,
and the relay has a client-facing interface on 2001:DB8:2::/64. The relay also has a loopback interface configured with address
2001:DB8:3:1/64.
When the relay receives a request from the client, the relay includes an address from the client-facing interface (Ethernet
1/0) in the link-address field of a relay-forward message. This address is used by the server to select an address pool. The
relay then sends the relay-forward message toward the server. By default, the address of the server-facing (Ethernet 0/0)
interface is used as the IPv6 source, and the server will send any reply to that address.
If the relay source interface is explicitly configured, the relay will use that interface’s primary IPv6 address as the IPv6
source for messages it forwards. For example, configuring Loopback 0 as the source would cause the relay to use 2001:DB8:3:1/64
as the IPv6 source address for messages relayed toward the server.
Configuring a DHCPv6 Relay Source
Perform the following tasks to configure a DHCPv6 relay source:
Configuring a DHCPv6 Relay Source on an Interface
Perform this task to configure an interface to use as the source when relaying messages.
Procedure
Command or Action
Purpose
Step 1
enable
Example:
Device> enable
Enables privileged EXEC mode.
Enter your password if prompted.
Step 2
configureterminal
Example:
Device# configure terminal
Enters global configuration mode.
Step 3
interfacetypenumber
Example:
Device(config)# interface loopback 0
Specifies an interface type and number, and enters interface configuration mode.
Additional References for DHCPv6 Relay Source Configuration
Standards and RFCs
Standard/RFC
Title
RFCs for IPv6
IPv6 RFCs
Feature History for DHCPv6 Relay Source Configuration
This table provides release and related information for the features explained in this module.
These features are available in all the releases subsequent to the one they were introduced in, unless noted otherwise.
Release
Feature
Feature Information
Cisco IOS XE Fuji 16.9.2
DHCPv6 Relay Source Configuration
In some networks that use DHCPv6, it may be desirable to configure a stable address (such as a loopback interface) and have
the relay use that interface as the source address of relayed messages. The DHCPv6 relay source configuration feature provides
this capability.
Cisco IOS XE Cupertino 17.9.1
DHCPv6 Relay Source Configuration
This feature was implemented on C9200CX-12P-2X2G, C9200CX-8P-2X2G, and C9200CX-12T-2X2G models of the Cisco Catalyst 9200CX
Series Switches, which were introduced in this release.
Use the Cisco Feature Navigator to find information about platform and software image support. To access Cisco Feature Navigator,
go to http://www.cisco.com/go/cfn.