Export and import commands in netsh helps to export configuration of a local server to a particular file and then using this file these configurations can be imported on another server.
Exporting and importing of DHCPv6 Server configuration can be done using the following steps:
Let’s say there are three scopes configured under DHCPv6 Server with prefix 3ffe:: , 4ffe:: and 5ffe:: .
The v6 configurations of this local server can be exported to a file using the following steps:
a. Open command prompt or powershell and type netsh
b. Then go to v6 context by typing dhcp server v6
c. If all the v6 configurations need to be exported use the following command
export c:\dhcp\tempdb all
If the configurations of few particular v6 scopes need to be exported then use the following command
export c:\dhcp\tempdb 3ffe:: 4ffe::
Now if these configurations are to be imported on another server, then copy the exported configuration file on the other server and follow the below steps on it:
c. If all the v6 configurations need to be imported use the following command
import <filename> all
If the configuration of a particular v6 scope needs to be imported then use the following command
import <filename> 3ffe::
DHCP Server Team