配置DHCPv6再保险lay agent

Prerequisites
  • An enabled layer 3 interface.

Procedure
  1. Enable the DHCPv6 agent with the commanddhcpv6-relay.
  2. Configure one or more IP helper addresses with the commandipv6 helper-address. This determines where the DHCPv6 agent forward DHCP requests.
  3. If you want to enable DHCP option 79 support to forward client link-layer addresses, use the commanddhcpv6-relay option 79.
  4. Review DHCPv6 relay agent configuration settings with the commandsshow dhcpv6-relayand显示ipv6 helper-address.

Example

This example creates the following configuration:

  • Enables the DHCPv6 relay agent.
  • Enables interface1/1/2and assigns an IPv6 address to it. (By default, all interfaces are layer 3 and disabled.)

  • Defines an IP helper address ofFF01::1:1000on interface1/1/2.
  • Enables DHCP option 79.

switch(config)#dhcpv6-relayswitch(config)#interface 1/1/2switch(config-if)#no shutdownswitch(config-if)#ipv6 address 2001:0db8:85a3::8a2e:0370:7334/24switch(config-if)#ip helper-address FF01::1:1000switch(config-if)#exitswitch(config)#dhcpv6-relay option 79