CN103973824A - Automatic IP (internet protocol) address distributing method and system - Google Patents

Automatic IP (internet protocol) address distributing method and system Download PDF

Info

Publication number
CN103973824A
CN103973824A CN201310038057.6A CN201310038057A CN103973824A CN 103973824 A CN103973824 A CN 103973824A CN 201310038057 A CN201310038057 A CN 201310038057A CN 103973824 A CN103973824 A CN 103973824A
Authority
CN
China
Prior art keywords
address
detecting
blade server
network segment
module
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.)
Pending
Application number
CN201310038057.6A
Other languages
Chinese (zh)
Inventor
王光建
吴文伍
付小军
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Hongfujin Precision Industry Shenzhen Co Ltd
Hon Hai Precision Industry Co Ltd
Original Assignee
Hongfujin Precision Industry Shenzhen Co Ltd
Hon Hai Precision Industry Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Hongfujin Precision Industry Shenzhen Co Ltd, Hon Hai Precision Industry Co Ltd filed Critical Hongfujin Precision Industry Shenzhen Co Ltd
Priority to CN201310038057.6A priority Critical patent/CN103973824A/en
Priority to TW102106333A priority patent/TW201440478A/en
Publication of CN103973824A publication Critical patent/CN103973824A/en
Pending legal-status Critical Current

Links

Landscapes

  • Small-Scale Networks (AREA)

Abstract

Disclosed is an automatic IP (internet protocol) address distributing method and system. The system comprises a starting module, a detecting module, a setting module and a mapping module, wherein the starting module is used for sequentially starting each blade server every time interval by means of the same initial IP address set by a BMC (baseboard management controller) of each blade server; the detecting module is used for detecting idle IP addresses in the network segments; the setting module is used for setting the detected IP address as the IP address of the BMC of the currently started blade server and starting the next blade server; the mapping module is used for setting the IP addresses of various network ports of the currently started blade server according to the preset mapping principle according to the set IP address of the BMC. By automatically detecting and identifying the idle IP addresses in the network segments and acquiring the non-used address as the IP address of the currently started blade server, automatic distribution of the IP addresses of several blade servers is realized.

Description

IP address automatic allocating method and system
Technical field
The present invention relates to a kind of IP address automatic allocating method and system.
Background technology
In prior art, often multiple blade servers are placed in to rack and form a server group of planes, taking better as user service, but because cabinet space is very limited, put nowhere DHCP(Dynamic Host Configuration Protocol) server, often, by being that multiple blade servers are set IP addresses by hand, bring inconvenience to operator.
Summary of the invention
In view of above content, be necessary to provide a kind of IP address automatic allocating method and system.
Described IP address automatic allocating method comprises: setting up procedure, think each blade server baseboard management controller BMC set same initial ip address, interval starts each blade server successively at regular intervals; Detecting step, the IP address in detecting network segment hollow spare time; Setting steps, the IP address that this detects is set to the IP address of the BMC of the blade server of current startup, and starts next blade server; Mapping step, according to the IP address of the BMC of above-mentioned setting, utilizes the IP address of each network port of the blade server of the current startup of default mapping policy setting.
Described IP address automatic distribution system comprises: start module, for the same initial ip address that utilizes the baseboard management controller BMC of each blade server to set, interval starts each blade server successively at regular intervals; Detecting module, for detecting the IP address in network segment hollow spare time; Module is set, is set to the IP address of the BMC of the blade server of current startup for this IP address detecting, and starts next blade server; Mapping block, for according to the IP address of the BMC of above-mentioned setting, utilizes the IP address of each network port of the blade server of the current startup of default mapping policy setting.
The present invention identifies in the network segment idle IP address by Auto-Sensing, and obtains this not by the IP address that makes land used IP location as the blade server of current startup, realizes the automatic distribution of multiple blade server IP address.
Brief description of the drawings
Fig. 1 is the running environment figure of the preferred embodiments of IP of the present invention address automatic distribution system.
Fig. 2 is the functional block diagram of the preferred embodiments of IP of the present invention address automatic distribution system.
Fig. 3 is the flow chart of the preferred embodiments of IP address automatic allocating method of the present invention.
Main element symbol description
Remote computer 1
Blade server 2
Network 3
Memory 12
Processor 14
IP address automatic distribution system 10
Start module 100
Detecting module 102
Module is set 104
Mapping block 106
Following embodiment further illustrates the present invention in connection with above-mentioned accompanying drawing.
Embodiment
As shown in Figure 1, be the running environment figure of IP of the present invention address automatic distribution system preferred embodiment.This IP address automatic distribution system 10 operates on a remote computer 1, and this remote computer 1 comprises memory 12, processor 14.This remote computer 1 by wireless or multiple blade server 2(of the long-range connection of cable network 3 as Fig. 1 be 3).
Described memory 12 is for data such as the source program codes of storing IP address automatic distribution system 10.
In the present embodiment, described IP address automatic distribution system 10 can be divided into one or more modules, and described one or more modules are configured to be carried out by one or more processors (the present embodiment is a processor 14), to complete the present invention.For example, consult shown in Fig. 2, described IP address automatic distribution system 10 is divided into and starts module 100, detecting module 102, module 104 and mapping block 106 is set.The alleged module of the present invention has been the program segment of a specific function, is more suitable in describing the implementation of software in remote computer 1, the description of consulting Fig. 3 about the function of each module than program.
As shown in Figure 3, be the flow chart of the preferred embodiment of IP address automatic allocating method of the present invention.
Step S10, starts the baseboard management controller BMC that module 100 is each blade server 2 and sets same initial ip address, and interval starts each blade server 2 successively at regular intervals.
In present embodiment, can be the initial ip address of the BMC of each blade server 3 by last IP available address setting in the network segment, for example, at network segment 192.168.0.0, 192.168.0.1, 192.168.0.2, 192.168.0.3, 192.168.0.255 in, first IP address 192.168.0.0 is as network number, 192.168.0.255 as broadcast address, therefore, the IP address (being IP available address) that can be configured on multiple blade servers is 192.168.0.1, 192.168.0.2, 192.168.0.3, 192.168.0.254, setting last IP available address 192.168.0.254 is initial ip address.Because have certain time interval between each blade server 2 starts, therefore can set same initial ip address for the BMC of each blade server 2, this initial ip address is for each blade server 2 of remote computer 1 remote activation, the operation that more than starts each blade server 2 generally can be not failed, but in order to prevent contingency failure, can be arranged on when certain blade server 2 starts unsuccessfully and enter immediately dormancy, and after certain hour, after (as 10 seconds), restart the blade server 2 of this startup failure.
Step S11, detecting module 102 is detected the IP address in network segment hollow spare time.In present embodiment, detecting module 102 can be from first IP available address in the network segment, and the whole network segment of traversal detecting, detects idle IP address.For example, in the time that initial ip address is 192.168.0.254, traversal is detected 192.168.0.1 in the network segment successively, 192.168.0.2, and 192.168.0.3 ..., the IP available addresses such as 192.168.0.254, detect idle IP address.
Step S12, in the time detecting IP address idle in the network segment, detecting module 102 continues to detect and judge whether to exist IP address conflict.If there is no IP address conflict, enters step 13, otherwise, if there is IP address conflict, return to step 11.For example, one of them blade server A is activated, and detect exploration 192.168.0.2 without other blade server use, so setting the IP address of this blade server BMC is 192.168.0.2, but in the process of setting IP address, another blade server B also starts shooting and explores 192.168.0.2 simultaneously, because blade server A has not yet set, so erroneous judgement 192.168.0.2 is not used, therefore also setting 192.168.0.2 is the IP address of BMC, cause IP conflict, now can make blade server B dormancy certain hour, return to again step 11 and detect in the network segment, whether there is idle IP address.
Step S13, the IP address of the BMC of the blade server 2 that module 104 is set is current startup by the above-mentioned IP address setting detecting, and start next blade server 2.
Step S14, mapping block 106, according to the IP address of the BMC of above-mentioned setting, utilizes the IP address of blade server 2 each network ports of the current startup of default mapping policy setting.For example, when the IP address of BMC of setting is 192.168.0.5, and main frame is while having 10 ports, and the IP address of automatically distributing these 10 ports is 192.168.1.5,192.168.2.5, and 192.168.3.5,192.168.y.5 ..., 192.168.10.5.
Described step S10 identifies the IP address of free time in the network segment by Auto-Sensing to step S14, and obtain this not by the IP address that uses address as the blade server 2 of current startup, realizes the automatic distribution of multiple blade server IP address.
Above execution mode is only unrestricted in order to technical scheme of the present invention to be described, although the present invention is had been described in detail with reference to preferred embodiment, those of ordinary skill in the art is to be understood that, can modify or be equal to replacement technical scheme of the present invention, and not depart from the spirit and scope of technical solution of the present invention.

Claims (8)

1. an IP address automatic allocating method, is characterized in that, the method comprises:
Setting up procedure, for the baseboard management controller BMC of each blade server sets same initial ip address, interval starts each blade server successively at regular intervals;
Detecting step, the IP address in detecting network segment hollow spare time;
Setting steps, in the time detecting IP address idle in the network segment, the IP address that this detects is set to the IP address of the BMC of the blade server of current startup, and starts next blade server;
Mapping step, according to the IP address of the BMC of above-mentioned setting, utilizes the IP address of each network port of the blade server of the current startup of default mapping policy setting.
2. IP address automatic allocating method according to claim 1, is characterized in that, described initial ip address is last IP available address in the network segment.
3. IP address automatic allocating method according to claim 1, is characterized in that, described detecting step is from first IP available address in the network segment, and the whole network segment of traversal detecting, to detect idle IP address.
4. IP address automatic allocating method according to claim 1, is characterized in that, in the time detecting IP address idle in the network segment, continue detecting and whether have IP conflict, if there is no IP conflict, enters setting steps, if there is IP conflict, return to detecting step.
5. an IP address automatic distribution system, is characterized in that, this system comprises:
Start module, the same initial ip address of setting for being utilized as the baseboard management controller BMC of each blade server, interval starts each blade server successively at regular intervals;
Detecting module, for detecting the IP address in network segment hollow spare time;
Module is set, and in the time detecting the IP address of network segment free time, the IP address that this detects is set to the IP address of the BMC of the blade server of current startup, and starts next blade server;
Mapping block, for according to the IP address of the BMC of above-mentioned setting, utilizes the IP address of each network port of the blade server of the current startup of default mapping policy setting.
6. IP according to claim 5 address automatic distribution system, is characterized in that, described initial ip address is last IP available address in the network segment.
7. IP according to claim 5 address automatic distribution system, is characterized in that, described detecting module is from first IP available address in the network segment, and the whole network segment of traversal detecting, to detect idle IP address.
8. IP according to claim 5 address automatic distribution system, it is characterized in that, in the time detecting IP address idle in the network segment, detecting module continues detecting and whether has IP conflict, if there is no IP conflict, triggering arranges module, if there is IP conflict, again triggers in the detecting module detecting network segment whether have idle IP address.
CN201310038057.6A 2013-01-31 2013-01-31 Automatic IP (internet protocol) address distributing method and system Pending CN103973824A (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201310038057.6A CN103973824A (en) 2013-01-31 2013-01-31 Automatic IP (internet protocol) address distributing method and system
TW102106333A TW201440478A (en) 2013-01-31 2013-02-22 System and method for distributing IP address automatically

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310038057.6A CN103973824A (en) 2013-01-31 2013-01-31 Automatic IP (internet protocol) address distributing method and system

Publications (1)

Publication Number Publication Date
CN103973824A true CN103973824A (en) 2014-08-06

Family

ID=51242856

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310038057.6A Pending CN103973824A (en) 2013-01-31 2013-01-31 Automatic IP (internet protocol) address distributing method and system

Country Status (2)

Country Link
CN (1) CN103973824A (en)
TW (1) TW201440478A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106453681A (en) * 2016-10-10 2017-02-22 杭州昆海信息技术有限公司 IP address allocation method and device
CN106993068A (en) * 2017-04-11 2017-07-28 广东浪潮大数据研究有限公司 A kind of blade server managing intranet IP auto-allocation method

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106453681A (en) * 2016-10-10 2017-02-22 杭州昆海信息技术有限公司 IP address allocation method and device
CN106453681B (en) * 2016-10-10 2020-05-12 新华三信息技术有限公司 IP address allocation method and device
CN106993068A (en) * 2017-04-11 2017-07-28 广东浪潮大数据研究有限公司 A kind of blade server managing intranet IP auto-allocation method
CN106993068B (en) * 2017-04-11 2019-10-25 广东浪潮大数据研究有限公司 A kind of auto-allocation method of blade server managing intranet IP

Also Published As

Publication number Publication date
TW201440478A (en) 2014-10-16

Similar Documents

Publication Publication Date Title
CN109951325B (en) Network cable connection checking method and device
US20130290947A1 (en) Termimal and method for updating firmware of baseboard management controller
CN106533753B (en) Role configuration method and device of distributed system
US8930517B2 (en) Server rack system
CN109587005B (en) Connection detection method and device, computer equipment and readable storage medium
US9588542B2 (en) Rack server system and method for automatically managing rack configuration information
US20120124242A1 (en) Server and method for testing pxe function of network interface card
CN103324495A (en) Method and system for data center server boot management
CN106549789B (en) Method and system for realizing server installation
US20120011236A1 (en) Server management apparatus and server management method
CN109358876A (en) A kind of version synchronization method and device, equipment, storage medium
CN107659677B (en) IP address automatic configuration device and method based on BMC
CN102833083A (en) Data center power supply device control system and method
CN110677493B (en) Service state determination method and device, computer device and storage medium
CN103368785A (en) Server operation monitoring system and method
CN111343016B (en) Cloud server cluster management method and device
CN103618634A (en) Method for automatically finding nodes in cluster
US9262286B2 (en) Failover in a data center that includes a multi-density server
CN114866515A (en) IP address configuration method, device, electronic equipment and storage medium
CN103973824A (en) Automatic IP (internet protocol) address distributing method and system
US20140317247A1 (en) Computer system, method for starting a server computer, server computer, management station, and use
CN106550057B (en) Method and apparatus for determining a physical location of a device
CN108141480B (en) Method and apparatus for addressing in a system of interconnected cells
CN114448932A (en) Address allocation method and device and electronic equipment
CN111338926A (en) Patch testing method and device and electronic equipment

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C02 Deemed withdrawal of patent application after publication (patent law 2001)
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20140806