CN103179224A - Method, client side and server for configuring IP (internet protocol) addresses - Google Patents
Method, client side and server for configuring IP (internet protocol) addresses Download PDFInfo
- Publication number
- CN103179224A CN103179224A CN2013100738800A CN201310073880A CN103179224A CN 103179224 A CN103179224 A CN 103179224A CN 2013100738800 A CN2013100738800 A CN 2013100738800A CN 201310073880 A CN201310073880 A CN 201310073880A CN 103179224 A CN103179224 A CN 103179224A
- Authority
- CN
- China
- Prior art keywords
- information
- client
- address
- configuration
- server
- 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
Links
- 238000000034 method Methods 0.000 title claims abstract description 52
- 239000000284 extract Substances 0.000 claims description 22
- 238000000605 extraction Methods 0.000 claims description 19
- 238000004891 communication Methods 0.000 claims description 3
- 230000006855 networking Effects 0.000 claims description 3
- 230000003993 interaction Effects 0.000 claims description 2
- 238000010586 diagram Methods 0.000 description 10
- 238000004590 computer program Methods 0.000 description 3
- 238000005516 engineering process Methods 0.000 description 2
- 230000009286 beneficial effect Effects 0.000 description 1
- 230000005540 biological transmission Effects 0.000 description 1
Images
Landscapes
- Data Exchanges In Wide-Area Networks (AREA)
Abstract
The invention provides a method for configuring IP (internet protocol) addresses. The method includes receiving equipment detecting instructions sent by a server, returning stored equipment information to the server according the received equipment detecting instructions, and enabling the server to configure the IP addresses according to the equipment information. The equipment information is returned to the server according to the received equipment detecting instructions actively sent by the server, so that the server can actively configure the IP addresses for a client side according to the received equipment information, and operation of configuring the client side IP addresses can be simplified.
Description
Technical field
The present invention relates to computer realm, relate in particular to a kind of method, client and server of IP address configuration.
Background technology
Along with the development of cloud computing technology, the fire compartment wall in data center network, server, the equipment scales such as storage constantly become large.The IP address configuration of equipment also is converted to present automatic configuration by original manual configuration.And the existing IP address configuration of automatically carrying out is automatically to send message after client terminal start-up to search server, and after one or more servers can respond, client selects a server to send request so that corresponding server carries out the IP address configuration.Such automatic IP address configuration mode operation relative complex.
Summary of the invention
Embodiment of the present invention technical problem to be solved is, a kind of method of IP address configuration is provided, to simplify the operation of IP address configuration.
The application's first aspect provides a kind of method of IP address configuration, comprising:
The equipment sensing instruction that reception server sends;
According to the equipment sensing instruction that receives, the facility information of storing is back to described server, so that described server carries out the IP address configuration according to described facility information.
In the possible implementation of the first, according to the equipment sensing instruction that receives, the facility information of storing is back to described server, so that carrying out the IP address configuration according to described facility information, described server comprises:
Receive the information that described server sends after receiving facility information;
When determining that logon information conforms to default logon information, configuration session identifies to described server, so that carry described session identification in the IP address of described server configuration.
In conjunction with the possible implementation of the first of first aspect, in the possible implementation of the second, when determining that logon information conforms to default logon information, assign sessions identifies to described server, so that also comprise after carrying described session identification in the IP address of described server configuration:
Receive the IP address that carries described session identification of described server configuration;
Session identification in extraction receives IP address;
When determining that the session identification that extracts conforms to default session identification, with the IP address configuration that receives in operating system.
In conjunction with the possible implementation of the first of first aspect, in the third possible implementation, comprise receive the logon information that described server sends after receiving facility information before:
The server corresponding with the equipment sensing instruction that receives carried out safety certification.
In the 4th kind of possible implementation, described facility information comprises positional information and the client ip information of the network equipment.
In conjunction with the 4th kind of possible implementation of first aspect, in the 5th kind of possible implementation, also comprise before the equipment sensing instruction that reception server sends:
Obtain the positional information of the network equipment;
The positional information of storage networking device.
In the 6th kind of possible implementation, also comprise before the equipment sensing instruction that reception server sends:
Add the multicast group; Wherein, described arrange the detecting instruction be multicast message.
The application's second aspect provides a kind of method of IP address configuration, comprising:
Transmitting apparatus detecting instruction is so that client is returned to the facility information of storage according to described equipment sensing instruction;
Receive described facility information;
According to the described facility information that receives, client is carried out the IP address configuration.
In the possible implementation of the first, according to the described facility information that receives, client is carried out the IP address configuration and comprises:
IP information in the described facility information that extraction receives;
When determining that the IP information of extracting is identical with default IP information, to corresponding client configuration IP address.
In conjunction with the possible implementation of the first of second aspect, in the possible implementation of the second, when determining that the IP information that receives is identical with default IP information, corresponding client configuration IP address is comprised:
Extract the positional information in described facility information;
When determining that the positional information of extracting conforms to predeterminated position information, adopt mode of unicast with the IP address as the message configuration to corresponding client.
In conjunction with the possible implementation of the second of second aspect, in the third possible implementation, when determining that the IP information that receives is identical with default IP information, corresponding client configuration IP address is also comprised:
When determining that the positional information extracted and predeterminated position information are not inconsistent, adopt multicast mode with the IP address as the message configuration to corresponding client, wherein, described IP address carries the MAC Address of corresponding client.
In conjunction with the third possible implementation of second aspect, in the 4th kind of possible implementation, the IP address is comprised as message configuration to corresponding client:
Select corresponding subnet according to the positional information of the facility information that receives;
Extract the IP address in the subnet of selecting;
Give corresponding client with the IP address configuration extracted.
In conjunction with the possible implementation of the first of second aspect, in the 5th kind of possible implementation, described method also comprises:
When determining that the IP information that receives is not identical with default IP information, determine to extract at least two IP addresses in IP information when identical, determine to occur IP address conflict.
In the 6th kind of possible implementation, receive described facility information and comprise afterwards:
Send logon information to client, whether conform to default logon information so that client is determined logon information;
The session identification that distributes when receiving described client and determining that logon information conforms to default logon information; Wherein, the IP address of client configuration carried described session identification.
The application's third aspect provides a kind of client, comprising:
Receiver module is used for the equipment sensing instruction that reception server sends;
Configuration module is used for according to the equipment sensing instruction that receives, the facility information of storing being back to described server, so that described server carries out the IP address configuration according to described facility information.
In the possible implementation of the first, described configuration module comprises:
Receive submodule, be used for receiving the logon information that described server sends after receiving facility information;
Determine submodule, when be used for determining that logon information conforms to default logon information, configuration session identifies to described server, so that carry described session identification in the IP address that described server configures.
In the possible implementation of the second, described client also comprises extraction module and determination module, and wherein said receiver module also is used for receiving the IP address that carries described session identification of described server configuration; Described extraction module be used for to extract the session identification of the IP address that receives; When described determination module is used for determining that the session identification that extracts conforms to default session identification, with the IP address configuration that receives in operating system.
In the third possible implementation, described client also comprises:
Security authentication module is used for the server corresponding with the equipment sensing instruction that receives carried out safety certification.
In the 4th kind of possible implementation, described client also comprises:
Acquisition module is used for obtaining the positional information with the mutual network equipment of described client;
Memory module is used for the positional information of storing the described network equipment.
In the 5th kind of possible implementation, described client also comprises:
Add module, be used for adding the multicast group, wherein, described equipment sensing instruction is multicast message.
The application's fourth aspect provides a kind of computer-readable storage medium, and described computer-readable storage medium has program stored therein, and described program comprises all or part of step of the IP address configuration method that the application's first aspect provides when carrying out.
The application the 5th aspect provides a kind of server, comprising:
Sending module is used for the equipment sensing instruction, so that client is returned to the facility information of storage according to described equipment sensing instruction;
Receiver module is used for receiving described facility information;
Configuration module is used for according to the described facility information that receives, client being carried out the IP address configuration.
In the possible implementation of the first, described configuration module comprises:
Extract submodule, be used for extracting the IP information of the described facility information that receives;
Determine submodule, when being used for determining that the IP information of extracting is identical with default IP information, to corresponding client configuration IP address, and when being used for determining that the IP information that receives is not identical with default IP information, determine to extract at least two IP addresses in IP information when identical, determine to occur IP address conflict.
In conjunction with the possible implementation of the first of the 5th aspect, in the possible implementation of the second, described definite submodule comprises:
Extraction unit is for the positional information of extracting described facility information;
Determining unit, when being used for determining that the positional information of extracting conforms to predeterminated position information, adopt mode of unicast with the IP address as the message configuration to corresponding client, and when being used for determining that the positional information extracted and predeterminated position information are not inconsistent, adopt multicast mode with the IP address as the message configuration to corresponding client, wherein, described IP address carries the MAC Address of corresponding client.
In conjunction with the third possible implementation of the 5th aspect, in the 4th kind of possible implementation, described determining unit comprises:
The chooser unit is used for selecting corresponding subnet according to the positional information of the facility information that receives;
Extract subelement, be used for extracting the IP address of the subnet of selecting;
The configuration subelement, the IP address configuration that is used for extracting is to corresponding client.
In the 5th kind of possible implementation, whether described sending module also is used for sending logon information to client, conform to default logon information so that client is determined logon information; Described receiver module is also for receiving the session identification that distributes when described client determines that logon information conforms to default logon information; Wherein, the IP address of client configuration carried described session identification.
The application the 6th aspect provides a kind of computer-readable storage medium, and described computer-readable storage medium has program stored therein, and described program comprises all or part of step of the IP address configuration method that the application's second aspect provides when carrying out.
The application the 7th aspect also provides a kind of system, comprises client described above, described server and the network equipment, and the described network equipment is used for and described client and server interaction communication.
Implement the embodiment of the present invention, have following beneficial effect:
Implement embodiments of the invention, the equipment sensing instruction that described server sends is to described client.Described client is back to described server according to the equipment sensing instruction that receives with the facility information of storing.Described server carries out the IP address configuration according to described facility information.Described system has realized that described server active transmitting apparatus detecting instruction makes described client that its facility information is returned to server, so that described server is initiatively described client configuration IP address according to the facility information that gets, thereby simplified the operation of the IP address configuration of client.
Description of drawings
In order to be illustrated more clearly in the embodiment of the present invention or technical scheme of the prior art, the below will do to introduce simply to the accompanying drawing of required use in embodiment or description of the Prior Art, apparently, accompanying drawing in the following describes is only some embodiments of the present invention, for those of ordinary skills, under the prerequisite of not paying creative work, can also obtain according to these accompanying drawings other accompanying drawing.
Fig. 1 is the schematic flow sheet of the method for a kind of IP address configuration of providing of the present invention's the first better embodiment;
Fig. 2 is the idiographic flow schematic diagram of the second step of Fig. 1;
Fig. 3 is the idiographic flow schematic diagram of the second step of Fig. 2;
Fig. 4 is the schematic flow sheet of the method for a kind of IP address configuration of providing of the present invention's the second better embodiment;
Fig. 5 is the schematic flow sheet of the method for a kind of IP address configuration of providing of the present invention's the 3rd better embodiment;
Fig. 6 is the idiographic flow schematic diagram of the third step of Fig. 5;
Fig. 7 is the idiographic flow schematic diagram of the second step of Fig. 6;
Fig. 8 is the idiographic flow schematic diagram of the second step of Fig. 7;
Fig. 9 is the schematic flow sheet of the method for a kind of IP address configuration of providing of the present invention's the 4th better embodiment;
Figure 10 is the structured flowchart of a kind of client of providing of the present invention's the first better embodiment;
Figure 11 is the structured flowchart of the configuration module of Figure 10;
Figure 12 is the structured flowchart of a kind of client of providing of the present invention's the second better embodiment;
Figure 13 is the structured flowchart of a kind of server of providing of better embodiment of the present invention;
Figure 14 is the structured flowchart of the configuration module in Figure 13;
Figure 15 is the structured flowchart of the determining unit of Figure 14;
Figure 16 is the structured flowchart of a kind of system of providing of better embodiment of the present invention.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is clearly and completely described, obviously, described embodiment is only the present invention's part embodiment, rather than whole embodiment.Based on the embodiment in the present invention, those of ordinary skills belong to the scope of protection of the invention not making the every other embodiment that obtains under the creative work prerequisite.
See also Fig. 1, the method flow schematic diagram of a kind of IP address configuration that the present invention's the first better embodiment provides, the method comprises:
The equipment sensing instruction that step 101, reception server send.
Wherein, before carrying out the IP address configuration to client, server needs to carry out human configuration.Namely need device name sign, configuration subnet and the VLAN unique to the network equipment in the server admin scope (as switch) configuration.Also need server is added the facility information of the network equipment and address pool information (following Table I) etc., so that server and switch carry out alternately.When server carries out the IP address configuration to client, server transmitting apparatus detecting instruction.When client and server belonged to same double layer network, server sent unicast message to client.Wherein, described equipment sensing instruction is unicast message.When client and server did not belong to same double layer network, server sent multicast message to client.Wherein, require client to add the multicast group.The multicast group number of client can be selected according to actual operation demand.Described equipment sensing instruction is multicast message.
Table I
The equipment sensing instruction that step 102, basis receive is back to described server with the facility information of storage, so that described server carries out the IP address configuration according to described facility information.Wherein, described facility information comprises positional information and the client ip information of the network equipment.
In this better embodiment, the equipment sensing instruction that the method for described IP address configuration sends by reception server; According to the equipment sensing instruction that receives, the facility information of storing is back to described server, so that described server carries out the IP address configuration according to described facility information.Described method realized according to the server that receives initiatively transmitting apparatus detecting instruction the facility information of client is sent to server, so that described server is initiatively client configuration IP address according to the facility information that gets, thereby simplified the operation that client ip address configures.
Please continue referring to Fig. 2, this step 102 can comprise:
The logon information that step 201, the described server of reception send after receiving facility information.
Wherein, after described server receives facility information of storage in its that described client returns, send logon information, to log in client.Described logon information can comprise user's name and log in secret.
Further, can also comprise before step 201:
The server corresponding with the equipment sensing instruction that receives carried out safety certification.
Wherein, carry out the mode that safety certification can adopt digital certificate or shared key between described client and described server, cryptographic algorithm that also can the negotiate further the data etc.
Wherein, described client determines whether the logon information that receives conforms to default logon information after logon information, when definite logon information conforms to default logon information, show that described client allows described server to log in, described client configuration session identification is given described server.Described session identification is only just approved by client and carries out with the operation of this session identification as the follow-up a kind of approval sign that client is operated of server.
See also Fig. 3, further, described step 202 can comprise:
The IP address that carries described session identification of step 301, the described server configuration of reception.
Wherein, after described client is extracted session identification, determine whether the session identification that extracts conforms to default session identification, if determine when the session identification that extracts conforms to default session identification (the IP address that carries described session identification that shows described server configuration is approved by described client), with the IP address configuration that receives in operating system.If determine when the session identification that extracts does not conform to default session identification (the IP address that carries described session identification that shows described server configuration is not approved by described client), abandon the IP address that carries described session identification that this receives.
Please continue referring to Fig. 4 the method flow schematic diagram of a kind of IP address configuration that the present invention's the second better embodiment provides.The method that described the second better embodiment provides is similar to the method that described the first better embodiment provides, and its difference is: in the second better embodiment, the method for this IP address configuration also comprised before step 101:
Step 401, obtain the positional information of the network equipment.
The positional information of step 402, storage networking device.
Step 403, add the multicast group; Wherein, described arrange the detecting instruction be multicast message.
Wherein, after described client added the multicast group, described server can be by sending multicast message to described client.
In present embodiment, the equipment sensing instruction that the method for described IP address configuration sends by reception server; According to the equipment sensing instruction that receives, the facility information of storing is back to described server, so that described server carries out the IP address configuration according to described facility information.Described method realized according to the server that receives initiatively transmitting apparatus detecting instruction the facility information of client is sent to server, so that described server is initiatively client configuration IP address according to the facility information that gets, thereby simplified the operation that client ip address configures.
Referring to Fig. 5, the method flow schematic diagram of a kind of IP address configuration that the present invention's the 3rd better embodiment provides, the method comprises:
Wherein, before carrying out the IP address configuration to client, server needs to carry out human configuration.Namely need device name sign, configuration subnet and the VLAN unique to the network equipment in the server admin scope (as switch) configuration.Also need server is added the facility information of the network equipment and address pool information (following Table I) etc., so that server and switch carry out alternately.When server carries out the IP address configuration to client, server transmitting apparatus detecting instruction.
Wherein, described facility information comprises the positional information of the network equipment and the IP information of client.Wherein, described facility information can be information shown in Table II.In other embodiments, described facility information can be adjusted according to actual needs.
Table II
Project | Type | Describe |
deviceType | String | Device type |
deviceName | String | The equipment noun |
deviceVersion | String | Device version |
switchName | String | The switch name that management interface connects |
switchPort | String | The switch ports themselves that management interface connects |
macAddr | String | The management interface MAC Address |
Ipv4Addr | String | The Ipv4 address |
Ipv4Prefix | Int | The IPv4 prefix |
Ipv4Gateway | String | The Ipv4 gateway |
IPv4Dns1 | String | Main Ipv4DNS |
IPv4Dns2 | String | From Ipv4DNS |
Ipv6Addr | String | The Ipv6 address |
Ipv6Prefix | Int | The IPv6 prefix |
Ipv6Gateway | String | The Ipv6 gateway |
IPv6Dns1 | String | Main Ipv6DNS |
IPv6Dns2 | String | From Ipv6DNS |
The described facility information that step 503, basis receive carries out the IP address configuration to client.
In this better embodiment, the method for described IP address configuration is detected instruction by transmitting apparatus, so that client is returned to the facility information of storage according to described equipment sensing instruction; Receive described facility information; According to the described facility information that receives, client is carried out the IP address configuration.Described method has realized that described server is initiatively to client transmitting apparatus detecting instruction so that client sends to server with its facility information, described server is initiatively client configuration IP address according to the facility information that gets, thereby has simplified the operation of client ip address configuration.
Please continue referring to Fig. 6, particularly, described step 503 comprises:
IP information in the described facility information that step 601, extraction receive.
Wherein, described server determines whether the IP information of extracting is identical with default IP information.In the present embodiment, described default IP information is 0.Even the IP information of client is 0 o'clock, shows that this client do not carry out the IP address configuration.If the IP information of client is not, show that this client carried out the IP address configuration at 0 o'clock.Therefore, when described server determines that the IP information that receives is identical with default IP information, showing and need to carry out the IP address configuration to this client, described server is to this client configuration IP address.When described server determines that the IP information that receives is not identical with default IP information, show that this client has configured the IP address, described server need not this client is carried out the IP address configuration.Whether described server exists at least two IP addresses in IP information identical in the IP information of determining to extract.Determine to extract at least two IP addresses in IP information when identical when described server, determine to occur IP address conflict.When identical situation is not deposited in the IP address in the IP information that described server is determined to extract, show the problem that IP address conflict does not occur.
Please continue referring to Fig. 7, particularly, step 602 comprises:
Positional information in step 701, the described facility information of extraction.
Step 702, when determining that the positional information of extracting conforms to predeterminated position information, adopt mode of unicast with the IP address as the message configuration to corresponding client.
Concrete, when described server determines whether the positional information of extracting conforms to predeterminated position information, if when determining that the positional information of extracting conforms to predeterminated position information, show that described server and client are at same double layer network.Described server can adopt mode of unicast with the IP address as the message configuration to corresponding client.When the positional information of determining to extract and predeterminated position information are not inconsistent, show that described server and client be not at same double layer network.Described server adopt multicast mode with the IP address as the message configuration to corresponding client, wherein, described IP address carries the MAC Address of corresponding client.
See also Fig. 8, the IP address comprised as message configuration to corresponding client:
The positional information of the facility information that step 801, basis receive is selected corresponding subnet.
IP address in the subnet that step 802, extraction are selected.
Wherein, include IP address and other address informations in described subnet.
Step 803, give corresponding client with the IP address configuration extracted.
Wherein, described server with the IP address of extracting by network equipments configuration to corresponding client.
Please continue referring to Fig. 9 the method flow schematic diagram of a kind of IP address configuration that the present invention's the 4th better embodiment provides.The method that described the 4th better embodiment provides is similar to the method that described the 3rd better embodiment provides, and its difference is: in the 4th better embodiment, can comprise after this step 502:
Whether step 901, transmission logon information conform to default logon information so that client is determined logon information to client.
Wherein, when described server logs in described client, need to send logon information.Described logon information comprises user's name and logs in secret.
The session identification of step 902, distribution when receiving described client and determining that logon information conforms to default logon information; Wherein, the IP address of client configuration carried described session identification.
Particularly, described client need to determine whether logon information conforms to default logon information.When definite logon information conforms to default logon information, user end to server configuration session sign.Described session identification is only just approved by client and carries out with the operation of this session identification as the follow-up a kind of approval sign that client is operated of server.When definite logon information did not conform to default logon information, client can be to described server configuration session sign.
See also Figure 10, the structured flowchart of a kind of client 100 that provides for better embodiment of the present invention.This client 100 comprises receiver module 11 and configuration module 12.
Described receiver module 11 is used for the equipment sensing instruction that the reception server (not shown) sends.
Wherein, before carrying out the IP address configuration to client, server needs to carry out human configuration.Namely need device name sign, configuration subnet and the VLAN unique to the network equipment in the server admin scope (as switch) configuration.Also need server is added the facility information of the network equipment and address pool information (following Table I) etc., so that server and switch carry out alternately.When server carries out the IP address configuration to client, server transmitting apparatus detecting instruction.When client and server belonged to same double layer network, server sent unicast message to client.Wherein, described equipment sensing instruction is unicast message.When client and server did not belong to same double layer network, server sent multicast message to client.Wherein, require client to add the multicast group.The multicast group number of client can be selected according to actual operation demand.Described equipment sensing instruction is multicast message.
Table I
Described configuration module 12 is used for according to the equipment sensing instruction that receives, the facility information of storing being back to described server, so that described server carries out the IP address configuration according to described facility information.
Wherein, described facility information comprises positional information and the client ip information of the network equipment.
In this better embodiment, the equipment sensing instruction that receiver module 11 reception servers of described client 100 send.Described configuration module 12 is back to described server according to the equipment sensing instruction that receives with the facility information of storing, so that described server carries out the IP address configuration according to described facility information.Described client has realized according to the server active transmitting apparatus detecting instruction that receives, its facility information being returned to server, so that described server is initiatively client configuration IP address according to the facility information that gets, thereby simplified the operation that client ip address configures.
Please continue with reference to Figure 11, described configuration module 12 can comprise that receiving submodule 121 reaches definite submodule 122.
Described reception submodule 121 is used for receiving the logon information that described server sends after receiving facility information.
Wherein, after described server receives facility information of storage in its that described client returns, send logon information, to log in client.Described logon information can comprise user's name and log in secret.
Further, described client 100 also comprises the security authentication module (not shown).Described security authentication module is used for the server corresponding with the equipment sensing instruction that receives carried out safety certification.
Wherein, carry out the mode that safety certification can adopt digital certificate or shared key between described client and described server, cryptographic algorithm that also can the negotiate further the data etc.
When described definite submodule 122 was used for determining that logon information conforms to default logon information, configuration session identified to described server, so that carry described session identification in the IP address that described server configures.
Wherein, described definite submodule 122 is used for determining whether the logon information that receives conforms to default logon information, and when definite logon information conformed to default logon information, described definite submodule 122 end configuration sessions identified to described server.Described session identification is only just approved by client and carries out with the operation of this session identification as the follow-up a kind of approval sign that client is operated of server.
Please continue referring to Figure 12 the schematic diagram of a kind of client 200 that the present invention's the second better embodiment provides.The client that described the second better embodiment provides is similar to the client that described the first better embodiment provides, and its difference is: described client 200 also comprises extraction module 211 and determination module 212.
Described receiver module 11 also is used for receiving the IP address that carries described session identification of described server configuration.
Described extraction module 211 is used for extracting the session identification of the IP address that receives.
When described determination module 212 is used for determining that the session identification that extracts conforms to default session identification, with the IP address configuration that receives in operating system.
Wherein, described determination module 212 determines whether the session identification that extracts conforms to default session identification, if when determining that the session identification that extracts conforms to default session identification, described determination module 212 with the IP address configuration that receives in operating system.If when determining that the session identification that extracts does not conform to default session identification, described determination module 212 abandons this IP address that carries described session identification that receives.
Further, described client 200 also comprises acquisition module 213, memory module 214 and adds module 215.
Described acquisition module 213 is used for obtaining the positional information with the mutual network equipment of described client 200;
Described memory module 214 is for the positional information of storing the described network equipment.
The described module 215 that adds is used for adding the multicast group.Wherein, described arrange the detecting instruction be multicast message.
Particularly, after described client 200 added the multicast group, described server can be by sending multicast message to described client 200.
See also Figure 13, the structural representation of a kind of server 300 that provides for better embodiment of the present invention, this server 300 comprises sending module 311, receiver module 312 and configuration module 313.
Described sending module 311 is used for transmitting apparatus detecting instruction, so that described client (not shown) returns to the facility information of storage according to described equipment sensing instruction.
Wherein, before carrying out the IP address configuration to client, server needs to carry out human configuration.Namely need device name sign, configuration subnet and the VLAN unique to the network equipment in the server admin scope (as switch) configuration.Also need server is added the facility information of the network equipment and address pool information (following Table I) etc., so that server and switch carry out alternately.When server carries out the IP address configuration to client, server transmitting apparatus detecting instruction.
Described receiver module 312 is used for receiving described facility information.
Wherein, described facility information comprises the positional information of the network equipment and the IP information of client.Wherein, described facility information can be information shown in Table II.In other embodiments, described facility information can be adjusted according to actual needs.
Table II
Project | Type | Describe |
deviceType | String | Device type |
deviceName | String | The equipment noun |
deviceVersion | String | Device version |
switchName | String | The switch name that management interface connects |
switchPort | String | The switch ports themselves that management interface connects |
macAddr | String | The management interface MAC Address |
Ipv4Addr | String | The Ipv4 address |
Ipv4Prefix | Int | The IPv4 prefix |
Ipv4Gateway | String | The Ipv4 gateway |
IPv4Dns1 | String | Main Ipv4DNS |
IPv4Dns2 | String | From Ipv4DNS |
Ipv6Addr | String | The Ipv6 address |
Ipv6Prefix | Int | The IPv6 prefix |
Ipv6Gateway | String | The Ipv6 gateway |
IPv6Dns1 | String | Main Ipv6DNS |
IPv6Dns2 | String | From Ipv6DNS |
Described configuration module 313 is used for according to the described facility information that receives, client being carried out the IP address configuration.
In this better embodiment, the sending module 311 transmitting apparatus detecting instructions of described server 300 are so that client is returned to the facility information of storage according to described equipment sensing instruction; Described receiver module 312 receives described facility information; Described configuration module 313 carries out the IP address configuration according to the described facility information that receives to client.Described server 300 has been realized initiatively to client transmitting apparatus detecting instruction so that client returns to described server 300 with its facility information, described server 300 is initiatively client configuration IP address according to the facility information that gets, thereby has simplified the operation of client ip address configuration.
Please continue referring to Figure 14, particularly, described configuration module 313 comprises that also extracting submodule 3131 reaches definite submodule 3132.
Described extraction submodule 3131 is used for extracting the IP information of the described facility information that receives.
When described definite submodule 3132 is used for determining that the IP information of extracting is identical with default IP information, to corresponding client configuration IP address, and when being used for determining that the IP information that receives is not identical with default IP information, determine to extract at least two IP addresses in IP information when identical, determine to occur IP address conflict.
Wherein, described definite submodule 3132 determines whether the IP information of extracting is identical with default IP information.In the present embodiment, described default IP information is 0.Even the IP information of client is 0 o'clock, shows that this client do not carry out the IP address configuration.If the IP information of client is not, show that this client carried out the IP address configuration at 0 o'clock.Therefore, when described definite submodule 3132 determines that the IP information that receives is identical with default IP information, show and need to carry out the IP address configuration to this client, 3132 pairs of described definite submodules this client configuration IP address.When determining that the IP information that receives is not identical with default IP information, show that this client has configured the IP address when described, described definite submodule 3132 need not this client is carried out the IP address configuration.Whether described definite submodule 3132 exists at least two IP addresses in IP information identical in the IP information of determining to extract.Determine to extract at least two IP addresses in IP information when identical when described definite submodule 3132, determine to occur IP address conflict.When identical situation is not deposited in the IP address in the IP information that described definite submodule 3132 is determined to extract, show the problem that IP address conflict does not occur.
Wherein, described definite submodule 3132 comprises extraction unit 3133 and determining unit 3134.
Described extraction unit 3133 is used for extracting the positional information of described facility information.
When described determining unit 3134 is used for determining that the positional information of extracting conforms to predeterminated position information, adopt mode of unicast with the IP address as the message configuration to corresponding client, and when being used for determining that the positional information extracted and predeterminated position information are not inconsistent, adopt multicast mode with the IP address as the message configuration to corresponding client, wherein, described IP address carries the MAC Address of corresponding client.
Concrete, when described determining unit 3134 determines whether the positional information of extracting conforms to predeterminated position information, if when determining that the positional information of extracting conforms to predeterminated position information, show that described server 300 and client are at same double layer network.Described determining unit 3134 can adopt mode of unicast with the IP address as the message configuration to corresponding client.When the positional information of determining to extract and predeterminated position information are not inconsistent, show described server 300 with client not at same double layer network.Described determining unit 3134 adopt multicast modes with the IP address as the message configuration to corresponding client, wherein, described IP address carries the MAC Address of corresponding client.
Please continue referring to Figure 15, particularly, described determining unit 3134 comprises chooser unit 3135, extracts subelement 3136 and configuration subelement 3137.
Described chooser unit 3135 is used for selecting corresponding subnet according to the positional information of the facility information that receives.
The IP address that described extraction subelement 3136 is used for extracting the subnet of selecting.
Wherein, include IP address and other address informations in described subnet.
The IP address configuration that described configuration subelement 3137 is used for extracting is to corresponding client.
Wherein, described configuration subelement 3137 with the IP address of extracting by network equipments configuration to corresponding client.
In the present embodiment, whether described sending module 311 also is used for sending logon information to client, conform to default logon information so that client is determined logon information.
Wherein, when described server logs in described client, need to send logon information.Described logon information comprises user's name and logs in secret.
Described receiver module 312 is also for receiving the session identification that distributes when described client determines that logon information conforms to default logon information.Wherein, the IP address of client 100 configuration carried described session identification.
Particularly, described client need to determine whether logon information conforms to default logon information.When definite logon information conformed to default logon information, client was to described server 300 configuration session signs.Described session identification is only just approved by client and carries out with the operation of this session identification as the follow-up a kind of approval sign that client is operated of server 300.When definite logon information did not conform to default logon information, client can be to described server 300 configuration session signs.
See also Figure 16, the structural representation of a kind of system 400 that provides for better embodiment of the present invention.Described system 400 comprises client 411, server 412 and the network equipment 413.The described network equipment 413 is used for and described client 411 and the mutual communication of server 412.
In the present embodiment, described client 411 can be above-mentioned client 100.Described server 412 can be above-mentioned server 300.
In this better embodiment, the equipment sensing instruction that described server 300 sends is to described client 100.Described client 100 is back to described server 300 according to the equipment sensing instruction that receives with the facility information of storing.Described server 300 carries out the IP address configuration according to described facility information.Described system 400 has realized that described server 300 active transmitting apparatus detecting instructions make described client 100 that its facility information is returned to server 300, so that described server 300 is initiatively described client 100 configuration of IP address according to the facility information that gets, thereby simplified the operation of the IP address configuration of client 100.
In an embodiment, computer-readable storage medium stores computer program, when the computer program in computer-readable storage medium is read computer, can make computer complete all or part of step of method shown in Fig. 1-9.
One of ordinary skill in the art will appreciate that all or part of flow process that realizes in above-described embodiment method, to come the relevant hardware of instruction to complete by computer program, described program can be stored in a computer read/write memory medium, this program can comprise the flow process as the embodiment of above-mentioned each side method when carrying out.Wherein, described storage medium can be magnetic disc, CD, read-only store-memory body (Read-Only Memory, ROM) or random store-memory body (Random Access Memory, RAM) etc.
Above disclosed is only a kind of preferred embodiment of the present invention, certainly can not limit with this interest field of the present invention, one of ordinary skill in the art will appreciate that all or part of flow process that realizes above-described embodiment, and according to the equivalent variations that claim of the present invention is done, still belong to the scope that invention is contained.
Claims (28)
1. the method for an IP address configuration, is characterized in that, comprising:
The equipment sensing instruction that reception server sends;
According to the equipment sensing instruction that receives, the facility information of storing is back to described server, so that described server carries out the IP address configuration according to described facility information.
2. the method for claim 1, is characterized in that, according to the equipment sensing instruction that receives, the facility information of storing is back to described server, comprises so that described server carries out the IP address configuration according to described facility information:
Receive the information that described server sends after receiving facility information;
When determining that logon information conforms to default logon information, configuration session identifies to described server, so that carry described session identification in the IP address of described server configuration.
3. method as claimed in claim 2, is characterized in that, when determining that logon information conforms to default logon information, assign sessions identifies to described server, so that also comprise after carrying described session identification in the IP address of described server configuration:
Receive the IP address that carries described session identification of described server configuration;
Session identification in extraction receives IP address;
When determining that the session identification that extracts conforms to default session identification, with the IP address configuration that receives in operating system.
4. method as claimed in claim 2, is characterized in that, comprises receive the logon information that described server sends after receiving facility information before:
The server corresponding with the equipment sensing instruction that receives carried out safety certification.
5. the method for claim 1, is characterized in that, described facility information comprises positional information and the client ip information of the network equipment.
6. method as claimed in claim 5, is characterized in that, also comprises before the equipment sensing instruction that reception server sends:
Obtain the positional information of the network equipment;
The positional information of storage networking device.
7. the method for claim 1, is characterized in that, also comprises before the equipment sensing instruction that reception server sends:
Add the multicast group; Wherein, described arrange the detecting instruction be multicast message.
8. the method for an IP address configuration, is characterized in that, comprising:
Transmitting apparatus detecting instruction is so that client is returned to the facility information of storage according to described equipment sensing instruction;
Receive described facility information;
According to the described facility information that receives, client is carried out the IP address configuration.
9. method as claimed in claim 8, is characterized in that, according to the described facility information that receives, client carried out the IP address configuration and comprise:
IP information in the described facility information that extraction receives;
When determining that the IP information of extracting is identical with default IP information, to corresponding client configuration IP address.
10. method as claimed in claim 9, is characterized in that, when determining that the IP information that receives is identical with default IP information, corresponding client configuration IP address comprised:
Extract the positional information in described facility information;
When determining that the positional information of extracting conforms to predeterminated position information, adopt mode of unicast with the IP address as the message configuration to corresponding client.
11. method as claimed in claim 10 is characterized in that, when determining that the IP information that receives is identical with default IP information, corresponding client configuration IP address is also comprised:
When determining that the positional information extracted and predeterminated position information are not inconsistent, adopt multicast mode with the IP address as the message configuration to corresponding client, wherein, described IP address carries the MAC Address of corresponding client.
12. method as claimed in claim 11 is characterized in that, the IP address is comprised as message configuration to corresponding client:
Select corresponding subnet according to the positional information of the facility information that receives;
Extract the IP address in the subnet of selecting;
Give corresponding client with the IP address configuration extracted.
13. method as claimed in claim 9 is characterized in that, also comprises:
When determining that the IP information that receives is not identical with default IP information, determine to extract at least two IP addresses in IP information when identical, determine to occur IP address conflict.
14. method as claimed in claim 8 is characterized in that, receives described facility information and comprises afterwards:
Send logon information to client, whether conform to default logon information so that client is determined logon information;
The session identification that distributes when receiving described client and determining that logon information conforms to default logon information; Wherein, the IP address of client configuration carried described session identification.
15. a client is characterized in that, comprising:
Receiver module is used for the equipment sensing instruction that reception server sends;
Configuration module is used for according to the equipment sensing instruction that receives, the facility information of storing being back to described server, so that described server carries out the IP address configuration according to described facility information.
16. client as claimed in claim 15 is characterized in that, described configuration module comprises:
Receive submodule, be used for receiving the logon information that described server sends after receiving facility information;
Determine submodule, when be used for determining that logon information conforms to default logon information, configuration session identifies to described server, so that carry described session identification in the IP address that described server configures.
17. client as claimed in claim 15 is characterized in that, described client also comprises extraction module and determination module, and wherein said receiver module also is used for receiving the IP address that carries described session identification of described server configuration; Described extraction module be used for to extract the session identification of the IP address that receives; When described determination module is used for determining that the session identification that extracts conforms to default session identification, with the IP address configuration that receives in operating system.
18. client as claimed in claim 15 is characterized in that, described client also comprises:
Security authentication module is used for the server corresponding with the equipment sensing instruction that receives carried out safety certification.
19. client as claimed in claim 15 is characterized in that, described client also comprises:
Acquisition module is used for obtaining the positional information with the mutual network equipment of described client;
Memory module is used for the positional information of storing the described network equipment.
20. client as claimed in claim 15 is characterized in that, described client also comprises:
Add module, be used for adding the multicast group, wherein, described equipment sensing instruction is multicast message.
21. a computer-readable storage medium is characterized in that,
Described computer-readable storage medium has program stored therein, and described program comprises step as described in claim 1 to 7 any one when carrying out.
22. a server is characterized in that: comprising:
Sending module is used for the equipment sensing instruction, so that client is returned to the facility information of storage according to described equipment sensing instruction;
Receiver module is used for receiving described facility information;
Configuration module is used for according to the described facility information that receives, client being carried out the IP address configuration.
23. server as claimed in claim 22 is characterized in that, described configuration module comprises:
Extract submodule, be used for extracting the IP information of the described facility information that receives;
Determine submodule, when being used for determining that the IP information of extracting is identical with default IP information, to corresponding client configuration IP address, and when being used for determining that the IP information that receives is not identical with default IP information, determine to extract at least two IP addresses in IP information when identical, determine to occur IP address conflict.
24. server as claimed in claim 23 is characterized in that, described definite submodule comprises:
Extraction unit is for the positional information of extracting described facility information;
Determining unit, when being used for determining that the positional information of extracting conforms to predeterminated position information, adopt mode of unicast with the IP address as the message configuration to corresponding client, and when being used for determining that the positional information extracted and predeterminated position information are not inconsistent, adopt multicast mode with the IP address as the message configuration to corresponding client, wherein, described IP address carries the MAC Address of corresponding client.
25. server as claimed in claim 24 is characterized in that, described determining unit comprises:
The chooser unit is used for selecting corresponding subnet according to the positional information of the facility information that receives;
Extract subelement, be used for extracting the IP address of the subnet of selecting;
The configuration subelement, the IP address configuration that is used for extracting is to corresponding client.
26. server as claimed in claim 22 is characterized in that, whether described sending module also is used for sending logon information to client, conform to default logon information so that client is determined logon information; Described receiver module is also for receiving the session identification that distributes when described client determines that logon information conforms to default logon information; Wherein, the IP address of client configuration carried described session identification.
27. a computer-readable storage medium is characterized in that,
Described computer-readable storage medium has program stored therein, and described program comprises step as described in claim 8 to 14 any one when carrying out.
28. a system comprises the described client of the claims 15-20 any one, the described server of the claims 22-26 any one and the network equipment, the described network equipment is used for and described client and server interaction communication.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201310073880.0A CN103179224B (en) | 2013-03-08 | 2013-03-08 | Method, client side and server for configuring IP (internet protocol) addresses |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201310073880.0A CN103179224B (en) | 2013-03-08 | 2013-03-08 | Method, client side and server for configuring IP (internet protocol) addresses |
Publications (2)
Publication Number | Publication Date |
---|---|
CN103179224A true CN103179224A (en) | 2013-06-26 |
CN103179224B CN103179224B (en) | 2017-01-25 |
Family
ID=48638842
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201310073880.0A Active CN103179224B (en) | 2013-03-08 | 2013-03-08 | Method, client side and server for configuring IP (internet protocol) addresses |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN103179224B (en) |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104363310A (en) * | 2014-11-04 | 2015-02-18 | 南车株洲电力机车研究所有限公司 | Device IP configuring method |
CN106789165A (en) * | 2016-11-28 | 2017-05-31 | 上海斐讯数据通信技术有限公司 | The network configuration system and method for a kind of batch cloud terminal device |
CN109429041A (en) * | 2017-08-30 | 2019-03-05 | 佳能株式会社 | Picture pick-up device, client device, method and storage medium |
WO2021109088A1 (en) * | 2019-12-05 | 2021-06-10 | 深圳市大疆创新科技有限公司 | Laser radar configuration method and device, and storage medium |
Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
KR20060124174A (en) * | 2005-05-31 | 2006-12-05 | 하나로텔레콤 주식회사 | System for changing authorization process from central authorization server to a local dhcp server upon the authorization server's trouble and method thereof |
CN101043331A (en) * | 2006-06-30 | 2007-09-26 | 华为技术有限公司 | System and method for distributing address for network equipment |
CN101056178A (en) * | 2007-05-28 | 2007-10-17 | 中兴通讯股份有限公司 | A method and system for controlling the user network access right |
CN101159614A (en) * | 2007-10-23 | 2008-04-09 | 中兴通讯股份有限公司 | Gateway and method of implementing centralized management to equipment |
CN101536471A (en) * | 2006-12-05 | 2009-09-16 | 株式会社东芝 | Assisted proactive ip address acquisition |
CN101729500A (en) * | 2008-10-31 | 2010-06-09 | 华为技术有限公司 | Method, device and system for identifying IP session |
CN102340553A (en) * | 2011-09-26 | 2012-02-01 | 瑞斯康达科技发展股份有限公司 | Method and device for allocating and determining IP addresses |
-
2013
- 2013-03-08 CN CN201310073880.0A patent/CN103179224B/en active Active
Patent Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
KR20060124174A (en) * | 2005-05-31 | 2006-12-05 | 하나로텔레콤 주식회사 | System for changing authorization process from central authorization server to a local dhcp server upon the authorization server's trouble and method thereof |
CN101043331A (en) * | 2006-06-30 | 2007-09-26 | 华为技术有限公司 | System and method for distributing address for network equipment |
CN101536471A (en) * | 2006-12-05 | 2009-09-16 | 株式会社东芝 | Assisted proactive ip address acquisition |
CN101056178A (en) * | 2007-05-28 | 2007-10-17 | 中兴通讯股份有限公司 | A method and system for controlling the user network access right |
CN101159614A (en) * | 2007-10-23 | 2008-04-09 | 中兴通讯股份有限公司 | Gateway and method of implementing centralized management to equipment |
CN101729500A (en) * | 2008-10-31 | 2010-06-09 | 华为技术有限公司 | Method, device and system for identifying IP session |
CN102340553A (en) * | 2011-09-26 | 2012-02-01 | 瑞斯康达科技发展股份有限公司 | Method and device for allocating and determining IP addresses |
Cited By (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104363310A (en) * | 2014-11-04 | 2015-02-18 | 南车株洲电力机车研究所有限公司 | Device IP configuring method |
CN104363310B (en) * | 2014-11-04 | 2017-12-26 | 南车株洲电力机车研究所有限公司 | A kind of method for configuring device IP |
CN106789165A (en) * | 2016-11-28 | 2017-05-31 | 上海斐讯数据通信技术有限公司 | The network configuration system and method for a kind of batch cloud terminal device |
CN109429041A (en) * | 2017-08-30 | 2019-03-05 | 佳能株式会社 | Picture pick-up device, client device, method and storage medium |
US10944894B2 (en) | 2017-08-30 | 2021-03-09 | Canon Kabushiki Kaisha | Image capturing apparatus, client apparatus, method, and storage medium |
CN109429041B (en) * | 2017-08-30 | 2021-10-22 | 佳能株式会社 | Image capturing apparatus, client apparatus, method, and storage medium |
WO2021109088A1 (en) * | 2019-12-05 | 2021-06-10 | 深圳市大疆创新科技有限公司 | Laser radar configuration method and device, and storage medium |
CN113728607A (en) * | 2019-12-05 | 2021-11-30 | 深圳市大疆创新科技有限公司 | Laser radar configuration method, device and storage medium |
Also Published As
Publication number | Publication date |
---|---|
CN103179224B (en) | 2017-01-25 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US8769661B2 (en) | Virtual private network node information processing method, relevant device and system | |
CN102710811B (en) | Realize method and the switch of dhcp address safety distribution | |
US9967738B2 (en) | Methods and arrangements for enabling data transmission between a mobile device and a static destination address | |
CN106656547B (en) | Method and device for updating network configuration of household electrical appliance | |
US20230300022A1 (en) | Dynamic network awareness | |
CN107005430B (en) | Communication method, device and system based on data link layer | |
US20160100356A1 (en) | Method and controller for implementing wireless network cloud | |
CN105245629A (en) | DHCP-based host communication method and device | |
CN107171857B (en) | Network virtualization method and device based on user group | |
CN102055816A (en) | Communication method, business server, intermediate equipment, terminal and communication system | |
CN103179224A (en) | Method, client side and server for configuring IP (internet protocol) addresses | |
CN103997479B (en) | A kind of asymmetric services IP Proxy Methods and equipment | |
CN105262773A (en) | A verification method and apparatus for an IOT system | |
CN103561122B (en) | IPv6 address collocation method, IPv6 client and server | |
CN107517129B (en) | Method and device for configuring uplink interface of equipment based on OpenStack | |
CN109788528B (en) | Access point and method and system for opening internet access service thereof | |
CN106878481A (en) | A kind of Internet protocol IP address acquisition methods, device and system | |
US20150264010A1 (en) | Internet protocol version 6 address configuration method | |
CN106789843B (en) | Method, PORTAL server and system for sharing internet access | |
CN105681055A (en) | Access method, device and system of shared file server | |
CN102571817A (en) | Method and device for accessing application server | |
CN103634844A (en) | Method and system for realizing distributed multi-port DHCP relay | |
CN104506668A (en) | Route configuration method and device of dedicated cloud host | |
US20230171673A1 (en) | Method and system for routing an internet protocol data packet between wireless computer devices connected to a cellular network | |
EP2975828B1 (en) | Method for configuring a network connection, telecommunications network, program and computer program product |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
C14 | Grant of patent or utility model | ||
GR01 | Patent grant | ||
TR01 | Transfer of patent right | ||
TR01 | Transfer of patent right |
Effective date of registration: 20220216 Address after: 550025 Huawei cloud data center, jiaoxinggong Road, Qianzhong Avenue, Gui'an New District, Guiyang City, Guizhou Province Patentee after: Huawei Cloud Computing Technologies Co.,Ltd. Address before: 518129 Bantian HUAWEI headquarters office building, Longgang District, Guangdong, Shenzhen Patentee before: HUAWEI TECHNOLOGIES Co.,Ltd. |