This IPv6 Test Lab Extension describes how to configure DHCPv6 for the Contoso intranet. You configure DC1 as a DHCPv6 server for the Corpnet and Corpnet2 subnets.
Note These instructions are designed for a working IPv6 test lab that has been configured based on the instructions in the Test Lab Guide: Demonstrate IPv6.
If you are running the IPv6 test lab in a virtual environment, you can create snapshots of the virtual machines (VMs) for all of the test lab computers before performing the following procedure.
Configuring and Demonstrating DHCPv6 for IPv6 Addresses and Settings
To configure DC1 as the DHCPv6 server:
netsh interface ipv6 set interface Corpnet managedaddress=enable otherstateful=enable
netsh interface ipv6 set interface Corpnet2 managedaddress=enable otherstateful=enable
To demonstrate the use of DHCPv6 by CLIENT1:
With this new configuration, CLIENT1 can obtain native IPv6 addresses on the Contoso intranet in addition to the router advertisements sent by the native IPv6 router for the Corpnet and Corpnet2 subnets (DC1). CLIENT1 can also obtain the IPv6 address of its DNS server (DC1). Notice that CLIENT1 is still configuring its default router from the router advertisements sent by the native IPv6 router (DC1). There is no DHCPv6 option to configure the default gateway.
Hosts on the Corpnet and Corpnet2 configure two IPv6 address: one that is stateless from DC1 as an advertising router and one that is stateful from DC1 as the DHCPv6 server. Because there is no way to clear the Autonomous flag in an advertised route for a Windows-based advertising router, in the IPv6 test lab we can configure one of the following:
If you are running the IPv6 test lab in a virtual environment, you can discard the changes made by these procedures by restoring the previously made snapshots of the VMs for all of the computers in the test lab. Alternately, if you would like return to this working configuration using DHCPv6, you can create a new set of snapshots before restoring the previously made snapshots.
To manually restore the configuration of the IPv6 test lab, perform the following procedure.
Restoring the IPv6 Test Lab
To restore the IPv6 test lab to its original configuration:
netsh interface ipv6 del address Corpnet 2001:db8::1111
netsh interface ipv6 del address Corpnet2 2001:db8:0:2::2222
netsh interface ipv6 set interface Corpnet managedaddress=disable otherstateful=disable
netsh interface ipv6 set interface Corpnet2 managedaddress=disable otherstateful=disable
netsh interface ipv6 set route 2001:db8::/64 Corpnet publish=yes
netsh interface ipv6 set route 2001:db8:0:2::/64 Corpnet2 publish=yes