A kind of method realizing network equipments configuration
[technical field]
The present invention relates to technical field of communication equipment, particularly relate to a kind of method realizing network equipments configuration.
[background technology]
Building conversational system can relate to a large amount of network equipments when installation, as thousands of indoor sets.The configuration of its those network equipments needs human configuration to number according to a conventional method, the information such as network settings.Because the personnel of erection unit have little schooling, even do not heard IP, it is high to lead control equipment deployment cost.Be embodied in training cost, configuration is taken time, amendment trouble after makeing mistakes, complex operation.In order to simplified apparatus is installed and configuration operation, save construction cost, the collocation method that proposition one is new here, after namely every platform equipment only needs input key, just can automatically configure all configuration parameters.Provide one in prior art and " realize the method that the network equipment configures installation automatically ", see that publication number is: CN101232395, publication date is: the Chinese patent of 2008.07.30, the method is used for by NM client, NM server, software center, in the network management system of configuration server and Dynamic Host Configuration Protocol server composition, realize the Auto-mounting configuration of equipment in network, its characteristic point comprises the steps: step 1, carries out pre-configured to network each meshed network equipment, set up network equipment physical location information and logic configure between corresponding relation; Step 2, preconfigured information is uploaded to Dynamic Host Configuration Protocol server and software center and configuration server; Step 3, to be installed to by the network equipment on network node physically, the physical location information of self is reported Dynamic Host Configuration Protocol server by the described network equipment; Step 4, Dynamic Host Configuration Protocol server return network configuration information to the described network equipment; The network configuration information that step 5, the described network equipment feed back according to Dynamic Host Configuration Protocol server, carries out network interface configuration; Step 6, described network equipment access software center and configuration server; Step 7, the described network equipment, from software center and configuration server download configuration and software, complete installation.This invention achieves the plug and play of blade server in network.Avoid loaded down with trivial details installation and the setting operation of a large amount of blade server, also do not need operating personnel to local installing blade server and configuring one by one, save and safeguard installation cost.But this invention be carry out for the blade server in enormous quantities in communication network deployment, configuration method, it will complete configuration by means of software center, configuration server and Dynamic Host Configuration Protocol server, and the process of this configuration can not be configured by the equipment in the room of correspondence.This invention will be carried out pre-configured to network each meshed network equipment, and it is pre-configured comprises: physical location, the configuration of multiple information such as network interface information; And preconfigured information needs to carry out corresponding association with concrete equipment; And the new collocation method that the present invention proposes: be in the database at network device management center, add each network equipment information, facility information is not needed to associate with concrete equipment during interpolation, and it is pre-configured without the need to carrying out, as long as just in automatic layoutprocedure, the network equipment and configuration information can be dynamically associated by key.
[summary of the invention]
The technical problem to be solved in the present invention, is to provide a kind of method realizing network equipments configuration, solves on traditional network equipment and needs to configure a lot of content, the problem of complex operation.
The present invention is achieved in that a kind of method realizing network equipments configuration, comprises the steps:
Step 1, in the database at a network device management center, add each network equipment information, described network equipment information comprises configuration code, IP address, IP mask, gateway, the IP at network device management center, the port at network device management center and the room number belonging to the network equipment;
Step 2, on each network equipment, input a key respectively; The configuration code of described network equipment information and the key of input are associated;
Step 3, each network equipment are automatically by the Dynamic Host Configuration Protocol server request configuration parameter of DHCP agreement to network device management center;
Step 4, Dynamic Host Configuration Protocol server read described database, response to network device request, without the need to network equipment information is associated with concrete equipment, by the key of each network equipment at the database lookup configuration code identical with key, in the network equipment information that the configuration code found is corresponding, obtain configuration parameter information, and return to each network equipment;
After step 5, each network equipment obtain the response of Dynamic Host Configuration Protocol server, the corresponding configuration parameter information according to receiving is configured automatically.
Further, described step 3 is specially: each network equipment sends DHCP request bag to the Dynamic Host Configuration Protocol server request configuration parameter at network device management center by DHCP agreement automatically, adds described key in the option43 field of DHCP request bag.
Further, described step 4 is specially: described Dynamic Host Configuration Protocol server reads described database, response to network device request, key is extracted from the option43 field of DHCP request bag, by the key of each network equipment at the database lookup configuration code identical with key, configuration parameter information is obtained in the network equipment information that the configuration code found is corresponding, send DHCP response packet to equipment, the configuration parameter required for equipment is added in the option43 field of DHCP response packet, described configuration parameter comprises: IP address, IP mask, gateway, the IP at network device management center, the port at network device management center and the room number belonging to the network equipment.
Further, described step 5 is specially: after each network equipment obtains the response of Dynamic Host Configuration Protocol server, receives DHCP response packet, from the option43 field of DHCP response packet, extract configuration parameter, and the corresponding configuration parameter information according to receiving is configured automatically.
Tool of the present invention has the following advantages: because network equipment data volume of the present invention is large, just cannot determine device configuration information in a pre-installation, therefore, each network equipment information is stored in the database at network device management center by the present invention in advance, it is without the need to being associated network equipment information with concrete equipment, then input one key is only needed at each network equipment, this key is: the network equipment, when to the database request configuration information at network device management center, associates the configuration information of the correspondence needed for this network equipment for index; Just can find the configuration information of the correspondence needed for the network equipment (namely carrying out dynamically associating of the network equipment and configuration information) from database, and automatically configure.The present invention simplifies a large amount of network equipment configuration effort when mounted, tradition will configure a lot of content, complicated operation, only need configuration simple key now, just can automatically configure, and can separate according to the battery limits in the room of correspondence and be configured, save installation cost and installation difficulty; Reduce the educational level requirement to installation personnel.
[accompanying drawing explanation]
Fig. 1 is the inventive method schematic flow sheet.
[embodiment]
Refer to shown in Fig. 1, a kind of method realizing network equipments configuration of the present invention, comprises the steps:
Step 1, in the database at a network device management center, add each network equipment information, described network equipment information comprises configuration code, IP address, IP mask, gateway, the IP at network device management center, the port at network device management center and the room number belonging to the network equipment;
Step 2, on each network equipment, input a key respectively; The configuration code of described network equipment information and the key of input are associated; This key is: the network equipment, when to the database request configuration information at network device management center, associates the configuration information of the correspondence needed for this network equipment for index.
Step 3, each network equipment are automatically by the Dynamic Host Configuration Protocol server request configuration parameter of DHCP agreement to network device management center; It is specially: each network equipment sends DHCP request bag to the Dynamic Host Configuration Protocol server request configuration parameter at network device management center by DHCP agreement automatically, adds described key in the option43 field of DHCP request bag; Namely transmission DHCP request bag that a network equipment is just corresponding;
Step 4, Dynamic Host Configuration Protocol server read described database, response to network device request, without the need to network equipment information is associated with concrete equipment, by the key of each network equipment at the database lookup configuration code identical with key, in the network equipment information that the configuration code found is corresponding, obtain configuration parameter information, and return to each network equipment, it is specially: described Dynamic Host Configuration Protocol server reads described database, response to network device request, key is extracted from the option43 field of DHCP request bag, by the key of each network equipment at the database lookup configuration code identical with key, configuration parameter information is obtained in the network equipment information that the configuration code found is corresponding, send DHCP response packet to the network equipment, (transmission DHCP response packet that namely a network equipment is just corresponding) adds the configuration parameter required for equipment in the option43 field of DHCP response packet, described configuration parameter comprises: IP address, IP mask, gateway, the IP at network device management center, the port at network device management center and the room number belonging to the network equipment,
After step 5, each network equipment obtain the response of Dynamic Host Configuration Protocol server, the corresponding configuration parameter information according to receiving is configured automatically; It is specially: after each network equipment obtains the response of Dynamic Host Configuration Protocol server, receives DHCP response packet, from the option43 field of DHCP response packet, extract configuration parameter, and the corresponding configuration parameter information according to receiving is configured automatically.
Wherein, the configuration code of described network equipment information and the key of input are digital code (this digital code preferably adopt 6 bit digital, also can be 4,5,7,8 etc.); Above-mentioned option43 field is the option43 field by the DHCP message of international standard definition in Ethernet message.
In a word, the present invention only needs input one key at each network equipment, just can find the configuration information of the correspondence needed for the network equipment from database, and automatically configure.The present invention simplifies a large amount of network equipment configuration effort when mounted, tradition will configure a lot of content, complicated operation, only need the simple a few bit digital of configuration one now, just can automatically configure, and can separate according to the battery limits in the room of correspondence and be configured, save installation cost and installation difficulty; Reduce the educational level requirement to installation personnel.
The foregoing is only preferred embodiment of the present invention, all equalizations done according to the present patent application the scope of the claims change and modify, and all should belong to covering scope of the present invention.