CN115695303A - DHCPv6 server linkage route advertisement starting and stopping system and method - Google Patents

DHCPv6 server linkage route advertisement starting and stopping system and method Download PDF

Info

Publication number
CN115695303A
CN115695303A CN202310010257.4A CN202310010257A CN115695303A CN 115695303 A CN115695303 A CN 115695303A CN 202310010257 A CN202310010257 A CN 202310010257A CN 115695303 A CN115695303 A CN 115695303A
Authority
CN
China
Prior art keywords
configuration file
route advertisement
dhcpv6 server
interface
configuration
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202310010257.4A
Other languages
Chinese (zh)
Other versions
CN115695303B (en
Inventor
李旭明
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
BEIJING ZHONGKE WANGWEI INFORMATION TECHNOLOGY CO LTD
Original Assignee
BEIJING ZHONGKE WANGWEI INFORMATION TECHNOLOGY CO LTD
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by BEIJING ZHONGKE WANGWEI INFORMATION TECHNOLOGY CO LTD filed Critical BEIJING ZHONGKE WANGWEI INFORMATION TECHNOLOGY CO LTD
Priority to CN202310010257.4A priority Critical patent/CN115695303B/en
Publication of CN115695303A publication Critical patent/CN115695303A/en
Application granted granted Critical
Publication of CN115695303B publication Critical patent/CN115695303B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The invention provides a DHCPv6 server linkage route announcement start-stop system and a method, belonging to the technical field of communication, wherein the system comprises a configuration management module and a service start-stop module: the configuration management module is used for generating a first configuration file when the DHCPv6 server is determined to be started, configuring an interface needing to start the DHCPv6 server and judging whether to start a routing advertisement or not; generating a second configuration file when determining to start the route advertisement, and generating a third configuration file based on the first configuration file, the second configuration file and the information of the interface; the service start-stop module is used for starting the DHCPv6 server when receiving the start command and starting the route advertisement on the interface when determining to start the route advertisement. The invention realizes the high-efficiency communication between the distributed IPv6 address and the external network by linking the starting and the stopping of the route announcement through the DHCPv6 server, and reduces the error probability of configuration and the error checking cost.

Description

DHCPv6 server linkage route advertisement starting and stopping system and method
Technical Field
The invention relates to the technical field of communication, in particular to a DHCPv6 server linkage route advertisement starting and stopping system and method.
Background
In the IPv6 (Internet Protocol Version 6, version 6 of the Internet Protocol), because the address range supportable by IPv6 is large, host address Configuration is usually required to be performed by an automatic Configuration method, a commonly used automatic address Configuration method includes stateless address Configuration and stateful address Configuration, the stateful address Configuration is generally based on DHCPv6 (Dynamic Host Configuration Protocol for IPv6, IPv6 Dynamic Host Configuration Protocol) Protocol interaction, and a client applies for a set of addresses from an address pool managed by a server.
According to the DHCPv6 standard, the DHCPv6 server only has a function of allocating an IPv6 address and does not have a function of specifying a route, and therefore, an address automatically generated by the DHCPv6 method cannot communicate with an external network, and in the related art, when an IPv6 address is allocated by the DHCPv6 method, generally, the relevant route is manually configured at a client, or after the client acquires an IP (Internet Protocol), route information is specified for the address by starting a route advertisement on the server, both of which easily omit a route configuration step, resulting in that the allocated IPv6 address cannot communicate with the external network, and the configuration error probability and the error checking cost of both of which are high.
Therefore, how to provide an efficient and reliable method for communicating the IPv6 address with the external network becomes a problem to be solved urgently.
Disclosure of Invention
The invention provides a DHCPv6 server linkage route announcement start-stop system and a DHCPv6 server linkage route announcement start-stop method, which are used for solving the defects that only DHCPv6 is easily configured and route configuration is omitted in the prior art, and further distributed IPv6 addresses cannot communicate with an external network, so that the distributed IPv6 addresses can efficiently and reliably communicate with the external network, and the configuration error probability and the error checking cost are reduced.
In a first aspect, the present invention provides a DHCPv6 server linkage route announcement start-stop system, including a configuration management module and a service start-stop module:
the configuration management module is used for generating a first configuration file supporting the DHCPv6 server under the condition of determining to start the DHCPv6 server, configuring an interface needing to start the DHCPv6 server, and judging whether to start a route advertisement on the interface; under the condition that the routing notification is determined to be started on the interface, generating a second configuration file for a routing notification program to use, and generating a third configuration file based on the first configuration file, the second configuration file and the information of the interface;
the service start/stop module is configured to start the DHCPv6 server according to the first configuration file and the third configuration file when a start command is received, and start a route advertisement on the interface according to the second configuration file when it is determined that the route advertisement is started on the interface based on the third configuration file.
According to the DHCPv6 server linkage route advertisement starting and stopping system provided by the invention, the configuration management module is also used for not generating a second configuration file used by a route advertisement program under the condition of determining that the route advertisement is not started on the interface; generating a third configuration file based on the first configuration file and the information of the interface;
the service start/stop module is configured to start the DHCPv6 server according to the first configuration file and the third configuration file, and not start a route advertisement when determining that the route advertisement is not started on the interface based on the third configuration file.
According to the DHCPv6 server linkage route advertisement start-stop system provided by the invention, the configuration management module is further used for determining the configuration item to be deleted, deleting the configuration item to be deleted from the third configuration file under the condition that the DHCPv6 server and the route advertisement are closed to obtain an updated third configuration file, and updating the first configuration file and the second configuration file based on the updated third configuration file.
According to the DHCPv6 server linkage route advertisement starting and stopping system provided by the invention, the service starting and stopping module is used for searching the DHCPv6 server and the route advertisement indicated by the stopping command and stopping the DHCPv6 server and the route advertisement indicated by the stopping command under the condition of receiving the stopping command.
In a second aspect, the present invention further provides a DHCPv6 server linkage route announcement start-stop method, which is applied to a DHCPv6 server linkage route announcement start-stop system, and the method includes:
under the condition that the DHCPv6 server is determined to be started, generating a first configuration file supporting the DHCPv6 server, configuring an interface needing to start the DHCPv6 server, and judging whether to start a route advertisement on the interface;
generating a second configuration file for use by a route advertisement program if it is determined that a route advertisement is initiated on the interface;
generating a third configuration file based on the first configuration file, the second configuration file and the information of the interface;
and starting the DHCPv6 server according to the first configuration file and the third configuration file, and starting a route advertisement on the interface according to the second configuration file under the condition that the route advertisement is determined to be started on the interface based on the third configuration file.
According to the DHCPv6 server linkage route announcement starting and stopping method provided by the invention, the method further comprises the following steps:
in the event that it is determined that a route advertisement is not to be initiated on the interface, not generating a second configuration file for use by a route advertisement program; generating a third configuration file based on the first configuration file and the information of the interface;
and starting the DHCPv6 server according to the first configuration file and the third configuration file, and not starting the route advertisement under the condition that the route advertisement is determined not to be started on the interface based on the third configuration file.
According to the DHCPv6 server linkage route advertisement starting and stopping method provided by the invention, the method further comprises the following steps:
determining a configuration item to be deleted;
under the condition that the DHCPv6 server and the route advertisement are closed, deleting the configuration item to be deleted from the third configuration file to obtain an updated third configuration file;
updating the first profile and the second profile based on the updated third profile.
According to the DHCPv6 server linkage route advertisement starting and stopping method provided by the invention, the method further comprises the following steps:
and in the case of receiving the stop command, searching the DHCPv6 server and the route advertisement indicated by the stop command, and stopping the DHCPv6 server and the route advertisement indicated by the stop command.
In a third aspect, the present invention further provides an electronic device, which includes a memory, a processor, and a computer program stored in the memory and executable on the processor, where the processor executes the computer program to implement any one of the above mentioned DHCPv6 server linked route advertisement start-stop methods.
In a fourth aspect, the present invention further provides a non-transitory computer readable storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements the DHCPv6 server linkage route advertisement start-stop method according to any one of the above-mentioned methods.
The invention provides a DHCPv6 server linkage route announcement starting and stopping system and a DHCPv6 server linkage route announcement starting and stopping method.A configuration management module configures an interface which needs to start the DHCPv6 server, prompts to confirm whether to start the route announcement on the interface or not, and generates a second configuration file used by a route announcement program under the condition of determining to start the route announcement on the interface; the service start-stop module can also determine to start the route announcement when determining to start the DHCPv6 server, starts the route announcement on the interface according to the second configuration file, and links the start-stop of the route announcement through the DHCPv6 server to realize the high-efficiency communication between the distributed IPv6 address and the external network, avoid omitting route configuration steps during network configuration, and reduce the configuration error probability and the error checking cost.
Drawings
In order to more clearly illustrate the technical solutions of the present invention or the prior art, the drawings needed for the description of the embodiments or the prior art will be briefly described below, and it is obvious that the drawings in the following description are some embodiments of the present invention, and those skilled in the art can also obtain other drawings according to the drawings without creative efforts.
Fig. 1 is one of the structural schematic diagrams of a DHCPv6 server linkage route advertisement start-stop system provided in the present invention;
fig. 2 is a second schematic structural diagram of the DHCPv6 server linkage route advertisement start-stop system provided in the present invention;
fig. 3 is a schematic flow diagram of a DHCPv6 server linkage route advertisement start-stop method provided by the present invention;
FIG. 4 is a flow diagram illustrating the operation of the configuration management module provided by the present invention;
FIG. 5 is a schematic flow chart of the operation of the service start/stop module provided by the present invention;
fig. 6 illustrates a physical structure diagram of an electronic device.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, the technical solutions of the present invention will be clearly and completely described below with reference to the accompanying drawings, and it is obvious that the described embodiments are some, but not all embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
First, the following is introduced:
in the IPv6 protocol, because the address range supportable by IPv6 is large, host address configuration is usually required to be performed by an automatic configuration method, and the common automatic address configuration method includes stateless address configuration and stateful address configuration. The stateless address configuration is realized by a method of sending a route announcement, a router multicasts and publishes a route announcement message containing information such as a route prefix, an automatic address configuration identifier and the like, a host receiving the message automatically produces a set of IPv6 addresses according to the contained information; the stateful address configuration is that a client applies for a set of addresses from an address pool managed by a server through DHCPv6 protocol interaction.
According to the DHCPv6 standard, the DHCPv6 server has only a function of assigning an IPv6 address and does not have a function of specifying a route, so that only an address automatically generated by the DHCPv6 method cannot communicate with an external network.
To address this drawback, the related art generally specifies the routing information for the IPv6 address by manually configuring the relevant route at the client when the address is allocated by the DHCPv6 method, or by starting a route advertisement on the server after the client acquires the IP.
The routing configuration and the DHCPv6 configuration are two separate processes, which causes the problem that the distributed IPv6 address cannot communicate with other network segments because only the DHCPv6 is configured and the routing configuration is missed frequently.
Therefore, the invention solves the problem that the distributed address can not communicate with other network segments because the client possibly lacks related routes when the DHCPv6 server distributes the IPv6 address to the client by configuring the method of optionally associating the configuration and the starting and stopping route announcement when the DHCPv6 server is started and stopped.
The following is explained in detail based on a plurality of embodiments.
Fig. 1 is a schematic structural diagram of a DHCPv6 server linkage route advertisement start-stop system provided in the present invention, and as shown in fig. 1, the system 100 includes a configuration management module 110 and a service start-stop module 120:
the configuration management module 110 is configured to, under a condition that it is determined that the DHCPv6 server is started, generate a first configuration file supporting the DHCPv6 server, configure an interface on which the DHCPv6 server needs to be started, and determine whether to start a route advertisement on the interface; under the condition that the routing advertisement is determined to be started on the interface, generating a second configuration file for a routing advertisement program to use, and generating a third configuration file based on the first configuration file, the second configuration file and the information of the interface;
the service start/stop module 120 is configured to start the DHCPv6 server according to the first configuration file and the third configuration file when receiving a start command, and start a route advertisement on the interface according to the second configuration file when determining to start the route advertisement on the interface based on the third configuration file.
Optionally, the configuration management module 110 may prompt the user to enter DHCPv6 configuration parameters.
Optionally, based on the DHCPv6 configuration parameters input by the user, the configuration management module 110 may generate a first configuration file for use by the DHCPv6 server.
Optionally, the configuration management module 110 may prompt configuration of the interface that requires the initiation of the DHCPv6 server.
Alternatively, the interface that needs to start the DHCPv6 server may be the first interface.
Alternatively, based on the information of the first interface, the configuration management module 110 may determine whether to initiate a route advertisement on the interface.
Optionally, the first configuration file may be used to support the DHCPv6 service program.
Alternatively, in the event that it is determined that a route advertisement is to be initiated on the first interface, the configuration management module 110 may continue to prompt the user for configuration parameters for the route advertisement, generating a second configuration file for use by the route advertisement program.
Alternatively, the configuration management module 110 may generate a third configuration file based on the first configuration file, the second configuration file, and the information of the first interface.
Optionally, a third configuration file may be used to store configuration items of the present system 100.
Optionally, the information of the first configuration file, the second configuration file and the first interface may be saved in a third configuration file.
Optionally, when the front end designates an interface of the DHCPv6 server, it may be simultaneously designated whether to start a route advertisement of the interface, if it needs to start, a flag associated with the start of the route advertisement may be carried in a manner of adding a flag request information, and further specific parameter information of the route advertisement is input; if no startup is needed, the label associated with the startup route advertisement may not be carried.
Optionally, the configuration management module 110 may receive a command input by a user at the parameter configuration entry, and if the command is a start-stop command, the DHCPv6 server linkage route advertisement start-stop system 100 may invoke the service start-stop module 120, and the service start-stop module 120 may control start-stop of the DHCPv6 service program and the route advertisement program.
Alternatively, the DHCPv6 server linked route advertisement start-stop system 100 may be an application program, and the application program may include a DHCPv6 service program and a route advertisement program.
Alternatively, the DHCPv6 server may serve the DHCPv6 service program.
Alternatively, the DHCPv6 traffic may be completed by the DHCPv6 service program.
Alternatively, the DHCPv6 service program may include source code under Linux (UNIX-like operating system of GNU/Linux, free and open source code), such as an isc-dhcpd (Intel Server Controller-Dynamic Host configuration protocol) program.
Alternatively, the route advertisement may be a route advertisement program.
Alternatively, the route advertisement transmission may be done by a route advertisement program.
Alternatively, the route advertisement program may include source code under linux, such as a radvd (route broadcaster) program.
Optionally, in a case of receiving the start command, the service start-stop module 120 may start the DHCPv6 server according to the first configuration file and the third configuration file.
Optionally, in case it is determined to initiate a route advertisement on the first interface based on the third profile, the service start-stop module 120 may initiate a route advertisement on the first interface according to the second profile.
Fig. 2 is a second schematic structural diagram of the DHCPv6 server linkage route advertisement start-stop system provided in the present invention, and as shown in fig. 2, the system includes a configuration management module and a service start-stop module.
Optionally, the configuration management module may receive externally input parameters, and maintain the configuration of the DHCPv6 service program, the configuration of the route advertisement program, the configuration of the system, and the like according to the parameters.
Optionally, the service start-stop module may configure the start-stop DHCPv6 service program and the route advertisement program according to the start-stop command.
Alternatively, a parameter configuration entry may be used to select the manner in which the parameters are entered.
Optionally, the mode of parameter input may include: the parameters are input through the browser, the parameters are input through the client, the parameters are input through the command line, and the like, which is not limited in the present invention.
Alternatively, the configuration management module may receive a command input by a user.
Optionally, the command parsing may be configured to parse the parameter issued through the parameter configuration entry, obtain a type of the command, and execute different operations based on different commands.
Optionally, if the command is a configuration command, the configuration management module may configure and store the DHCPv6 service program and the route advertisement program.
Optionally, if the command is a start-stop command, the DHCPv6 server linked route advertisement start-stop system may call a service start-stop module, and the service start-stop module may control start-stop of the DHCPv6 service program and the route advertisement program.
The DHCPv6 server linkage route advertisement starting and stopping system provided by the invention configures an interface needing to start the DHCPv6 server through the configuration management module, prompts and confirms whether to start the route advertisement on the interface, and generates a second configuration file for a route advertisement program under the condition of determining to start the route advertisement on the interface; the service start-stop module can also determine to start the route announcement when determining to start the DHCPv6 server, starts the route announcement on the interface according to the second configuration file, and links the start-stop of the route announcement through the DHCPv6 server, so that the high-efficiency communication between the distributed IPv6 address and the external network is realized, the omission of route configuration steps during network configuration is avoided, and the configuration error probability and the error checking cost are reduced.
Optionally, the configuration management module is further configured to, in a case where it is determined that the route advertisement is not started on the interface, not generate a second configuration file for use by a route advertisement program; generating a third configuration file based on the first configuration file and the information of the interface;
the service start/stop module is configured to start the DHCPv6 server according to the first configuration file and the third configuration file, and not start a route advertisement when determining that the route advertisement is not started on the interface based on the third configuration file.
Optionally, the configuration management module may prompt the user to enter DHCPv6 configuration parameters.
Optionally, based on the DHCPv6 configuration parameters input by the user, the configuration management module may generate a first configuration file for use by the DHCPv6 server.
Optionally, the configuration management module may prompt configuration of the interface that requires the DHCPv6 server to be launched.
Optionally, based on the information of the first interface, the configuration management module may determine whether to initiate a route advertisement on the interface.
Optionally, the first configuration file may be used to support the DHCPv6 service program.
Optionally, the configuration management module may not generate a second configuration file for use with the route advertisement in the event that it is determined that the route advertisement is not to be initiated on the first interface.
Optionally, in the case that it is determined that the route advertisement is not initiated on the first interface, the configuration management module may skip the step of continuing to prompt the user to enter configuration parameters for the route advertisement, generating a second configuration file for use by the route advertisement program.
Optionally, based on the first configuration file and information of the first interface, the configuration management module may generate a third configuration file.
Optionally, a third configuration file may be used to save the present system configuration.
Optionally, the first configuration file and the information of the first interface may be saved in a third configuration file.
Optionally, based on the first configuration file and the third configuration file, the service start-stop module may start the DHCPv6 server.
Optionally, the service start-stop module may not initiate the route advertisement if it is determined not to initiate the route advertisement on the first interface based on the third profile.
According to the DHCPv6 server linkage route advertisement start-stop system provided by the invention, under the condition that the route advertisement is determined not to be started on the first interface, the configuration management module does not generate the second configuration file used by the route advertisement program, the service start-stop module starts the DHCPv6 server based on the first configuration file and the third configuration file, and under the condition that the route advertisement is determined not to be started on the interface based on the third configuration file, the service start-stop module does not start the route advertisement, and the service start-stop module is equivalent to an independent DHCPv6 server.
Optionally, the configuration management module is further configured to determine a configuration item to be deleted, delete the configuration item to be deleted from a third configuration file under the condition that the DHCPv6 server and the route advertisement are closed, obtain an updated third configuration file, and update the first configuration file and the second configuration file based on the updated third configuration file.
Optionally, it may first be checked whether the DHCPv6 server and the corresponding route advertisement have been started.
Optionally, in a case that the DHCPv6 server and the corresponding route advertisement are already started, the configuration management module may delete the relevant configuration items in the system after prompting to close the DHCPv6 server and the route advertisement.
Optionally, in a case that the DHCPv6 server and the route advertisement are closed, based on the input parameters, the configuration management module may delete the relevant configuration item in the present system from the third configuration file.
Optionally, the configuration management module may delete the configuration item to be deleted from the third configuration file to obtain an updated third configuration file, and update the first configuration file and the second configuration file based on the updated third configuration file.
According to the DHCPv6 server linkage route advertisement start-stop system provided by the invention, under the condition that the DHCPv6 server and the route advertisement are closed, the configuration management module deletes the configuration item to be deleted from the third configuration file to obtain the updated third configuration file, and updates the first configuration file and the second configuration file based on the updated third configuration file, so that the configuration deletion process is realized, the configuration item is stored in the third configuration file, the configuration maintenance is facilitated, and the configuration error probability and the debugging cost are reduced.
Optionally, the service start/stop module is configured to, in a case that a stop command is received, search for the DHCPv6 server and the route advertisement indicated by the stop command, and stop the DHCPv6 server and the route advertisement indicated by the stop command.
Optionally, the service start-stop module may start or stop the DHCPv6 server and the route advertisement based on a command input by the user.
Alternatively, the start-stop command may be handled by the configuration management module.
Optionally, if the analysis command is a start-stop command, the configuration management module may implement start-stop of the DHCPv6 server and the route advertisement through the scheduling service start-stop module.
Optionally, if the start-stop command is a start command, the service start-stop module may start the DHCPv6 server based on the information of the first interface recorded in the first configuration file and the third configuration file.
Optionally, if the interface recorded in the third configuration file determines to start the route advertisement, the service start-stop module may continue to start the route advertisement according to the second configuration file.
Optionally, if the interface recorded in the third configuration file determines not to start the route advertisement, the service start-stop module may not start the route advertisement.
According to the DHCPv6 server linkage route announcement starting and stopping system provided by the invention, under the condition that a stopping command is received, the DHCPv6 server and the route announcement indicated by the stopping command are searched through the service starting and stopping module, the DHCPv6 server and the route announcement are stopped, the starting and stopping of the DHCPv6 server linkage route announcement are realized through the DHCPv6 server, the corresponding route announcement is stopped in a linkage manner when the DHCPv6 server is stopped, the service abnormity caused by subsequent configuration updating is prevented, and the system stability is improved.
Fig. 3 is a schematic flow diagram of a DHCPv6 server linkage route advertisement start-stop method provided by the present invention. As shown in fig. 3, the method is applied to a DHCPv6 server linkage route advertisement start-stop system, and includes the following steps:
step 300, under the condition that the DHCPv6 server is determined to be started, generating a first configuration file supporting the DHCPv6 server, configuring an interface needing to start the DHCPv6 server, and judging whether to start a route advertisement on the interface;
step 310, in case it is determined that a route advertisement is initiated on the interface, generating a second configuration file for use by a route advertisement program;
step 320, generating a third configuration file based on the first configuration file, the second configuration file and the information of the interface;
step 330, starting the DHCPv6 server according to the first configuration file and the third configuration file, and starting a route advertisement on the interface according to the second configuration file under the condition that it is determined that the route advertisement is started on the interface based on the third configuration file.
Optionally, the configuration management module may prompt the user to enter DHCPv6 configuration parameters.
Optionally, based on the DHCPv6 configuration parameters input by the user, the configuration management module may generate a first configuration file for use by the DHCPv6 server.
Optionally, the configuration management module may prompt configuration of the interface that requires the initiation of the DHCPv6 server.
Alternatively, the interface that needs to start the DHCPv6 server may be the first interface.
Optionally, based on the information of the first interface, the configuration management module may determine whether to initiate a route advertisement on the interface.
Optionally, the first configuration file may be used to support the DHCPv6 service program.
Optionally, in case it is determined that the route advertisement is initiated on the first interface, the configuration management module may continue to prompt the user to input configuration parameters for the route advertisement, generating a second configuration file for use by the route advertisement program.
Optionally, the configuration management module may generate a third configuration file based on the first configuration file, the second configuration file, and the information of the first interface.
Optionally, a third configuration file may be used to save the present system configuration.
Optionally, the information of the first configuration file, the second configuration file and the first interface may be saved in a third configuration file.
Optionally, when the front end designates an interface of the DHCPv6 server, it may be simultaneously designated whether to start a route advertisement of the interface, if it needs to start, a mark associated with the start of the route advertisement may be carried in a manner of adding mark request information, and further, specific parameter information of the route advertisement is input; if no startup is needed, the label associated with the startup route advertisement may not be carried.
Optionally, the configuration management module may receive a command input by a user at the parameter configuration entry, and if the command is a start-stop command, the DHCPv6 server linked route advertisement start-stop system may invoke the service start-stop module, and the service start-stop module may control start-stop of the DHCPv6 service program and the route advertisement program.
Optionally, the service start-stop module may start the DHCPv6 server according to the first configuration file and the third configuration file when receiving the start command.
Optionally, in case it is determined to start the route advertisement on the first interface based on the third profile, the service start-stop module may start the route advertisement on the first interface according to the second profile.
Fig. 4 is a flow chart illustrating the operation of the configuration management module provided by the present invention, and as shown in fig. 4, the configuration management module may first receive a command input by a user.
Alternatively, the configuration management module may enter the corresponding workflow based on the type of command input by the user.
Optionally, if the command type is to add a configuration item, the configuration management module may prompt the user to input a configuration parameter of the DHCPv6, generate a first configuration file based on the parameter, configure an interface that needs to start the DHCPv6 server, and determine whether to start the route advertisement on the interface.
Alternatively, if it is determined that the route advertisement is initiated on the first interface, the configuration management module may prompt the user to enter a route advertisement parameter, thereby generating or updating a second configuration file,
optionally, in a case that it is determined that the route advertisement is started on the first interface, the configuration management module may prompt the user to input a parameter of the route advertisement, so as to generate a second configuration file for the route advertisement program to use, and may generate a third configuration file based on the first configuration file, the second configuration file, and the information of the first interface, and store the third configuration file.
Alternatively, in the case of determining not to start the route advertisement on the first interface, the configuration management module may not generate the second configuration file for use by the route advertisement program, may generate a third configuration file based on the first configuration file and information of the first interface, and may save the third configuration file.
Optionally, if the command type is to delete a configuration item, the configuration management module may determine the configuration item to be deleted.
Optionally, under the condition that the DHCPv6 server and the route advertisement are closed, the configuration management module may search for the configuration item to be deleted from the third configuration file and delete the configuration item, update the first configuration file and the second configuration file according to information in the third configuration file, obtain the updated third configuration file based on the updated first configuration file and the updated second configuration file, and store the third configuration file.
Alternatively, the configuration management module may prompt the stop of the DHCPv6 server in the event that the DHCPv6 server and the route advertisement are running.
Optionally, if the command type is service start-stop, the configuration management module may implement start-stop of the DHCPv6 server and the route advertisement by scheduling the service start-stop module.
Fig. 5 is a schematic flow chart of the operation of the service start/stop module provided by the present invention, and as shown in fig. 5, the service start/stop module may first receive a service start/stop command.
Optionally, if the service start-stop command is a start command, the service start-stop module may start the DHCPv6 server based on the information of the first interface recorded in the first configuration file and the third configuration file.
Optionally, the service start-stop module may start the route advertisement if it is determined that the route advertisement is started on the first interface.
Optionally, the service start-stop module may not start the route advertisement if it is determined that the route advertisement is not started on the first interface.
Optionally, if the service start-stop command is a stop command, the service start-stop module may stop the route advertisement and stop the DHCPv6 server.
The DHCPv6 server linkage route advertisement starting and stopping method provided by the invention configures an interface needing to start the DHCPv6 server through a configuration management module, prompts and confirms whether to start the route advertisement on the interface, and generates a second configuration file for a route advertisement program under the condition of determining to start the route advertisement on the interface; the service start-stop module can also determine to start the route announcement when determining to start the DHCPv6 server, starts the route announcement on the interface according to the second configuration file, and links the start-stop of the route announcement through the DHCPv6 server to realize the high-efficiency communication between the distributed IPv6 address and the external network, avoid omitting route configuration steps during network configuration, and reduce the configuration error probability and the error checking cost.
Optionally, the method further comprises:
in the event that it is determined that a route advertisement is not to be initiated on the interface, not generating a second configuration file for use by a route advertisement program; generating a third configuration file based on the first configuration file and the information of the interface;
and starting the DHCPv6 server according to the first configuration file and the third configuration file, and not starting the route advertisement under the condition that the route advertisement is determined not to be started on the interface based on the third configuration file.
Optionally, the configuration management module may prompt the user to enter DHCPv6 configuration parameters.
Optionally, based on the DHCPv6 configuration parameters input by the user, the configuration management module may generate a first configuration file for use by the DHCPv6 server.
Optionally, the configuration management module may prompt configuration of the interface that requires the DHCPv6 server to be launched.
Optionally, based on the information of the first interface, the configuration management module may determine whether to initiate a route advertisement on the interface.
Optionally, the first configuration file may be used to support the DHCPv6 service program.
Optionally, the configuration management module may not generate a second configuration file for use with the route advertisement in the event that it is determined that the route advertisement is not to be initiated on the first interface.
Optionally, in case it is determined that the route advertisement is not initiated on the first interface, the configuration management module may skip the step of continuing to prompt the user to enter configuration parameters for the route advertisement, generating a second configuration file for use by the route advertisement program.
Optionally, based on the first configuration file and information of the first interface, the configuration management module may generate a third configuration file.
Optionally, a third configuration file may be used to save the present system configuration.
Optionally, the information of the first configuration file and the first interface may be saved in a third configuration file.
Optionally, based on the first configuration file and the third configuration file, the service start-stop module may start the DHCPv6 server.
Optionally, the service start-stop module may not initiate the route advertisement if it is determined not to initiate the route advertisement on the first interface based on the third profile.
According to the DHCPv6 server linkage route advertisement starting and stopping method provided by the invention, under the condition that the route advertisement is determined not to be started on the first interface, the configuration management module does not generate the second configuration file used by the route advertisement program, the service starting and stopping module starts the DHCPv6 server based on the first configuration file and the third configuration file, and under the condition that the route advertisement is determined not to be started on the interface based on the third configuration file, the service starting and stopping module does not start the route advertisement, and the service starting and stopping module is equivalent to an independent DHCPv6 server.
Optionally, the method further comprises:
determining a configuration item to be deleted;
under the condition that the DHCPv6 server and the route advertisement are closed, deleting the configuration item to be deleted from the third configuration file to obtain an updated third configuration file;
updating the first profile and the second profile based on the updated third profile.
Optionally, it may first be checked whether the DHCPv6 server and the corresponding route advertisement have been started.
Optionally, in a case that the DHCPv6 server and the corresponding route advertisement are already started, the configuration management module may delete the relevant configuration item in the system after prompting to close the DHCPv6 server and the route advertisement.
Optionally, in a case that the DHCPv6 server and the route advertisement are closed, based on the input parameters, the configuration management module may delete the relevant configuration item in the present system from the third configuration file.
Optionally, the configuration management module may delete the configuration item to be deleted from the third configuration file to obtain an updated third configuration file, and update the first configuration file and the second configuration file based on the updated third configuration file.
According to the DHCPv6 server linkage route announcement starting and stopping method provided by the invention, under the condition that the DHCPv6 server and the route announcement are closed, the configuration management module deletes the configuration item to be deleted from the third configuration file to obtain the updated third configuration file, and updates the first configuration file and the second configuration file based on the updated third configuration file, so that the configuration deletion process is realized, the configuration item is stored in the third configuration file, the configuration maintenance is facilitated, and the configuration error probability and the debugging cost are reduced.
Optionally, the method further comprises:
and in the case of receiving the stop command, searching the DHCPv6 server and the route advertisement indicated by the stop command, and stopping the DHCPv6 server and the route advertisement indicated by the stop command.
Optionally, the service start-stop module may start or stop the DHCPv6 server and the route advertisement based on a command input by the user.
Alternatively, the start-stop command may be handled by the configuration management module.
Optionally, if the analysis command is a start-stop command, the configuration management module may implement start-stop of the DHCPv6 server and the route advertisement through the scheduling service start-stop module.
Optionally, if the start-stop command is a start command, the service start-stop module may start the DHCPv6 server based on the interface information recorded in the first configuration file and the third configuration file.
Optionally, if the interface recorded in the third configuration file determines to start the route advertisement, the service start-stop module may continue to start the route advertisement according to the second configuration file.
Optionally, if the interface recorded in the third configuration file determines not to start the route advertisement, the service start/stop module may not start the route advertisement.
The DHCPv6 server linkage route announcement starting and stopping method provided by the invention has the advantages that under the condition that the stopping command is received, the DHCPv6 server and the route announcement indicated by the stopping command are searched through the service starting and stopping module, the DHCPv6 server and the route announcement are stopped, and the corresponding route announcement is simultaneously stopped in an associated manner when the DHCPv6 server is stopped, so that the abnormal service caused by the subsequent configuration updating is prevented, and the system stability is improved.
Fig. 6 illustrates a physical structure diagram of an electronic device, which may include, as shown in fig. 6: a processor (processor) 610, a communication Interface (Communications Interface) 620, a memory (memory) 630 and a communication bus 640, wherein the processor 610, the communication Interface 620 and the memory 630 communicate with each other via the communication bus 640. The processor 610 may invoke logic instructions in the memory 630 to execute a DHCPv6 server coordinated route advertisement start-stop method comprising:
under the condition that the DHCPv6 server is determined to be started, generating a first configuration file supporting the DHCPv6 server, configuring an interface needing to start the DHCPv6 server, and judging whether to start a route advertisement on the interface;
generating a second configuration file for use by a route advertisement program in the event that it is determined that a route advertisement is initiated on the interface;
generating a third configuration file based on the first configuration file, the second configuration file and the information of the interface;
and starting the DHCPv6 server according to the first configuration file and the third configuration file, and starting a route advertisement on the interface according to the second configuration file under the condition that the route advertisement is determined to be started on the interface based on the third configuration file.
In addition, the logic instructions in the memory 630 may be implemented in software functional units and stored in a computer readable storage medium when the logic instructions are sold or used as independent products. Based on such understanding, the technical solution of the present invention or a part thereof which substantially contributes to the prior art may be embodied in the form of a software product, which is stored in a storage medium and includes several instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes.
In another aspect, the present invention further provides a computer program product, where the computer program product includes a computer program, the computer program may be stored on a non-transitory computer readable storage medium, and when the computer program is executed by a processor, the computer is capable of executing the DHCPv6 server linkage route advertisement start-stop method provided by the above methods, and the method includes:
under the condition that the DHCPv6 server is determined to be started, generating a first configuration file supporting the DHCPv6 server, configuring an interface needing to start the DHCPv6 server, and judging whether to start a route advertisement on the interface;
generating a second configuration file for use by a route advertisement program in the event that it is determined that a route advertisement is initiated on the interface;
generating a third configuration file based on the first configuration file, the second configuration file and the information of the interface;
and starting the DHCPv6 server according to the first configuration file and the third configuration file, and starting a route advertisement on the interface according to the second configuration file under the condition that the route advertisement on the interface is determined to be started based on the third configuration file.
In another aspect, the present invention further provides a non-transitory computer-readable storage medium, on which a computer program is stored, where the computer program, when executed by a processor, is implemented to perform the DHCPv6 server linkage route advertisement start-stop method provided by the foregoing methods, where the method includes:
under the condition that the DHCPv6 server is determined to be started, generating a first configuration file supporting the DHCPv6 server, configuring an interface needing to start the DHCPv6 server, and judging whether to start a route advertisement on the interface;
generating a second configuration file for use by a route advertisement program if it is determined that a route advertisement is initiated on the interface;
generating a third configuration file based on the first configuration file, the second configuration file and the information of the interface;
and starting the DHCPv6 server according to the first configuration file and the third configuration file, and starting a route advertisement on the interface according to the second configuration file under the condition that the route advertisement is determined to be started on the interface based on the third configuration file.
The above-described embodiments of the apparatus are merely illustrative, and the units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one position, or may be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of the present embodiment. One of ordinary skill in the art can understand and implement it without inventive effort.
Through the above description of the embodiments, those skilled in the art will clearly understand that each embodiment can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware. With this understanding in mind, the above-described technical solutions may be embodied in the form of a software product, which can be stored in a computer-readable storage medium such as ROM/RAM, magnetic disk, optical disk, etc., and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to execute the methods described in the embodiments or some parts of the embodiments.
Finally, it should be noted that: the above examples are only intended to illustrate the technical solution of the present invention, but not to limit it; although the present invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; and such modifications or substitutions do not depart from the spirit and scope of the corresponding technical solutions of the embodiments of the present invention.

Claims (10)

1. The utility model provides a DHCPv6 server linkage route advertisement opens stops system which characterized in that, stops the module including configuration management module and service start-stop:
the configuration management module is used for generating a first configuration file supporting the DHCPv6 server under the condition of determining to start the DHCPv6 server, configuring an interface needing to start the DHCPv6 server, and judging whether to start a route advertisement on the interface; under the condition that the routing advertisement is determined to be started on the interface, generating a second configuration file for a routing advertisement program to use, and generating a third configuration file based on the first configuration file, the second configuration file and the information of the interface;
the service start/stop module is configured to start the DHCPv6 server according to the first configuration file and the third configuration file when a start command is received, and start a route advertisement on the interface according to the second configuration file when it is determined that the route advertisement is started on the interface based on the third configuration file.
2. The DHCPv6 server linked route advertisement start-stop system according to claim 1, wherein the configuration management module is further configured to not generate a second configuration file for use by a route advertisement program if it is determined that the route advertisement is not started on the interface; generating a third configuration file based on the first configuration file and the information of the interface;
the service start/stop module is configured to start the DHCPv6 server according to the first configuration file and the third configuration file, and not start a route advertisement when determining that the route advertisement is not started on the interface based on the third configuration file.
3. The DHCPv6 server linkage route advertisement start-stop system according to claim 1, wherein the configuration management module is further configured to determine a configuration item to be deleted, delete the configuration item to be deleted from a third configuration file to obtain an updated third configuration file when the DHCPv6 server and the route advertisement are closed, and update the first configuration file and the second configuration file based on the updated third configuration file.
4. The DHCPv6 server linkage route advertisement start-stop system according to claim 1, wherein the service start-stop module is configured to, when receiving a stop command, search for the DHCPv6 server and the route advertisement indicated by the stop command, and stop the DHCPv6 server and the route advertisement indicated by the stop command.
5. A DHCPv6 server linkage route advertisement start-stop method is applied to a DHCPv6 server linkage route advertisement start-stop system, and comprises the following steps:
under the condition that the DHCPv6 server is determined to be started, generating a first configuration file supporting the DHCPv6 server, configuring an interface needing to start the DHCPv6 server, and judging whether to start a route advertisement on the interface;
generating a second configuration file for use by a route advertisement program if it is determined that a route advertisement is initiated on the interface;
generating a third configuration file based on the first configuration file, the second configuration file and the information of the interface;
and starting the DHCPv6 server according to the first configuration file and the third configuration file, and starting a route advertisement on the interface according to the second configuration file under the condition that the route advertisement on the interface is determined to be started based on the third configuration file.
6. The DHCPv6 server linkage route advertisement start-stop method according to claim 5, further comprising:
in the event that it is determined that a route advertisement is not to be initiated on the interface, not generating a second configuration file for use by a route advertisement program; generating a third configuration file based on the first configuration file and the information of the interface;
and starting the DHCPv6 server according to the first configuration file and the third configuration file, and not starting the route advertisement under the condition that the route advertisement is determined not to be started on the interface based on the third configuration file.
7. The DHCPv6 server linkage route advertisement start-stop method according to claim 5, further comprising:
determining a configuration item to be deleted;
under the condition that the DHCPv6 server and the route announcement are closed, deleting the configuration item to be deleted from the third configuration file to obtain an updated third configuration file;
updating the first profile and the second profile based on the updated third profile.
8. The DHCPv6 server linkage route advertisement start-stop method according to claim 5, further comprising:
and in the case of receiving the stop command, searching the DHCPv6 server and the route advertisement indicated by the stop command, and stopping the DHCPv6 server and the route advertisement indicated by the stop command.
9. An electronic device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, wherein the processor implements the DHCPv6 server coordinated route advertisement start-stop method according to any one of claims 5 to 8 when executing the program.
10. A non-transitory computer readable storage medium having stored thereon a computer program, wherein the computer program when executed by a processor implements the DHCPv6 server coordinated route advertisement start-stop method according to any one of claims 5 to 8.
CN202310010257.4A 2023-01-05 2023-01-05 DHCPv6 server linkage route advertisement starting and stopping system and method Active CN115695303B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310010257.4A CN115695303B (en) 2023-01-05 2023-01-05 DHCPv6 server linkage route advertisement starting and stopping system and method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310010257.4A CN115695303B (en) 2023-01-05 2023-01-05 DHCPv6 server linkage route advertisement starting and stopping system and method

Publications (2)

Publication Number Publication Date
CN115695303A true CN115695303A (en) 2023-02-03
CN115695303B CN115695303B (en) 2023-03-10

Family

ID=85056982

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310010257.4A Active CN115695303B (en) 2023-01-05 2023-01-05 DHCPv6 server linkage route advertisement starting and stopping system and method

Country Status (1)

Country Link
CN (1) CN115695303B (en)

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070268919A1 (en) * 2006-05-19 2007-11-22 Futurewei Technologies, Inc. Using DHCPv6 and AAA for Mobile Station Prefix Delegation and Enhanced Neighbor Discovery
CN103384282A (en) * 2013-07-31 2013-11-06 北京华为数字技术有限公司 Method for obtaining IPV6ND address and broadband remote access server (BARS)
CN103581353A (en) * 2012-08-02 2014-02-12 上海斐讯数据通信技术有限公司 Method and system of automatic configuration of gateway device
CN112449752A (en) * 2018-12-26 2021-03-05 华为技术有限公司 IPv6 address configuration method and routing equipment
US20210105338A1 (en) * 2020-01-06 2021-04-08 Intel Corporation Quality of service (qos) management with network-based media processing (nbmp)
CN113660358A (en) * 2021-08-20 2021-11-16 芯河半导体科技(无锡)有限公司 Method for distributing different Ipv6PD prefixes to drop-on equipment by gateway
US20220311734A1 (en) * 2019-06-20 2022-09-29 Orange Method and Device for Obtaining an IP Address

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070268919A1 (en) * 2006-05-19 2007-11-22 Futurewei Technologies, Inc. Using DHCPv6 and AAA for Mobile Station Prefix Delegation and Enhanced Neighbor Discovery
CN103581353A (en) * 2012-08-02 2014-02-12 上海斐讯数据通信技术有限公司 Method and system of automatic configuration of gateway device
CN103384282A (en) * 2013-07-31 2013-11-06 北京华为数字技术有限公司 Method for obtaining IPV6ND address and broadband remote access server (BARS)
CN112449752A (en) * 2018-12-26 2021-03-05 华为技术有限公司 IPv6 address configuration method and routing equipment
US20220311734A1 (en) * 2019-06-20 2022-09-29 Orange Method and Device for Obtaining an IP Address
US20210105338A1 (en) * 2020-01-06 2021-04-08 Intel Corporation Quality of service (qos) management with network-based media processing (nbmp)
CN113660358A (en) * 2021-08-20 2021-11-16 芯河半导体科技(无锡)有限公司 Method for distributing different Ipv6PD prefixes to drop-on equipment by gateway

Also Published As

Publication number Publication date
CN115695303B (en) 2023-03-10

Similar Documents

Publication Publication Date Title
CN108334334B (en) Method and system for managing dependent package version
US10541869B2 (en) Upgrading of controller cluster
US8874091B2 (en) Automatic device capabilities change notification
CN109842656B (en) Intelligent compatible multi-protocol Internet of vehicles service method and Internet of vehicles gateway system
US10303463B2 (en) Terminal management framework and terminal management method
CN112615747B (en) Method and device for automatically deploying and configuring network equipment
CN104699499B (en) A kind of heterogeneous terminals method for upgrading software
CN104104701A (en) Online service configuration updating method and system
CN115695303B (en) DHCPv6 server linkage route advertisement starting and stopping system and method
CN107425994B (en) Method, terminal and server for realizing remote parameter management
CN111866197B (en) Domain name resolution method and system
CN116775086A (en) Partition upgrading method and related device of android device
CN111770487B (en) Access Point Name (APN) information configuration method, equipment and medium
EP2200395A1 (en) Managing method, system and device for an appearance packet
CN115766439A (en) KVM device batch upgrading method and device and electronic device
CN112685102B (en) Gateway plug-in hot loading method, device, equipment and medium
CN113507415B (en) Table item processing method and device
CN112181785B (en) Method, terminal and storage medium for automatically adding monitoring equipment
CN114895933A (en) System upgrade method, network device, medium, and electronic device
CN111080250B (en) Flow backspacing compensation method and device, storage medium and electronic equipment
CN112328267A (en) Multi-server installation method and device, terminal and storage medium
AU2009349406B2 (en) Method for managing configuration information of outsourced part, and method and system for managing alarm
CN112311570A (en) Method and device for opening network equipment
CN116107603B (en) Firmware upgrading method and device, storage medium and electronic equipment
US20230214207A1 (en) Device upgrade control method and apparatus, and computer device and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant