Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

Migrate win server 2003 DHCP roles to win server 2012 R2

2025-02-24 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/02 Report--

The process of migrating win server 2003 DHCP roles to win server 2012R2 is very different from moving from win server 2008R2 to 2012R2 because there are some changes in the framework of win server 2003 and win server 2012R2.

Due to the feedback from my customers today, there was an error in the migration from DHCP to 2012R2 in win server 2003. So I wrote down the whole migration process, hoping to help my brothers who encounter such a situation in the future.

Back up DHCP server data for Windows Server 2003 to prevent immediate recovery of migration problems:

Start-- Management tools-DHCP, open DHCP Manager

Right mouse button server, select: backup

Select a backup location to store the backup files:

The backup is successful, as shown below:

two。 Export configuration information for win server 2003 DHCP server

Open the CMD window and execute the following command: netsh dhcp server dump > c:\ 2003dump.txt to export the configuration information of the DHCP server. The export result is as follows:

3. Install the DHCP service on win server 2012 R2 (installation process is brief)

The installation and configuration is completed as shown below:

4. Export configuration information for win server 2012 R2 DHCP server

Open the CMD window with administrator privileges and execute the following command netsh dhcp server dump > c:\ 2012dump.txt to export as shown in the following figure:

5. Modify the configuration information of the DHCP server

Copy the first 6 lines of dhcp server in the 2003dump.txt and 2012dump.txt files and paste them into a new dhcp.txt with the following modifications:

Open 2003dump.txt, copy the 6 lines marked in red, paste them into the new DHCP.TXT file, and modify them. Add Netsh before each line, and replace add with delete, as follows:

Netsh Dhcp Server 192.168.5.100 delete Class "default Route and remote access Category"remote access client user Category" 525241532e4d6963726f736f6674 0b

Netsh Dhcp Server 192.168.5.100 delete Class "default BOOTP Category"BOOTP client user Category" 424f4f54502e4d6963726f736f6674 0

Netsh Dhcp Server 192.168.5.100 delete Class "Microsoft Windows 2000 options"Microsoft vendor specific options for Windows 2000 clients" 4d53465420352e30 1 b

Netsh Dhcp Server 192.168.5.100 delete Class "Microsoft Windows 98 options"Microsoft vendor specific options for Windows 98 clients" 4d534654203938 1 b

Netsh Dhcp Server 192.168.5.100 delete Class "Microsoft options" Microsoft vendor specific options for Windows 98 and Windows 2000 clients "4d534654 1 b"

Netsh Dhcp Server 192.168.5.100 Add Class "default network access protection level"default special user class for restricted access clients" 4d5346542051756172616e74696e65 0b

Open 2012dump.txt, copy the 6 lines marked in red, paste them into the new DHCP.TXT file, and modify them. Add Netsh before each line, and change the address to the same as in 2003, as follows:

Netsh Dhcp Server\ 192.168.5.100 Add Class "default routing and remote access class"remote access client user class" 525241532e4d6963726f736f6674 0b

Netsh Dhcp Server\ 192.168.5.100 Add Class "default network access protection level"default special user class for restricted access clients" 4d5346542051756172616e74696e65 0b

Netsh Dhcp Server\ 192.168.5.100 Add Class "default BOOTP class" user class for BOOTP client "424f4f54502e4d6963726f736f6674 0b"

Netsh Dhcp Server\ 192.168.5.100 Add Class "Microsoft Windows 2000 options"Microsoft vendor specific options for Windows 2000 and later clients" 4d53465420352e30 1 b

Netsh Dhcp Server\ 192.168.5.100 Add Class "Microsoft Windows 98 options"Microsoft vendor specific options for Windows 98 clients" 4d534654203938 1 b

Netsh Dhcp Server\ 192.168.5.100 Add Class "Microsoft options" Microsoft vendor specific options for all Windows clients "4d534654 1 b"

The modified DHCP.BAT file is as follows:

6. Open the CMD window of the win server 2003 DHCP server, copy the contents of the DHCP.TXT file to the CMD window for execution, and complete the execution, as shown below:

7.DHCP data migration

Run netsh dhcp server export c:\ dhcp-new.txt all on the win server 2003 DHCP server to export all DHCP configuration information

Copy the exported file to the C root directory of the win server 2012 R2 server, and then import: netsh dhcp server import c:\ dhcp-new.txt all in the CMD window to import the configuration information

The import is successful, as shown below:

Migration succeeded

Win server 2003 DHCP uninstall (process brief)

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report