DHCPv6 relay scenario 1

In this scenario, DHCP relay on the server enables two hosts to obtain their IP addresses from a DHCP server on a different subnet. The physical topology of the network looks like this:

Procedure
  1. Enable DHCP relay.
    switch#configswitch(config)#dhcpv6-relay
  2. Define an IPv6 helper address on interfaces1/1/1and1/1/2.
    switch(config)#interface 1/1/1switch(config-if)#ipv6 address 2002::22/64switch(config-if)#ipv6 helper-address 2001::1switch(config-if)#interface 1/1/2switch(config-if)#ipv6 address 2002::21/64switch(config-if)#ipv6 helper-address 2001::1switch(config-if)#quit
  3. 验证DHCP中继配置。
    switch#show dhcpv6-relayDHCPv6 Relay Agent : Enabled Option 79 : Disabled
    switch#显示ipv6助手-addressInterface: 1/1/1 IPv6 Helper Address Egress Port ---------------------------------------------- ----------- 2001::1 1/1/3 Interface: 1/1/2 IPv6 Helper Address Egress Port -------------------------------------------- ----------- 2001::1 1/1/3