配置DHCPv6再保险lay agent
Prerequisites
An enabled layer 3 interface.
Procedure
- Enable the DHCPv6 agent with the command
dhcpv6-relay
. - Configure one or more IP helper addresses with the command
ipv6 helper-address
. This determines where the DHCPv6 agent forward DHCP requests. - If you want to enable DHCP option 79 support to forward client link-layer addresses, use the command
dhcpv6-relay option 79
. - Review DHCPv6 relay agent configuration settings with the commands
show dhcpv6-relay
and显示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