In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-02-25 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)05/31 Report--
This article mainly explains "windows DHCP reserved address export and import, DHCP failover configuration method", interested friends may wish to have a look. The method introduced in this paper is simple, fast and practical. Next let the editor to take you to learn "windows DHCP reserved address export import, DHCP failover configuration method"!
Environment:
1. A windows server 2008R2 server has DHCP services and is already in use.
two。 Two windows server 2012 servers An and B
3.windows server 2008 R2 and windows server2012 server An and server B have different domain names that are not in the same domain.
Request:
1. Migrate the DHCP of the windows server 2008R2 server to the server of windows server 2012, and achieve load balancing between the two windows server 2012 servers.
Analysis ideas:
1. Because the domain names of windows server 2008R2 and windows server 2012 servers An and B are different, they are not in the same domain. Seamless migration can only be achieved in the same domain, so the easiest way is to export the DHCP reserved address of the windows server 2008 R2 server, then import it to windows server 2012 server A, and then synchronize to windows server 2012 server B through configuration failover to make them redundant to each other. (it has been verified that the load balancing mode can realize the function of hot backup mode at the same time, that is, one machine is down, while the other one continues to take the lead.)
Specific operation steps:
1. First export all the scoped reserved addresses of DHCP on the windows server 2008 R2 server, because there is no in-depth study, so my approach is to export a single scoped reserved address, then put all the scoped reserved addresses in the exported txt text together, and then import the text of all the reserved addresses in this collection directly into windows server 2012 server A.
Start Powershell with the administrator and type the export command:
Netsh dhcp server192.168.100.240 scope 192.168.20.0 dump > d:\ dhcp20.txt
"192.168.100.240" is the dhcp server address, and "192.168.20.0" is the scope network segment.
The whole sentence means to import all the information of the 192.168.20.0 scope of the dhcp server 192.168.100.240 into the dhcp20.txt text under the new text D disk.
In this way, you can see the following directory under D disk:
two。 Copy the contents of the reserved address:
Open dhcp20.txt to see the reserved address, as shown in the following figure:
Copy this piece directly, put it together with the reserved addresses of the other exports, and then replace all the "Dhcp Server\\ 192.168.100.240" in front of each with "netshdhcp server 192.168.100.8" that changes the server address to the address of windows server 2012 server A.
3. Import to DHCP on windows server 2012 server A:
Here to build a DHCP server, I believe everyone will, so I will not repeat it. After setting up the DHCP server, set up the corresponding scope, and then use the administrator to open powershell to import the reserved address command (of course, you can copy and paste all the changed text previously retained directly into powershell for execution)
Netsh dhcp server192.168.100.8 Scope 192.168.20.0 Add reservedip 192.168.20.10 c4346b019c74 "hosdflcameeting01.hosdfldomain.com" DHCP "
The following information indicates that the import is successful, as shown in the figure:
Then check the reserved address in the new scope to see if it already exists:
This way, the import is complete.
4. Configure windowsserver 2012 server A to B failover after the import is complete. Suppose An is master,B and slave. Right-click the ipv4 of the DHCP manager in server A, and select "configure failover" from the pop-up drop-down list as shown below:
Select all scopes
Click "add Server" and browse in the open window, directly enter the ip address of windows server 2012 Server B, and then click to check the name. In the end, it was determined directly.
Here, note that after selecting "load balancing" or "hot standby server mode" and entering the shared key, you can go straight to the next step. (the shared key here only needs to be entered this time)
After completion, go to windows server 2012 server B to see that the scope under ipv4 has been synchronized. If there is no synchronization, select IPv4 and click Refresh on the toolbar.
So far, all the requirements have been completed.
There is also a command import method for DNS:
Before using the following script command, first establish the first scope of the forward lookup zone of DNS, and then use the following command, otherwise the command will be prompted to fail:
1. General A host establishment
Dnscmd 192.168.100.8 / RecordAdd beta.asdfgh.com * A 192.168.100.109
Indicates the function command / RecordAdd under the DNS server 192.168.100.8 to establish a new * generic dns under the newly established scope beta.asdfgh.com. The address of the class A host is 192.168.100.109.
Dnscmd 192.168.100.8 / RecordAdd bs * .beta A 192.168.100.130
Indicates that the functional command / RecordAdd under the DNS server 192.168.100.8 is under the new domain beta under the newly established scope bs. The address of the class A host of dns is 192.168.100.130.
Dnscmd 192.168.100.8 / RecordAdd asdfgh.com. A 192.168.100.251
".A" means that the established type A host name entry is "(same as the parent folder)"
two。 Alias entry creation
Dnscmd 192.168.100.8 / RecordAdd asdfgh.com oa CNAME 76vxwasdferr213yy8.alicloudddos.com.
Indicates that the functional command / RecordAdd under the DNS server 192.168.100.8 is an entry with the name "(same as the parent folder)" under the newly created domain oa under the newly established scope asdfgh.com, and the fully qualified domain name for this entry is "76vxwasdferr213yy8.alicloudddos.com."
3. Location service entry establishment
Dnscmd 192.168.100.8 / RecordAdd asdfghdomain.com _ kpasswd._tcp SRV 0 100 464 asdfghdcserver.asdfghdomain.com.
Indicates an entry named "_ kpasswd" under the function command / RecordAdd of DNS server 192.168.100.8 under the newly created domain _ tcp under the newly established scope asdfghdomain.com. The service of this entry is "_ kpasswd", the protocol is "_ tcp", the priority is 0, the weight is 100, and the port number is 464. the host providing this service is "asdfghdcserver.asdfghdomain.com."
At this point, I believe you have a deeper understanding of "windows's DHCP reserved address export and import, DHCP failover configuration". You might as well do it in practice. Here is the website, more related content can enter the relevant channels to inquire, follow us, continue to learn!
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.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.