Summary of the invention
The invention provides a kind of method and system of Dynamic Host Configuration Protocol server master-slave redundancy, how to solve the in the situation that of at Dynamic Host Configuration Protocol server master-slave redundancy, make full use of the technical problem of IP address.
For solving the problems of the technologies described above, the method for a kind of Dynamic Host Configuration Protocol server redundancy of the present invention, described method comprises:
Main Dynamic Host Configuration Protocol server and Dynamic Host Configuration Protocol server for subsequent use start, described main Dynamic Host Configuration Protocol server and Dynamic Host Configuration Protocol server share I P address for subsequent use pond;
If main Dynamic Host Configuration Protocol server work, the collaborative Dynamic Host Configuration Protocol server for subsequent use of main Dynamic Host Configuration Protocol server obtains standby server list;
Main Dynamic Host Configuration Protocol server by the standby server list synchronization obtaining to the Dynamic Host Configuration Protocol server for subsequent use in described standby server list;
After main Dynamic Host Configuration Protocol server breaks down, carry out switching judging by the Dynamic Host Configuration Protocol server for subsequent use in described standby server list, switch to main Dynamic Host Configuration Protocol server by the Dynamic Host Configuration Protocol server for subsequent use that meets switching condition and continue to work based on described IP address pool.
Further, the collaborative standby server of described main Dynamic Host Configuration Protocol server obtains standby server list, comprising:
Main Dynamic Host Configuration Protocol server fixed time broadcast heartbeat packet;
The Dynamic Host Configuration Protocol server for subsequent use that receives the heartbeat packet of main Dynamic Host Configuration Protocol server broadcast returns to clean culture heartbeat packet to main Dynamic Host Configuration Protocol server;
If main Dynamic Host Configuration Protocol server receives the clean culture heartbeat packet of returning from Dynamic Host Configuration Protocol server for subsequent use, this Dynamic Host Configuration Protocol server for subsequent use is stored into standby server list;
If main DHCP does not have to receive from the clean culture heartbeat packet that existing Dynamic Host Configuration Protocol server for subsequent use returns in standby server list in Preset Time, the Dynamic Host Configuration Protocol server for subsequent use of correspondence is deleted from described standby server list.
Further, described after main Dynamic Host Configuration Protocol server breaks down, carry out switching judging by the Dynamic Host Configuration Protocol server for subsequent use in described standby server list, in the time meeting switching condition, switch to main Dynamic Host Configuration Protocol server and continue to use described IP address pool that service is provided, comprising:
After main Dynamic Host Configuration Protocol server breaks down, the Dynamic Host Configuration Protocol server for subsequent use that receives described standby server list is searched standby server corresponding to minimum IP address in standby server list, judge whether self is this standby server, if so, self is switched to main Dynamic Host Configuration Protocol server;
If standby server switches to main Dynamic Host Configuration Protocol server failure, search minimum standby server corresponding to IP address by the standby server except this standby server in standby server list in standby server list again, until the standby server successful switch finding is the standby server that can not Gong search in main Dynamic Host Configuration Protocol server or standby server list.
Further, described method also comprises:
Main Dynamic Host Configuration Protocol server after work for dhcp client provides the DHCP lease file that generates in service process, the historical lease cache file of DHCP;
After main Dynamic Host Configuration Protocol server is being judged and is had at least one to change in the historical lease cache file of the standby server list of obtaining, DHCP lease file and DHCP three, by the content synchronization after upgrading to the Dynamic Host Configuration Protocol server for subsequent use in up-to-date standby server list;
Switch to after main Dynamic Host Configuration Protocol server until the Dynamic Host Configuration Protocol server for subsequent use in standby server list, also based on DHCP lease file, the historical lease cache file work of DHCP.
Further, described Dynamic Host Configuration Protocol server for subsequent use switches to after main Dynamic Host Configuration Protocol server, also comprises:
The virtual ip address that main Dynamic Host Configuration Protocol server before main Dynamic Host Configuration Protocol server binding after switching is switched uses.
Further, described method also comprises:
If main Dynamic Host Configuration Protocol server is not worked, Dynamic Host Configuration Protocol server for subsequent use is set up the available server list that comprises self IP address, and broadcasts heartbeat packet;
Described standby server receives after the heartbeat packet from other standby server broadcast, returns to clean culture heartbeat packet to the standby server of this heartbeat packet of broadcast;
If standby server receives the clean culture heartbeat packet of returning from other Dynamic Host Configuration Protocol server for subsequent use, these other Dynamic Host Configuration Protocol server for subsequent use is stored into described available server list;
Dynamic Host Configuration Protocol server for subsequent use is searched Dynamic Host Configuration Protocol server for subsequent use corresponding to minimum IP address in available server list, judges that whether self is this Dynamic Host Configuration Protocol server for subsequent use, if so, switches to self main Dynamic Host Configuration Protocol server;
If standby server switches to main Dynamic Host Configuration Protocol server failure, search minimum standby server corresponding to IP address by the standby server except this standby server in available server list in available server list again, until the standby server successful switch finding is main Dynamic Host Configuration Protocol server;
Receive after the heartbeat packet of main Dynamic Host Configuration Protocol server fixed time broadcast, the Dynamic Host Configuration Protocol server for subsequent use heartbeat packet of going off the air, returns to clean culture heartbeat packet to this main Dynamic Host Configuration Protocol server.
For solving the problems of the technologies described above, the present invention also provides a kind of Dynamic Host Configuration Protocol server redundant system, and described system comprises main Dynamic Host Configuration Protocol server and the Dynamic Host Configuration Protocol server for subsequent use with main Dynamic Host Configuration Protocol server share I P address pond, wherein,
Described main Dynamic Host Configuration Protocol server, for after its startup work, collaborative Dynamic Host Configuration Protocol server for subsequent use obtains standby server list; By the standby server list synchronization obtaining to the Dynamic Host Configuration Protocol server for subsequent use in described standby server list;
Described Dynamic Host Configuration Protocol server for subsequent use, obtains standby server list for collaborative main Dynamic Host Configuration Protocol server; Receive the standby server list that main Dynamic Host Configuration Protocol server sends; And after main Dynamic Host Configuration Protocol server breaks down, carry out switching judging by the Dynamic Host Configuration Protocol server for subsequent use in standby server list, in the time meeting switching condition, switch to main Dynamic Host Configuration Protocol server and continue based on the work of described IP address pool.
Further, main Dynamic Host Configuration Protocol server and Dynamic Host Configuration Protocol server for subsequent use are collaborative obtains standby server list, comprising:
Main Dynamic Host Configuration Protocol server, for fixed time broadcast heartbeat packet; Receive after the clean culture heartbeat packet of returning from Dynamic Host Configuration Protocol server for subsequent use, this Dynamic Host Configuration Protocol server for subsequent use is stored into standby server list; If do not receive in Preset Time from the clean culture heartbeat packet that in standby server list, existing Dynamic Host Configuration Protocol server for subsequent use returns, by for Dynamic Host Configuration Protocol server for subsequent use from described standby server list, delete;
Dynamic Host Configuration Protocol server for subsequent use, for receiving after the heartbeat packet of main Dynamic Host Configuration Protocol server broadcast, returns to clean culture heartbeat packet to main Dynamic Host Configuration Protocol server.
Further, described Dynamic Host Configuration Protocol server for subsequent use, after breaking down when main Dynamic Host Configuration Protocol server, carry out switching judging by the Dynamic Host Configuration Protocol server for subsequent use in standby server list, in the time meeting switching condition, switch to main Dynamic Host Configuration Protocol server and continue to use described IP address pool that service is provided, comprising:
Described Dynamic Host Configuration Protocol server for subsequent use, for after judging main Dynamic Host Configuration Protocol server and breaking down, search standby server corresponding to minimum IP address by the Dynamic Host Configuration Protocol server for subsequent use that receives described standby server list in standby server list, judge whether self is this standby server, if so, self is switched to main Dynamic Host Configuration Protocol server; And in the time judging standby server and switch to the failure of main Dynamic Host Configuration Protocol server, continued to search minimum standby server corresponding to IP address in standby server list by the standby server except this standby server in standby server list, until the standby server successful switch finding is the standby server that can not Gong search in main Dynamic Host Configuration Protocol server or standby server list.
Further, it is characterized in that,
Described main Dynamic Host Configuration Protocol server, also for generating DHCP lease information, the historical lease cache file of DHCP for dhcp client provides service process after work; And after judging and having at least one to change in the historical lease cache file of the standby server list of obtaining, DHCP lease information and DHCP three, by the content synchronization after upgrading to the Dynamic Host Configuration Protocol server for subsequent use in up-to-date standby server list;
Dynamic Host Configuration Protocol server for subsequent use in described standby server list, also for switching to after main Dynamic Host Configuration Protocol server, based on DHCP lease file and the historical lease cache file work of DHCP.
Further,
Described standby server, also for self being switched to after main Dynamic Host Configuration Protocol server, the virtual ip address that the main Dynamic Host Configuration Protocol server before binding is switched uses.
Further, it is characterized in that,
Described Dynamic Host Configuration Protocol server for subsequent use, also for after judging main Dynamic Host Configuration Protocol server and not working, sets up the available server list that comprises self IP address, and broadcasts heartbeat packet; Receive after the heartbeat packet from other standby server broadcast, return to clean culture heartbeat packet to the standby server of this heartbeat packet of broadcast; If receive the clean culture heartbeat packet of returning from other Dynamic Host Configuration Protocol server for subsequent use, these other Dynamic Host Configuration Protocol server for subsequent use is stored into described available server list; Search Dynamic Host Configuration Protocol server for subsequent use corresponding to minimum IP address in available server list, judge that whether self is this Dynamic Host Configuration Protocol server for subsequent use, if so, switches to self main Dynamic Host Configuration Protocol server; And switch to after the failure of main Dynamic Host Configuration Protocol server judging standby server, search minimum standby server corresponding to IP address by the standby server except this standby server in available server list in available server list again, until the standby server successful switch finding is main Dynamic Host Configuration Protocol server; Receive after the heartbeat packet of main Dynamic Host Configuration Protocol server fixed time broadcast, the Dynamic Host Configuration Protocol server for subsequent use heartbeat packet of going off the air, returns to clean culture heartbeat packet to this main Dynamic Host Configuration Protocol server.
The address pool of whole IP addresses that the active and standby Dynamic Host Configuration Protocol server of above-mentioned embodiment has used identical storage, ensured no matter be master server work, or standby server work all can use whole IP address, and the utilance of IP address is provided.
Embodiment
For making the object, technical solutions and advantages of the present invention clearer, hereinafter in connection with accompanying drawing, embodiments of the invention are elaborated.It should be noted that, in the situation that not conflicting, the combination in any mutually of the feature in embodiment and embodiment in the application.
Fig. 1 is the method flow diagram of the Dynamic Host Configuration Protocol server master-slave redundancy of the present embodiment.
The main Dynamic Host Configuration Protocol server of S101 and Dynamic Host Configuration Protocol server for subsequent use start, described main Dynamic Host Configuration Protocol server and Dynamic Host Configuration Protocol server share I P address for subsequent use pond;
For each Dynamic Host Configuration Protocol server arranges configuration file, configuration file comprises standby usage mark, IP address lease duration, IP address pool information; Dynamic Host Configuration Protocol server starts according to configuration file;
S102 judges whether main Dynamic Host Configuration Protocol server works, if work, execution step S103; Otherwise, execution step S104;
The collaborative Dynamic Host Configuration Protocol server for subsequent use of the main Dynamic Host Configuration Protocol server of S103 obtains standby server list, carries out S105;
The method that the collaborative Dynamic Host Configuration Protocol server for subsequent use of main Dynamic Host Configuration Protocol server obtains standby server list comprises: main Dynamic Host Configuration Protocol server fixed time broadcast heartbeat packet; The Dynamic Host Configuration Protocol server for subsequent use that receives the heartbeat packet of main Dynamic Host Configuration Protocol server broadcast returns to clean culture heartbeat packet to main Dynamic Host Configuration Protocol server; If main Dynamic Host Configuration Protocol server receives the clean culture heartbeat packet of returning from Dynamic Host Configuration Protocol server for subsequent use, this Dynamic Host Configuration Protocol server for subsequent use is stored into standby server list; If main DHCP does not have to receive from the clean culture heartbeat packet that existing Dynamic Host Configuration Protocol server for subsequent use returns in standby server list in Preset Time, the Dynamic Host Configuration Protocol server for subsequent use of correspondence is deleted from described standby server list;
After main Dynamic Host Configuration Protocol server work, main Dynamic Host Configuration Protocol server provides IP Rental Service for dhcp client, and generates DHCP lease file, the historical lease cache file of DHCP; The multiple lease entries of described lease file including, each lease entry all records MAC Address, user rs host name, the state information of IP address, lease entry-into-force time, lease end time, binding; Wherein, IP address be the IP address of leasing, lease entry-into-force time and lease end time record be correspondence scope effective time of leasing IP address, binding MAC Address record be the NIC address of renting this IP, state recording whether this lease entry changes, whether for example client has extended lease to continue to use this IP address.When dhcp client do not re-use this lease entry or lease entry expired after, main Dynamic Host Configuration Protocol server is deleted this lease entry from lease file, and this this lease entry is added to the historical lease cache file of DHCP;
S104 Dynamic Host Configuration Protocol server for subsequent use is selected the main Dynamic Host Configuration Protocol server of a server as work, execution step S103;
From Dynamic Host Configuration Protocol server for subsequent use, select the main Dynamic Host Configuration Protocol server of a server as work, comprising:
Dynamic Host Configuration Protocol server for subsequent use is set up the available server list that comprises self IP address, and broadcasts heartbeat packet; Described standby server receives after the heartbeat packet from other standby server broadcast, returns to clean culture heartbeat packet to the standby server of this heartbeat packet of broadcast;
If standby server receives the clean culture heartbeat packet of returning from other Dynamic Host Configuration Protocol server for subsequent use, these other Dynamic Host Configuration Protocol server for subsequent use is stored into described available server list;
Dynamic Host Configuration Protocol server for subsequent use is searched Dynamic Host Configuration Protocol server for subsequent use corresponding to minimum IP address in available server list, judges that whether self is this Dynamic Host Configuration Protocol server for subsequent use, if so, switches to self main Dynamic Host Configuration Protocol server;
If standby server switches to main Dynamic Host Configuration Protocol server failure, search minimum standby server corresponding to IP address by the standby server except this standby server in available server list in available server list again, until the standby server successful switch finding is main Dynamic Host Configuration Protocol server;
Main Dynamic Host Configuration Protocol server after switching continues fixed time broadcast heartbeat packet, receives after the heartbeat packet of main Dynamic Host Configuration Protocol server fixed time broadcast, and the Dynamic Host Configuration Protocol server for subsequent use heartbeat packet of going off the air, returns to clean culture heartbeat packet to this main Dynamic Host Configuration Protocol server;
Primary, spare Dynamic Host Configuration Protocol server, in the time of broadcast heartbeat packet, also can, by the together broadcast of standby usage mark, come autonomous Dynamic Host Configuration Protocol server or Dynamic Host Configuration Protocol server for subsequent use so that receive the heartbeat packet of the Dynamic Host Configuration Protocol server judgement broadcast for subsequent use of heartbeat packet;
The main Dynamic Host Configuration Protocol server of S105 by the standby server list synchronization obtaining to the Dynamic Host Configuration Protocol server for subsequent use in standby server list;
Dynamic Host Configuration Protocol server for subsequent use in the list of S106 standby server judges whether main DHCP breaks down, if there is fault, carry out switching judging by the Dynamic Host Configuration Protocol server for subsequent use in described standby server list, switch to main Dynamic Host Configuration Protocol server by the Dynamic Host Configuration Protocol server for subsequent use that meets switching condition and continue to work based on described IP address pool;
Standby server judges that the method that main Dynamic Host Configuration Protocol server breaks down is: when standby server does not receive the signal that main Dynamic Host Configuration Protocol server sends in the first default duration, as the heartbeat packet of broadcast, think that main Dynamic Host Configuration Protocol server breaks down;
After the Dynamic Host Configuration Protocol server for subsequent use in standby server list is judged main Dynamic Host Configuration Protocol server and is broken down, search standby server corresponding to minimum IP address, judge whether self is this standby server, if so, self is switched to main Dynamic Host Configuration Protocol server;
If the Dynamic Host Configuration Protocol server for subsequent use in standby server list is judged standby server and is switched to main Dynamic Host Configuration Protocol server failure, search minimum standby server corresponding to IP address by the standby server except this standby server in standby server list in standby server list again, until the standby server successful switch finding is the standby server that can not Gong search in main Dynamic Host Configuration Protocol server or standby server list; Judge that the method that standby server switches to main Dynamic Host Configuration Protocol server failure is: do not receive at the second default duration the signal that main Dynamic Host Configuration Protocol server sends and judge handoff failure, wherein, lasting time of the default duration of the second default time length ratio first is long.
In other embodiments, for ensureing taking over seamlessly of active/standby server, main Dynamic Host Configuration Protocol server need to will be synchronized to the Dynamic Host Configuration Protocol server for subsequent use in described standby server list for dhcp client provides the historical lease cache file of DHCP lease file, DHCP generating in service process after work; After main Dynamic Host Configuration Protocol server is being judged and had at least one to change in the historical lease cache file of the standby server list of obtaining, DHCP lease file and DHCP three, be about to content synchronization after upgrading to the Dynamic Host Configuration Protocol server for subsequent use in up-to-date standby server list.Switch to after main Dynamic Host Configuration Protocol server until the Dynamic Host Configuration Protocol server for subsequent use in standby server list, based on DHCP lease file, the historical lease cache file of DHCP and the work of IP address pool.
Further, move transparent to client for guarantor levies active and standby Dynamic Host Configuration Protocol server switching, can switch to after main Dynamic Host Configuration Protocol server at Dynamic Host Configuration Protocol server for subsequent use, the identical virtual ip address of main Dynamic Host Configuration Protocol server before continuing use and switching, so no matter how active and standby Dynamic Host Configuration Protocol server switches, unique with the server virtual ip address that dhcp client communicates, can not interrupt the business of DHCP customer side.
After main Dynamic Host Configuration Protocol server switches, because the MAC Address of main DHCP switches, the MAC Address that need to notify dhcp client to upgrade main Dynamic Host Configuration Protocol server, is connected with the network maintaining between dhcp client and Dynamic Host Configuration Protocol server.
Fig. 2 is the system composition diagram of the Dynamic Host Configuration Protocol server redundancy of the present embodiment.
This system comprises main Dynamic Host Configuration Protocol server and the Dynamic Host Configuration Protocol server for subsequent use with main Dynamic Host Configuration Protocol server share I P address pond, wherein,
Main Dynamic Host Configuration Protocol server, for after its startup work, collaborative Dynamic Host Configuration Protocol server for subsequent use obtains standby server list; And by the standby server list synchronization obtaining to the Dynamic Host Configuration Protocol server for subsequent use in described standby server list;
Described main Dynamic Host Configuration Protocol server, also for generating DHCP lease information, the historical lease cache file of DHCP for dhcp client provides service process after work; The multiple lease entries of described lease file including, each lease entry all records MAC Address, user rs host name, the state information of IP address, lease entry-into-force time, lease end time, binding; Wherein, IP address be the IP address of leasing, lease entry-into-force time and lease end time record be correspondence scope effective time of leasing IP address, binding MAC Address record be the NIC address of renting this IP, state recording whether this lease entry changes, whether for example client has extended lease to continue to use this IP address; When dhcp client do not re-use this lease entry or lease entry expired after, main Dynamic Host Configuration Protocol server is deleted this lease entry from lease file, and this this lease entry is added to the historical lease cache file of DHCP;
Dynamic Host Configuration Protocol server for subsequent use, obtains standby server list for collaborative main Dynamic Host Configuration Protocol server; Receive the standby server list that main Dynamic Host Configuration Protocol server sends; And after main Dynamic Host Configuration Protocol server breaks down, carry out switching judging by the Dynamic Host Configuration Protocol server for subsequent use in standby server list, in the time meeting switching condition, switch to main Dynamic Host Configuration Protocol server and continue based on the work of described IP address pool.
Above-mentioned main Dynamic Host Configuration Protocol server and Dynamic Host Configuration Protocol server for subsequent use are collaborative obtains standby server list, comprising:
Main Dynamic Host Configuration Protocol server, for fixed time broadcast heartbeat packet; Receive after the clean culture heartbeat packet of returning from Dynamic Host Configuration Protocol server for subsequent use, this Dynamic Host Configuration Protocol server for subsequent use is stored into standby server list; If do not receive in Preset Time from the clean culture heartbeat packet that in standby server list, existing Dynamic Host Configuration Protocol server for subsequent use returns, by for Dynamic Host Configuration Protocol server for subsequent use from described standby server list, delete;
Dynamic Host Configuration Protocol server for subsequent use, for receiving after the heartbeat packet of main Dynamic Host Configuration Protocol server broadcast, returns to clean culture heartbeat packet to main Dynamic Host Configuration Protocol server.
Above-mentioned Dynamic Host Configuration Protocol server for subsequent use, judges after main Dynamic Host Configuration Protocol server breaks down, and carries out switching judging by the Dynamic Host Configuration Protocol server for subsequent use in standby server list, in the time meeting switching condition, switches to main Dynamic Host Configuration Protocol server, comprising:
Described Dynamic Host Configuration Protocol server for subsequent use, after judging main Dynamic Host Configuration Protocol server and breaking down, search standby server corresponding to minimum IP address by the Dynamic Host Configuration Protocol server for subsequent use that receives described standby server list in standby server list, judge whether self is this standby server, if so, self is switched to main Dynamic Host Configuration Protocol server; And in the time judging standby server and switch to the failure of main Dynamic Host Configuration Protocol server, continued to search minimum standby server corresponding to IP address in standby server list by the standby server except this standby server in standby server list, until the standby server successful switch finding is the standby server that can not Gong search in main Dynamic Host Configuration Protocol server or standby server list.
Standby server judges that the method that main Dynamic Host Configuration Protocol server breaks down is: when standby server does not receive the signal that main Dynamic Host Configuration Protocol server sends in the first default duration, as the heartbeat packet of broadcast, think that main Dynamic Host Configuration Protocol server breaks down.
Standby server judges that the method that other standby servers switch to main Dynamic Host Configuration Protocol server failure is: the second default duration do not receive signal that main Dynamic Host Configuration Protocol server sends judge switch by, wherein, it is long that the second default time length ratio first is preset the lasting time of duration.
Above-mentioned standby server, after being also used in and judging main Dynamic Host Configuration Protocol server and do not work, selects the main Dynamic Host Configuration Protocol server of a server as work, comprising: standby server is set up the available server list that comprises self IP address, and broadcasts heartbeat packet; Standby server receives after the heartbeat packet from other standby server broadcast, returns to clean culture heartbeat packet to the standby server of this heartbeat packet of broadcast; If standby server receives the clean culture heartbeat packet of returning from other Dynamic Host Configuration Protocol server for subsequent use, these other Dynamic Host Configuration Protocol server for subsequent use is stored into described available server list; Standby server is searched Dynamic Host Configuration Protocol server for subsequent use corresponding to minimum IP address in available server list, judges that whether self is this Dynamic Host Configuration Protocol server for subsequent use, if so, switches to self main Dynamic Host Configuration Protocol server; And switch to after the failure of main Dynamic Host Configuration Protocol server judging standby server, search minimum standby server corresponding to IP address by the standby server except this standby server in available server list in available server list again, until the standby server successful switch finding is main Dynamic Host Configuration Protocol server;
Due to the main Dynamic Host Configuration Protocol server after switching still can fixed time broadcast heartbeat packet, Dynamic Host Configuration Protocol server for subsequent use is receiving after the heartbeat packet of autonomous Dynamic Host Configuration Protocol server broadcast, the heartbeat packet of going off the air, returns to clean culture heartbeat packet to this main Dynamic Host Configuration Protocol server.
Primary, spare Dynamic Host Configuration Protocol server, in the time of broadcast heartbeat packet, also can, by the together broadcast of standby usage mark, come autonomous Dynamic Host Configuration Protocol server or Dynamic Host Configuration Protocol server for subsequent use so that receive the heartbeat packet of the Dynamic Host Configuration Protocol server judgement broadcast for subsequent use of heartbeat packet.
In other embodiments, for ensureing taking over seamlessly of active/standby server, described main Dynamic Host Configuration Protocol server, also for generating DHCP lease information, the historical lease cache file of DHCP for dhcp client provides service process after work; And after judging and having at least one to change in the historical lease cache file of the standby server list of obtaining, DHCP lease information and DHCP three, by the content synchronization after upgrading to the Dynamic Host Configuration Protocol server for subsequent use in up-to-date standby server list.Dynamic Host Configuration Protocol server for subsequent use in described standby server list, also for switching to after main Dynamic Host Configuration Protocol server, based on DHCP lease file, the historical lease cache file of DHCP and the work of IP address pool.
Further, move transparent to client for guarantor levies active and standby Dynamic Host Configuration Protocol server switching, described standby server, also for self being switched to after main Dynamic Host Configuration Protocol server, the virtual ip address that main Dynamic Host Configuration Protocol server before binding is switched uses continues and client communication, so no matter how active and standby Dynamic Host Configuration Protocol server switches, unique with the virtual ip address that dhcp client communicates, and can not interrupt the business of DHCP customer side.After main Dynamic Host Configuration Protocol server switches, because the MAC Address of main DHCP switches, need to notify dhcp client to upgrade the MAC Address of main Dynamic Host Configuration Protocol server.
One of ordinary skill in the art will appreciate that all or part of step in said method can carry out instruction related hardware by program and complete, described program can be stored in computer-readable recording medium, as read-only memory, disk or CD etc.Alternatively, all or part of step of above-described embodiment also can realize with one or more integrated circuits, and correspondingly, the each module/unit in above-described embodiment can adopt the form of hardware to realize, and also can adopt the form of software function module to realize.The present invention is not restricted to the combination of the hardware and software of any particular form.
It should be noted that; the present invention also can have other various embodiments; in the situation that not deviating from spirit of the present invention and essence thereof; those of ordinary skill in the art can make according to the present invention various corresponding changes and distortion, but these corresponding changes and distortion all should belong to the protection range of the appended claim of the present invention.