A method, system and related devices for automated allocation of IPv6 addresses
By dividing IPv6 network segments into multiple fields and establishing network segment templates, the automated allocation of IPv6 addresses is achieved, solving the problem of relying on human experience in existing technologies, improving the efficiency and uniformity of IPv6 address management, and supporting intelligent network environments in data centers.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-08-09
- Publication Date
- 2026-03-24
AI Technical Summary
In existing technologies, IPv6 address allocation relies on the experience of technical personnel, which is highly subjective, lacks data support, makes it difficult to meet business requirements, has low management efficiency, and poses a risk of information loss.
By dividing IPv6 network segments into multiple fields and establishing network segment templates at different levels, the address range can be automatically set using the network segment configuration interface, thereby achieving automated allocation of IPv6 addresses.
It enables automated allocation of IPv6 addresses, improves management efficiency, reduces human error, ensures the uniformity and scalability of IPv6 address allocation, and supports intelligent and seamless network environments in data centers.
Smart Images

Figure CN116866311B_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The present application relates to the technical field of data processing, in particular to a method and system for automatically allocating IPv6 addresses and related devices. BACKGROUND
[0002] With the continuous development of Internet Protocol Address Version 6 (IPv6) related technologies, IP address resources are more abundant, and the requirements for unified planning and allocation of IP addresses are also higher.
[0003] Currently, IPv6 addresses are usually allocated by manual operation, but this method relies too much on the experience of technical personnel, is too subjective and lacks data support, and is difficult to meet business requirements. SUMMARY
[0004] Therefore, the embodiments of the present application provide a method and system for automatically allocating IPv6 addresses and related devices to realize the automatic allocation of different types of IPv6 addresses.
[0005] To achieve the above-mentioned purpose, the embodiments of the present application provide the following technical solutions:
[0006] The first aspect of the embodiments of the present application discloses a method for automatically allocating IPv6 addresses, comprising:
[0007] In response to a selection instruction triggered in a network segment configuration interface to determine an arbitrary Nth level network segment template as a target template, wherein N is greater than or equal to 1 and N starts from 1, the IPv6 network segment is divided into a plurality of fields containing at least a business category field in advance, different fields correspond to network segment templates of different levels, and the first level network segment template corresponds to the business category field;
[0008] At least the address range of the field corresponding to the target template is displayed in the network segment configuration interface;
[0009] Definition information entered in the network segment configuration interface is obtained, and based on the definition information and the address range of the field corresponding to the target template, the specific meaning of the address range of the field corresponding to the target template is set;
[0010] The field tags of at least one next level network segment template associated with the target template are displayed in the network segment configuration interface for selection, N is incremented by 1, and the step of responding to the selection instruction triggered in the network segment configuration interface to determine an arbitrary Nth level network segment template as a target template is returned to be executed until the specific meaning of the address range of each field is set to obtain a to-be-allocated IPv6 network segment;
[0011] allocate IPv6 addresses based on the IPv6 network segment to be allocated.
[0012] Preferably, before determining an arbitrary Nth-level network segment template as a target template in response to a selection instruction triggered in the network segment configuration interface, the method further comprises:
[0013] In response to a creation instruction triggered in the network segment configuration interface, creating a network segment template corresponding to the field;
[0014] In response to a configuration instruction triggered in the network segment configuration interface, configuring a field data source adopted by the field corresponding to the network segment template;
[0015] Configuring an address range of the field corresponding to the network segment template by using an address range in the field data source.
[0016] Preferably, configuring an address range of the field corresponding to the network segment template by using an address range in the field data source comprises:
[0017] Selecting an arbitrary address range from an address range selection list as the address range of the field corresponding to the network segment template, or obtaining an address range entered in an input box as the address range of the field corresponding to the network segment template, wherein the address range in the address range selection list and the address range entered in the input box are arbitrary address ranges in the field data source.
[0018] Preferably, in response to a creation instruction triggered in the network segment configuration interface, creating a network segment template corresponding to the field comprises:
[0019] In response to a creation instruction triggered in the network segment configuration interface, creating a network segment template corresponding to the field, and creating a field label corresponding to the network segment template;
[0020] Configuring an association relationship between network segment templates of different levels.
[0021] The second aspect of the embodiment of the application discloses a system for automatically allocating IPv6 addresses, and the system comprises:
[0022] A selection unit is configured to determine an arbitrary Nth-level network segment template as a target template in response to a selection instruction triggered in a network segment configuration interface, wherein N is greater than or equal to 1 and N starts from 1, an IPv6 network segment is divided into a plurality of fields containing at least a service category field in advance, different fields correspond to network segment templates of different levels, and a first-level network segment template corresponds to the service category field.
[0023] A display unit is configured to display at least an address range of a field corresponding to the target template in the network segment configuration interface.
[0024] The setting unit is configured to acquire definition information input in the network segment configuration interface, and set specific meanings of the address range of the field corresponding to the target template based on the definition information and the address range of the field corresponding to the target template.
[0025] The processing unit is configured to display field labels of at least one next-level network segment template associated with the target template in the network segment configuration interface for selection, and N is incremented by 1, and the selection unit is executed until the specific meanings of the address ranges of the fields are set to obtain the IPv6 network segment to be allocated.
[0026] The allocation unit is configured to allocate IPv6 addresses based on the IPv6 network segment to be allocated.
[0027] Preferably, the method further comprises:
[0028] The creating unit is configured to create a network segment template corresponding to the field in response to a creation instruction triggered in the network segment configuration interface.
[0029] The first configuration unit is configured to configure a field data source used by the field corresponding to the network segment template in response to a configuration instruction triggered in the network segment configuration interface.
[0030] The second configuration unit is configured to configure the address range of the field corresponding to the network segment template by using the address range in the field data source.
[0031] Preferably, the second configuration unit is specifically configured to select any address range from an address range selection list as the address range of the field corresponding to the network segment template, or acquire an address range input in an input box as the address range of the field corresponding to the network segment template, wherein the address range in the address range selection list and the address range input in the input box are any address range in the field data source.
[0032] Preferably, the creating unit is specifically configured to create a network segment template corresponding to the field and create a field label corresponding to the network segment template in response to a creation instruction triggered in the network segment configuration interface, and configure an association relationship between network segment templates of different levels.
[0033] The third aspect of the embodiment of the application discloses an electronic device, comprising a processor and a memory, the processor and the memory are connected through a communication bus; wherein the processor is configured to call and execute a program stored in the memory; the memory is configured to store a program, and the program is used to implement the method for automatically allocating IPv6 addresses disclosed in the first aspect of the embodiment of the application.
[0034] The fourth aspect of the embodiment of the present application discloses a computer readable storage medium, wherein computer executable instructions are stored in the computer readable storage medium, and the computer executable instructions are used to execute the method for automatically allocating IPv6 addresses disclosed in the first aspect of the embodiment of the present application.
[0035] Based on the method, system and related device for automatically allocating IPv6 addresses provided by the embodiment of the present application, the method is as follows: in response to a selection instruction triggered in a network segment configuration interface, an arbitrary Nth network segment template is determined as a target template; in the network segment configuration interface, an address range of a field corresponding to the target template is displayed; definition information input in the network segment configuration interface is acquired, and based on the definition information and the address range of the field corresponding to the target template, specific meanings of the address range of the field corresponding to the target template are set; in the network segment configuration interface, field labels of at least one next level network segment template associated with the target template are displayed for selection, N is increased by 1, and the step of determining an arbitrary Nth network segment template as a target template in response to a selection instruction triggered in a network segment configuration interface is returned to be executed until the specific meanings of the address ranges of the fields are set to obtain a to-be-allocated IPv6 network segment; and IPv6 address allocation is performed based on the to-be-allocated IPv6 network segment. In the scheme, the IPv6 network segment is divided into multiple fields, and corresponding network segment templates are set, and the network segment templates of various levels are used to determine the to-be-allocated IPv6 network segment. IPv6 address allocation is performed based on the to-be-allocated IPv6 network segment, and automatic allocation of different types of IPv6 addresses is realized. BRIEF DESCRIPTION OF DRAWINGS
[0036] In order to more clearly illustrate the technical solutions in the embodiments of the present application or the prior art, the drawings needed to be used in the embodiments or the prior art description will be briefly introduced as follows. Obviously, the drawings in the following description are only embodiments of the present application, and other drawings can be obtained by those skilled in the art without creative effort on the basis of the provided drawings.
[0037] Figure 1 A flowchart of the method for automatically allocating IPv6 addresses provided by the embodiment of the present application is shown in the figure.
[0038] Figure 2 An example diagram of the to-be-allocated IPv6 network segment provided by the embodiment of the present application is shown in the figure.
[0039] Figure 3 An example diagram of the step of creating a network segment template provided by the embodiment of the present application is shown in the figure.
[0040] Figure 4 A structural block diagram of the system for automatically allocating IPv6 addresses provided by the embodiment of the present application is shown in the figure. DETAILED DESCRIPTION
[0041] With reference to the drawings of the embodiments of the present application, the technical solutions in the embodiments of the present application will be clearly and completely described. Obviously, the described embodiments are only a part of the embodiments of the present application, rather than all the embodiments of the present application. Based on the embodiments of the present application, all other embodiments obtained by those of ordinary skill in the art without creative efforts are within the scope of the present application.
[0042] In the present application, the terms "comprising", "containing" or any other variant thereof are intended to cover non-exclusive inclusion, so that the process, method, article or equipment including a series of elements not only includes those elements, but also includes other elements not explicitly listed or inherent to such process, method, article or equipment. Without more limitations, the element defined by the sentence "comprising a" does not exclude the presence of other identical elements in the process, method, article or equipment including the element.
[0043] It should be noted that, with the continuous development of Internet Protocol Address Version 6 (IPv6 address) related technologies, the IP address resources are more abundant, and the requirements for unified planning and allocation of IP addresses are also higher. The length of IPv6 address is 128 bits, which is 4 times the length of IPv4 address. In order to realize the unified allocation and management of IPv6 addresses in data center, the classification use according to different bit numbers of IPv6 network segment can be planned, the fixed address segment value range is preset according to the bit number of the same type of address segment, and the reserved address bit is provided. The uniformity and scalability of address allocation are fully considered, which facilitates better calculation of the currently available address resources in the subsequent address resource allocation process.
[0044] The inventor found through research that, under the existing technical conditions, IPv6 addresses are usually allocated by manual operation, which relies on the experience of technical personnel. The IPv6 address management capability does not match the large-scale expansion of IP addresses. Modeling only depends on the ability and experience of technical personnel, which is subjective and lacks data support, and it is difficult to meet the business requirements. In addition, the automation degree of IPv6 modeling management and maintenance is low, no knowledge base is formed, the efficiency is low, there is a risk of information loss, and there is a lack of parameter full life cycle management concept and means.
[0045] The scheme provides a method, system and related equipment for automatically allocating IPv6 addresses, abstracts IPv6 address usage and allocation rules into a network segment model, realizes automatic online allocation of IPv6 network segments, and provides data support for automatic allocation of IPv6 addresses, which can be adjusted according to instantiation or dynamically adjusted according to changes in rules. Using the scheme, a unique IPv6 address identifier can be allocated to each host in data center construction, new IPv6 allocation rules are digitized and automatically arranged, an intelligent and dynamic IPv6 modeling method is formed, IPv6 is divided based on multiple IT infrastructures, and thus the data center construction is more reasonably planned, and an intelligent and non-sensing environment is created for network interconnection. The scheme is described in detail through various embodiments.
[0046] Referring to Figure 1 , a flowchart of a method for automatically allocating IPv6 addresses provided by an embodiment of the application is shown, and the method comprises:
[0047] Step S101: In response to a selection instruction triggered in a network segment configuration interface, determine an arbitrary Nth network segment template as a target template.
[0048] It should be noted that N is greater than or equal to 1 and starts from 1, and the IPv6 network segment is divided into multiple fields containing at least a business category field; multiple levels of network segment templates are established in advance, different fields correspond to different levels of network segment templates, and the first level of network segment template corresponds to the business category field.
[0049] The multiple fields divided above include but are not limited to: "prefix", "business category", "organization", "subnet domain" and the like. On this basis, IPv6 network segments can be created based on multiple IT infrastructures, and the overall creation process can include processes of determining a prefix, distinguishing a business category, determining an organization, and filling in a subnet domain.
[0050] Determine the prefix (determine the public network fixed prefix): apply for IPv6 addresses with 32-bit prefix length "address block" as granularity, and the main business categories share the currently applied 32-bit address prefix. For new businesses and expansion businesses, a new 32-bit prefix can be considered.
[0051] Distinguish the business category: different IT architectures are distinguished by different ranges of business categories, different business categories have fixed filling ranges in corresponding address bit numbers, and the business category is distinguished by selecting different address bit numbers.
[0052] Determine the organization: the filling rules of the organization are determined according to different organization specifications, and the organization is distinguished by following the same organization filling specification.
[0053] Fill in the subnet domain: the overall rules are unified, and the business categories and organizations are common identifiers. Each IT infrastructure is distinguished by other subnet domains according to different business models (business categories, each business category is a set of address models).
[0054] In the implementation of step S101, a network segment configuration interface is displayed, and a user can select a network segment template and perform other related operations on the network segment configuration interface. In response to a selection instruction triggered on the network segment configuration interface, an arbitrary Nth-level network segment template is determined as a target template.
[0055] It can be understood that when starting to create an IPv6 network segment, an arbitrary 1st-level network segment template (an arbitrary business category) is selected as the target template.
[0056] Step S102: At least the address range of the field corresponding to the target template is displayed in the network segment configuration interface.
[0057] It should be noted that when creating a network segment template, the address range of the field (business category, prefix, etc.) corresponding to the network segment template is also configured.
[0058] In the implementation of step S102, after the target template is determined, at least the address range of the field corresponding to the target template is displayed in the network segment configuration interface. In addition, the field length and other information of the field corresponding to the target template can also be displayed in the network segment configuration interface.
[0059] Step S103: Obtain the definition information entered on the network segment configuration interface, and set the specific meaning of the address range of the field corresponding to the target template based on the definition information and the address range of the field corresponding to the target template.
[0060] In the implementation of step S103, after at least the address range of the field corresponding to the target template is displayed in the network segment configuration interface, the specific meaning of the address range of the field corresponding to the target template can be set in the network segment configuration interface. Specifically, the definition information entered on the network segment configuration interface is obtained, and the specific meaning of the address range of the field corresponding to the target template is set based on the definition information and the address range of the field corresponding to the target template.
[0061] For example, assuming that the field corresponding to the target template is a business category field, and the address range of the field corresponding to the target template is bit number 33-40 (the length is 8-bit binary length, which is equivalent to 2-bit hexadecimal length), 3F (converted into hexadecimal) can be set to represent "Internet" based on the entered definition information.
[0062] For another example, assuming that the field corresponding to the target template is an organization field, and the address range of the field corresponding to the target template is bit number 41-48, 00 can be set to represent "City A" and 01 can be set to represent "City B" based on the entered definition information.
[0063] Step S104: Display the field label of at least one next level network segment template associated with the target template in the network segment configuration interface for selection, and N is incremented by 1 (N=N+1), return to execute step S101 until the specific meaning of the address range of each field is set to obtain the IPv6 network segment to be allocated.
[0064] It should be noted that, in order to facilitate the configuration of the IPv6 network segment and to meet the diversified business requirements, the present scheme constructs the association relationship (equivalent to the parent-child relationship or inheritance relationship) between the network segment templates according to the concept of parent template and child template; for the network segment template as the parent template, the network segment template has a plurality of child templates (associated next level network segment templates), and any one of the child templates of the network segment template can be selected for the configuration of the network segment according to the actual situation.
[0065] For example, assuming that the target template corresponds to a business category field, the target template is associated with a plurality of next level network segment templates (corresponding to organization field and other fields); the network segment template corresponding to the organization field or the network segment template corresponding to the other field can be selected for the configuration of the network segment according to the actual situation.
[0066] In the process of implementing step S104, after setting the specific meaning of the address range of the field corresponding to the target template, the field label of at least one next level network segment template associated with the target template is displayed in the network segment configuration interface for selection; specifically, the field label of at least one next level network segment template associated with the target template can be displayed in the form of a drop-down selection box in the network segment configuration interface for selection to continue configuring the specific meaning of the address range of the field corresponding to the next level network segment template.
[0067] After selecting the field label of any next level network segment template associated with the target template, N is incremented by 1 (N=N+1), and step S101 is executed to continue to determine the Nth level network segment template as the target template (at this time, the target template is the selected next level network segment template), until the specific meaning of the address range of each field is set to obtain the IPv6 network segment to be allocated.
[0068] For example, if the first level network segment template is selected as the target template, the specific meaning of the address range of the field corresponding to the target template is set through the above steps S101 to S103, and then the field label of at least one next level network segment template (in this case, the second level network segment template) associated with the target template is displayed on the network segment configuration interface. After selecting the field label of any next level network segment template associated with the target template, N is incremented by 1. Then, the step S101 is returned to execute, and the second level network segment template is determined as the target template. The specific meaning of the address range of the field corresponding to the target template (the second level network segment template) is set, and the field label of at least one next level network segment template (in this case, the third level network segment template) associated with the target template is displayed. This is repeated until the specific meaning of the address range of each field is set (equivalent to the configuration of the network segment template of each level), so as to create the to-be-assigned IPv6 network segment.
[0069] Step S105: IPv6 address assignment based on the to-be-assigned IPv6 network segment.
[0070] In the process of implementing the step S105, after the to-be-assigned IPv6 network segment is created, the IPv6 addresses are sequentially assigned from the back based on the to-be-assigned IPv6 network segment. For example, if the created to-be-assigned IPv6 network segment contains 255 IPs, the IPv6 addresses are assigned from 1 to 255.
[0071] As can be seen from the above, by configuring the network segment templates of each level, different service categories, different organizations, and different subnet domains are distinguished, so that the division rules of the IPv6 network segment are clear, and the to-be-assigned IPv6 network segment is created.
[0072] To better explain the to-be-assigned IPv6 network segment, an example of the to-be-assigned IPv6 network segment is illustrated by referring to Figure 2 As shown in Figure 2 It can be seen that the plurality of fields pre-divided include a fixed prefix field, a service category field, an organization field, a reserved field, and an address type field. The set network segment templates correspond to a certain field, and at least the field length (binary length in Figure 2 ) and the address range (prefix bit number in Figure 2 ) of the corresponding field are defined in the network segment template. The specific meaning of the address range of each field (i.e., the content of the "hexadecimal representation" line in Figure 2 ) is set through the above steps S101 to S104, so as to obtain the to-be-assigned IPv6 network segment.
[0073] It should be noted that the above Figure 2 The content shown is only used for example and illustration, and does not limit the IPv6 network segment.
[0074] In this embodiment of the invention, IPv6 network segments are divided into multiple fields and corresponding network segment templates are set. The network segment templates at each level are used to determine the IPv6 network segments to be allocated. IPv6 addresses are then allocated based on these segments, achieving automated allocation of different categories of IPv6 addresses.
[0075] It should be noted that each business category has its own address model. Since the subnetting domains of different models are not the same, and the bit width planning of each business category is not consistent, there are many models. In order to facilitate the creation of IPv6 network segments in the future, network segment templates are created in advance and the relevant data is configured in advance.
[0076] In some embodiments, the above-described embodiments of the present invention are performed. Figure 1 Before step S101, in response to the creation command triggered in the network segment configuration interface, a network segment template corresponding to the field is created, or in other words, a network segment template is created and the fields corresponding to the network segment template are set.
[0077] After creating a network segment template, in response to the configuration command triggered in the network segment configuration interface, configure the field data source used for the corresponding field of the network segment template; and use the address range in the field data source to configure the address range of the corresponding field of the network segment template.
[0078] In some specific embodiments, the specific way to configure the address range of the corresponding field of the network segment template is as follows: select any address range from the address range selection list as the address range of the corresponding field of the network segment template, or obtain the address range entered in the input box as the address range of the corresponding field of the network segment template, wherein the address range in the address range selection list and the address range entered in the input box are any address ranges in the field data source.
[0079] In other words, after configuring the data source used for the corresponding field of the network segment template, you can select any address range in the data source as the address range of the corresponding field of the network segment template.
[0080] It should be noted that "getting the address range entered in the input box as the address range of the corresponding field in the network segment template" includes two implementation methods:
[0081] The first implementation method is to display multiple address ranges to choose from (all of which belong to the address ranges in the field data source). After selecting a specific address range, you can enter any address range from the selected specific address range in the input box. That is, the address range entered at this time belongs to the selected specific address range.
[0082] The second implementation manner is that an address range is input in the input box as the address range of the net segment template corresponding to the field, wherein the input address range belongs to the address range in the field data source.
[0083] In some specific embodiments, the specific manner of creating the net segment template corresponding to the field is that, in response to a creation instruction triggered in the net segment configuration interface, the net segment template corresponding to the field is created, and the field tag corresponding to the net segment template is created; and the association relationship between the net segment templates of different levels is configured.
[0084] It should be noted that the above description is combined with the Figure 3 The step example diagram of creating the net segment template is shown, and the content of creating the net segment template specifically involves the steps of tag configuration, field configuration, field data source configuration, net segment template configuration, and the like, which will be explained and described respectively.
[0085] The tag configuration: the tag configuration mainly responsible for configuring the tags used in the business subdivision and the tags to which the specific data source of the numerical dictionary needs to be bound; in the creation and management process of the IPv6 net segment, the selection of each field will dynamically affect the loading of the subsequent fields, and by creating the tags, the field related data can be more flexibly selected to replace the direct selection of the data content when the business is created, so that the flexibility and convenience of the business operation can be increased.
[0086] The field configuration: the field configuration mainly realizes the operation of configuring the field item, and in the management operation of the IPv6 net segment, the field content created is bound to the content or range that can be selected in the net segment range. The field type mainly includes three types of "multi-level selection box", "selection and then input", and "input box". Among them, the field of the "multi-level selection box" type is directly selected in the tree-shaped expansion address range selection list when created, so as to select the address range (configure the address range of the field corresponding to the net segment template) to be bound for the newly created field; the field of the "selection and then input" type is displayed with a plurality of address ranges that can be selected when created, and after a specific address range is selected, any address range in the selected specific address range can be input in the input box; the field of the "input box" type is directly input in the input box when created.
[0087] The field data source configuration: when the field data source is created, the creation of the parent dictionary is supported, so that the parent-child relationship of the field data source is established. The value of the field data source is affected by the "field length" in the above "field configuration", and the value cannot exceed the configured field length. When the tag is created for the field data source, the content in the drop-down selection box is the preset tag content. The field data source defines the name and address value of the specific address bit segment under the field, and supports binding the parent dictionary for easy viewing. When the field data source is configured, the name and value need to be filled in, and the field, parent content, and tag need to be selected.
[0088] The network segment template configuration can support the creation of a network segment template and an address module. The network segment template has a parent-child template structure. When a parent template is created, the content of the parent template does not need to be filled in. At this time, the level of the template is defaulted to level 1. The first level template needs to fill in the two items of "business major category" and "business subdivision label". The second level template automatically inherits the related attributes of the first level template, so the two items of "business major category" and "business subdivision label" do not need to be filled in. After a template selects a parent template, the template is automatically changed to a second level template. The second level template adds a "search label" item in the template configuration form interface (the item is displayed when there is a parent template). The "search label" item binds the search label of the second level template. The selection of the label is from the label bound by the parent template. The label content filled in the "search label" item is a subset of the parent label, so that the required label content can be quickly filtered out when searching for a child template. The network segment template configuration mainly realizes the creation of an IPv6 network segment template. When a new template is created, the created template can be set as a parent template for use. The content of the created template supports the binding of a business type label.
[0089] The above is the related description of creating a network segment template.
[0090] As can be seen from the above embodiments, the present scheme uniformly sorts the IPv6 network segment rules. First, the major categories of IPv6 network segment planning are determined. Then, on the basis of the major category planning, the prefix with a fixed number of bits is determined, the fields of the business major category are divided, and the corresponding field bit number is identified, so as to realize the classification and allocation of the IPv6 network segment. The present scheme has the following advantages:
[0091] The present scheme can realize the online unified management and automatic allocation of the data center IPv6 network segment, standardize the maintenance and management of the IPv6 address, and enable the IP address management personnel to online view the use of the IP address and improve the management efficiency of the IP address through the allocation rules. In addition, the present scheme adds the management mode of the IPv6 network segment, enriches the use of the IP resources, and thus solves the problem of the use of the IP resources in the growing network environment.
[0092] Corresponding to the above-mentioned method for automatically allocating an IPv6 address provided by the embodiment of the present application, referring to Figure 4 The embodiment of the present application further provides a structural block diagram of a system for automatically allocating an IPv6 address. The system comprises a selection unit 401, a display unit 402, a setting unit 403, a processing unit 404, and an allocation unit 405.
[0093] The selecting unit 401 is configured to determine an arbitrary Nth-level network segment template as a target template in response to a selection instruction triggered in the network segment configuration interface, wherein N is greater than or equal to 1 and N starts from 1, the IPv6 network segment is divided into a plurality of fields in advance, different fields correspond to network segment templates of different levels, and the first-level network segment template corresponds to the service category field.
[0094] The displaying unit 402 is configured to display at least an address range of a field corresponding to the target template in the network segment configuration interface.
[0095] The setting unit 403 is configured to acquire definition information input in the network segment configuration interface, and set a specific meaning of the address range of the field corresponding to the target template based on the definition information and the address range of the field corresponding to the target template.
[0096] The processing unit 404 is configured to display a field label of at least one next-level network segment template associated with the target template in the network segment configuration interface for selection, and return to execute the selecting unit 401 until the specific meanings of the address ranges of the fields are set to obtain the IPv6 network segment to be allocated.
[0097] The allocating unit 405 is configured to allocate IPv6 addresses based on the IPv6 network segment to be allocated.
[0098] In the embodiment of the present application, the IPv6 network segment is divided into a plurality of fields and corresponding network segment templates are set, and the network segment templates of different levels are used to determine the IPv6 network segment to be allocated. IPv6 addresses are allocated based on the IPv6 network segment to be allocated, and the automatic allocation of IPv6 addresses of different categories is realized.
[0099] Preferably, in combination with the content shown in the system, the system further comprises: Figure 4
[0100] The creating unit is configured to create a network segment template corresponding to the field in response to a creation instruction triggered in the network segment configuration interface.
[0101] In a specific implementation, the creating unit is specifically configured to: create a network segment template corresponding to the field in response to a creation instruction triggered in the network segment configuration interface, create a field label corresponding to the network segment template, and configure an association relationship between network segment templates of different levels.
[0102] The first configuring unit is configured to configure a field data source used by the field corresponding to the network segment template in response to a configuration instruction triggered in the network segment configuration interface.
[0103] The second configuring unit is configured to configure an address range of the field corresponding to the network segment template by using an address range in the field data source.
[0104] In a particular implementation, the second configuration unit is specifically configured to: select an arbitrary address range from an address range selection list as the address range of the field corresponding to the net segment template, or obtain an address range entered in an input box as the address range of the field corresponding to the net segment template, wherein the address range in the address range selection list and the address range entered in the input box are any address range in the field data source.
[0105] Preferably, the embodiment of the present application further provides an electronic device, comprising: a processor and a memory, the processor and the memory being connected through a communication bus; wherein the processor is configured to invoke and execute a program stored in the memory; and the memory is configured to store the program, the program being configured to implement the method for automatically allocating IPv6 addresses provided by the method embodiment.
[0106] Preferably, the embodiment of the present application further provides a computer readable storage medium, the computer readable storage medium storing computer executable instructions, the computer executable instructions being configured to execute the method for automatically allocating IPv6 addresses provided by the method embodiment.
[0107] To sum up, the embodiment of the present application provides a method, system and related device for automatically allocating IPv6 addresses, divides an IPv6 net segment into multiple fields and sets corresponding net segment templates, and determines a to-be-allocated IPv6 net segment by using net segment templates of various levels. IPv6 addresses are allocated based on the to-be-allocated IPv6 net segment, and automatic allocation of different types of IPv6 addresses is realized.
[0108] Each embodiment in the specification is described in a progressive manner, and the same and similar parts of each embodiment can be referred to each other. Each embodiment focuses on the difference from other embodiments. In particular, the system or system embodiment is basically similar to the method embodiment, and thus is described more simply. The relevant parts can be referred to the part of the method embodiment. The system and system embodiment described above are only illustrative, and the units described as separate components can be or can not be physically separated, and the components displayed as units can be or can not be physical units, that is, they can be located in one place or distributed on multiple network units. According to actual needs, part or all of the modules can be selected to achieve the purpose of the embodiment. Those skilled in the art can understand and implement without creative labor.
[0109] Those skilled in the art will further realize that the mechanisms of the various examples described herein are capable of being implemented using any number of combinations of the described features. Accordingly, these examples are not limited to the mechanisms described herein, but rather, the intent is to cover all modifications and alternatives equivalent thereto. The preceding description of the examples is illustrative, and not restrictive. Many other examples will be apparent to those of skill in the art upon reviewing the above description. The scope of the examples should, therefore, be determined not with reference to the above description, but instead should be given to the appended claims, along with their full scope of equivalents.
[0110] The above description of disclosed examples is intended to be illustrative, and not restrictive. Many other examples will be apparent to those of skill in the art upon reviewing the above description. The scope of the examples should, therefore, be determined not with reference to the above description, but instead should be given to the appended claims, along with their full scope of equivalents.
Claims
1. A method for automatically allocating IPv6 addresses, characterized in that, The method includes: In response to a creation command triggered in the IPv6 network segment configuration interface, create a network segment template corresponding to the fields of the IPv6 network segment, and create field labels corresponding to the network segment template; Configure the relationships between the network segment templates at each level; In response to a configuration command triggered in the network segment configuration interface, configure the data source used for the corresponding field of the network segment template; Configure the address range of the corresponding field in the network segment template using the address range in the field data source; In response to the selection command triggered in the network segment configuration interface, determine any Nth level network segment template as the target template, where N is greater than or equal to 1 and N starts from 1. The IPv6 network segment is pre-divided into multiple fields including a fixed prefix field, a service category field, an organization field, a reserved field, and an address type field. Different fields correspond to different levels of network segment templates, and the first level network segment template corresponds to the service category field. The address range of the corresponding field of the target template is displayed in the network segment configuration interface; Obtain the definition information entered in the network segment configuration interface, and based on the definition information and the address range of the corresponding field of the target template, set the specific meaning of the address range of the corresponding field of the target template; The network segment configuration interface displays the field labels of the next-level network segment template associated with the target template for selection. N increments by 1, and the process returns to the step of determining any Nth-level network segment template as the target template in response to the selection instruction triggered in the network segment configuration interface, until the specific meaning of the address range of each field is set to obtain the IPv6 network segment to be allocated. IPv6 addresses are allocated based on the IPv6 network segments to be allocated.
2. The method according to claim 1, characterized in that, Using the address range in the field data source, configure the address range of the corresponding field in the network segment template, including: Alternatively, select any address range from the address range selection list as the address range for the corresponding field of the network segment template, or obtain the address range entered in the input box as the address range for the corresponding field of the network segment template, wherein the address ranges in the address range selection list and the address ranges entered in the input box are any address ranges in the field data source.
3. A system for automatically allocating IPv6 addresses, characterized in that, The system includes: The creation unit is used to respond to the creation command triggered in the network segment configuration interface of the IPv6 network segment, create the network segment template corresponding to the field of the IPv6 network segment, and create the field label corresponding to the network segment template; and configure the association relationship between the network segment templates at various levels. The first configuration unit is used to configure the field data source used by the corresponding field of the network segment template in response to the configuration command triggered in the network segment configuration interface; The second configuration unit is used to configure the address range of the corresponding field of the network segment template using the address range in the field data source; The selection unit is used to respond to the selection command triggered in the network segment configuration interface to determine any Nth level network segment template as the target template, wherein N is greater than or equal to 1 and N starts from 1. The IPv6 network segment is pre-divided into multiple fields including a fixed prefix field, a service category field, an organization field, a reserved field, and an address type field. Different fields correspond to different levels of network segment templates. The first level network segment template corresponds to the service category field. The display unit is used to display the address range of the corresponding field of the target template in the network segment configuration interface; The setting unit is used to obtain the definition information entered in the network segment configuration interface, and set the specific meaning of the address range of the corresponding field of the target template based on the definition information and the address range of the corresponding field of the target template. The processing unit is used to display the field labels of the next-level network segment template associated with the target template for selection in the network segment configuration interface. N is incremented by 1, and the process returns to the execution of the selection unit until the specific meaning of the address range of each field is set to obtain the IPv6 network segment to be allocated. The allocation unit is used to allocate IPv6 addresses based on the IPv6 network segment to be allocated.
4. The system according to claim 3, characterized in that, The second configuration unit is specifically used to: select any address range from the address range selection list as the address range of the corresponding field of the network segment template, or obtain the address range entered in the input box as the address range of the corresponding field of the network segment template, wherein the address range in the address range selection list and the address range entered in the input box are any address ranges in the field data source.
5. An electronic device, characterized in that, include: A processor and a memory are connected via a communication bus; wherein the processor is used to call and execute a program stored in the memory; The memory is used to store a program for implementing the method for automatically allocating IPv6 addresses as described in any one of claims 1-2.
6. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores computer-executable instructions for performing the method for automatically allocating IPv6 addresses as described in any one of claims 1-2.
Citation Information
Patent Citations
Method, device and equipment for creating network configuration template and network configuration
CN114553691A
IP address management method and related equipment
CN114827090A