Specifying a gateway address for DHCPv6 clients

About specifying a gateway address for DHCPv6 client

By default, the DHCPv6 relay agent fills the link-address field of DHCPv6 Solicit and Request packets with the first IPv6 address of the relay interface. You can specify a gateway address on the relay agent for DHCPv6 clients. The DHCPv6 relay agent uses the specified gateway address to fill the link-address field of DHCPv6 Solicit and Request packets.

Procedure

  1. Enter system view.

    system-view

  2. Enter interface view.

    interface interface-type interface-number

  3. Specify a gateway address for DHCPv6 clients.

    ipv6 dhcp relay gateway ipv6-address

    By default, the DHCPv6 relay agent uses the first IPv6 address of the relay interface as the clients' gateway address.