ipv6 dhcp relay source-address

Use ipv6 dhcp relay source-address to specify the source IPv6 address for relayed DHCPv6 requests.

Use undo ipv6 dhcp relay source-address to restore the default.

Syntax

ipv6 dhcp relay source-address { ipv6-address | interface interface-type interface-number }

undo ipv6 dhcp relay source-addres

Default

The DHCPv6 relay agent uses the IPv6 global unicast address of the interface that connects to the DHCPv6 server as the source IPv6 address for relayed DHCPv6 requests.

Views

Interface view

Predefined user roles

network-admin

mdc-admin

Parameters

ipv6-address: Specifies a source IPv6 address.

interface interface-type interface-number: Uses the IPv6 address of an interface as the source IPv6 address. The interface-type interface-number arguments specify an interface by its type and number.

Usage guidelines

This command is required if a relay interface does not have routes to DHCPv6 servers. You can specify a global unicast address or the IPv6 address of another interface (typically the loopback interface) as the source IPv6 address for DHCPv6 requests. The relay interface inserts the source IPv6 address in the source IPv6 address field of DHCPv6 requests.

If the specified interface does not have a global unicast IPv6 address, the IPv6 address of the output interface is used as the source address for relayed DHCPv6 requests.

If you execute this command multiple times, the most recent configuration takes effect.

Examples

# Specify 10::1 as the source IPv6 address for relayed DHCPv6 requests on VLAN-interface 2.

<Sysname> system-view
[Sysname] interface vlan-interface 2
[Sysname-Vlan-interface2] ipv6 dhcp relay source-address 10::1