CN109769038A - A kind of method and device of configuring internet protocol address - Google Patents
A kind of method and device of configuring internet protocol address Download PDFInfo
- Publication number
- CN109769038A CN109769038A CN201711099900.6A CN201711099900A CN109769038A CN 109769038 A CN109769038 A CN 109769038A CN 201711099900 A CN201711099900 A CN 201711099900A CN 109769038 A CN109769038 A CN 109769038A
- Authority
- CN
- China
- Prior art keywords
- bmc
- request message
- slot number
- address
- medium
- 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
Links
- 238000000034 method Methods 0.000 title claims abstract description 24
- 230000004044 response Effects 0.000 claims abstract description 67
- 230000008878 coupling Effects 0.000 claims description 7
- 238000010168 coupling process Methods 0.000 claims description 7
- 238000005859 coupling reaction Methods 0.000 claims description 7
- 230000005540 biological transmission Effects 0.000 claims description 5
- 238000003860 storage Methods 0.000 description 9
- 238000010586 diagram Methods 0.000 description 6
- RTZKZFJDLAIYFH-UHFFFAOYSA-N Diethyl ether Chemical compound CCOCC RTZKZFJDLAIYFH-UHFFFAOYSA-N 0.000 description 4
- 230000008859 change Effects 0.000 description 2
- 238000005516 engineering process Methods 0.000 description 2
- 230000003068 static effect Effects 0.000 description 2
- 238000004891 communication Methods 0.000 description 1
- 230000006870 function Effects 0.000 description 1
- 230000014759 maintenance of location Effects 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
Landscapes
- Data Exchanges In Wide-Area Networks (AREA)
Abstract
The invention discloses a kind of methods of configuring internet Protocol IP address.Medium-spec frame management board receives the request message that baseboard management controller BMC is sent, and the slot number where the BMC is determined according to the request message.Response message including the slot number where BMC is also sent to BMC by medium-spec frame management board, and BMC configures the IP address of the BMC according to the response message.The present invention also provides a kind of devices and equipment for configuring IP address.Using the above scheme, it is ensured that it is fixed for being allocated to the IP address of BMC relative to slot position, so that the IP address of BMC is constant after blade server replacement, and occupies backplane signal line resource without additional.
Description
Technical field
The present invention relates to field of communication technology, in particular to a kind of method and device of configuring internet protocol address.
Background technique
In blade server system, medium-spec frame management board passes through local area network (Local Area Network, LAN) and base
Board management controller (Baseboard Management Controller, BMC) connection, realizes machine frame management function.But
LAN is introduced to connect medium-spec frame management board and BMC will have the Internet protocol (Internet Protocol, IP) of BMC
The problem of how location configures.
Summary of the invention
The main object of the present invention is to provide a kind of method for configuring IP address, it is intended to configure the IP address of BMC.
An embodiment provides a kind of methods for configuring IP address, which comprises
Receive the request message that baseboard management controller BMC is sent;
According to the request message, the slot number where the BMC is determined;
Response message is sent to the BMC, wherein the response message includes the slot number where the BMC, described
Slot number where BMC is used to configure the IP address of the BMC.
An embodiment provides a kind of device for configuring IP address, described device includes:
Receiving module, for receiving the request message of BMC transmission;
Determining module, for determining the slot position where the BMC according to the received request message of the receiving module
Number;
Sending module, for sending response message to the BMC, wherein the response message includes the determining module
Slot number where determining BMC, the slot number where the BMC are used to configure the IP address of the BMC.
An embodiment provides it is a kind of configure IP address equipment,
The equipment includes BMC and medium-spec frame management board;
The BMC includes first processor and the first memory with first processor coupling;
The medium-spec frame management board includes second processor and the second memory with second processor coupling;
The program for the configuration IP address that can be run on the first processor is stored on the first memory, it is described
The program of configuration IP address realizes following steps when being executed by the first processor:
Request message is sent to the medium-spec frame management board;
Receive the response message that the medium-spec frame management board is sent, wherein where the response message includes the BMC
Slot number;
According to the slot number where the BMC, the IP address of the BMC is configured;
The program for the configuration IP address that can be run in the second processor is stored on the second memory, it is described
The program of configuration IP address realizes following steps when being executed by the second processor:
Receive the request message that the BMC is sent;
According to the request message, the slot number where the BMC is determined;
The response message is sent to the BMC.
In the embodiment of the present invention, medium-spec frame management board receives the request message that BMC is sent, and is determined according to the request message
Slot number where the BMC.Response message including the slot number where BMC is also sent to BMC by medium-spec frame management board, and
BMC configures the IP address of the BMC according to the response message.Using the above scheme, it is ensured that be allocated to the IP address of BMC
It is fixed relative to slot position, so that the IP address of BMC is constant after blade server replacement, and occupies backboard letter without additional
Number line resource.
In an embodiment of the present invention, medium-spec frame management board includes that primary medium-spec frame management board and the management of spare machine frame are single
Plate.BMC sends request message to primary medium-spec frame management board;If within a preset time, BMC does not receive the primary machine frame pipe
The response request that veneer is sent is managed, then sends request message to spare medium-spec frame management board.BMC receives primary medium-spec frame management board
Or the response request that spare medium-spec frame management board is sent, and requested according to the response, configure IP address.Using above-mentioned side
Case enables spare medium-spec frame management board when primary medium-spec frame management board is unresponsive, it is ensured that BMC can get BMC institute
Slot number to configure IP address.
Detailed description of the invention
In order to illustrate the technical solution of the embodiments of the present invention more clearly, below will be in embodiment or description of the prior art
Required attached drawing is briefly described, it should be apparent that, the accompanying drawings in the following description is only some realities of the invention
Example is applied, it for those of ordinary skill in the art, without creative efforts, can also be according to these attached drawings
Obtain other attached drawings.
Fig. 1 is blade server machine frame management plane connection schematic diagram;
Fig. 2 is the flow chart of the method for the configuration IP address that the embodiment of the present invention one provides;
Fig. 3 is the form schematic diagram for the request message that the embodiment of the present invention one provides;
Fig. 4 is the form schematic diagram for the response message that the embodiment of the present invention one provides
Fig. 5 is the flow chart of the method for configuration IP address provided by Embodiment 2 of the present invention;
Fig. 6 is the structural block diagram of the device for the configuration IP address that the embodiment of the present invention three provides;
Fig. 7 is the structural block diagram of the device for the configuration IP address that one embodiment of the invention provides;
Fig. 8 is the flow chart of the method for the configuration IP address that the embodiment of the present invention six provides.
Specific embodiment
Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention carries out clear, complete
Site preparation description, it is clear that described embodiment is only a part of the embodiments of the present invention, instead of all the embodiments.Base
Embodiment in the present invention, it is obtained by those of ordinary skill in the art without making creative efforts it is all its
His embodiment, shall fall within the protection scope of the present invention.
In enterprise-level blade server system, blade server machine frame may include blade, be integrated on the blade
BMC and medium-spec frame management board.Fig. 1 is blade server machine frame management plane connection schematic diagram, in Fig. 1, blade service
Device machine frame includes several blades, and a BMC11 is integrated on each blade, and blade server machine frame further includes a machine frame
Management single board 12, the medium-spec frame management board 12 include exchange chip 13 and central processor CPU 14, and the exchange chip 13 wraps
Include several switching ports 15.Wherein, connected between the BMC11 and the switching port 15 of medium-spec frame management board 12 by network
It connects, the network can be LAN.There is management mouth between exchange chip 13 and CPU14, the management mouth is used for from BMC11
Message is received, and knows the information for receiving the specific switching port of message.
It follows that can be connected by LAN between BMC and medium-spec frame management board in enterprise-level blade server system,
The problem of IP address configuration of BMC will necessarily be so related to.In the related technology, the mode of the IP address distribution of BMC generally has
Two kinds: dynamic allocation and static allocation.
Dynamic allocation generally use dynamic host configuration protocol (Dynamic Host Configuration Protocol,
DHCP) mode, by DHCP to medium-spec frame management board IP address requesting, disposes one after BMC starting on medium-spec frame management board
DHCP Server (manages a computer of DHCP standard) in a specific network, and DHCP Server receives BMC's
After DHCP request, an IP address is distributed according to the media access control address (Media Access Control, MAC) of BMC
To BMC.In enterprise-level blade server system, blade allows to replace as Field Replaceable needs, the knife after replacement
Piece is the substitute of original blade for server system, therefore, it should for the BMC configuration of blade after replacement and original
Identical IP address.But for DHCP Server, since the MAC Address of the BMC of replaced blade is different,
Therefore, a new IP address can be distributed for it when configuring IP address.Institute is not able to satisfy blade service in this way
The requirement of device system.
Static allocation is that hardware address is provided by backplane signal line, and the hardware address of each slot position is unique in machine frame,
BMC in this way can configure IP address according to hardware address.But since the density of enterprise-level blade server system is higher and higher,
The signal wire quantity for causing backboard to can be used for providing hardware address is inadequate, therefore can not carry out in this way matching for IP address
It sets.
Therefore, the embodiment provides a kind of method, apparatus of IP address for configuring BMC, equipment and storages to be situated between
Matter corresponds to table by the port slot position in medium-spec frame management board, configures the IP address of BMC, may make the IP address for being allocated to BMC
Be relative to slot position it is fixed, guarantee blade after replacement, the IP address of BMC is constant on blade, and occupies backboard without additional
Signal wire resource.
Embodiment one
A kind of method for configuring IP address is provided in the embodiment of the present invention one, as shown in Fig. 2, this method is applied to machine frame
Management single board, comprising the following steps:
Step S101: the request message that baseboard management controller BMC is sent is received;
Step S102: according to the request message, the slot number where the BMC is determined;
Step S103: response message is sent to the BMC, wherein the response message includes the slot position where the BMC
Number, the slot number where the BMC is used to configure the IP address of the BMC.
In above-mentioned steps, the request message that medium-spec frame management board is sent according to BMC determines the slot number where BMC, and
It is sent to BMC, slot number of the BMC according to locating for itself configures IP address.It can guarantee to be allocated to BMC's through the above steps
IP address is fixed relative to slot position, so that the IP address of BMC is constant after blade server replacement, and is occupied without additional
Backplane signal line resource.
For being elaborated as follows for above-mentioned steps:
Before step S101, medium-spec frame management board obtains port slot number and corresponds to table.The port slot number corresponds to table
It may include the corresponding relationship between the slot number where exchange end slogan and BMC.Each switching port have one it is corresponding
Exchange end slogan, the switching port of medium-spec frame management board is for receiving message request.In the present embodiment, port slot number is corresponding
Table can be as shown in the table:
Slot number | Exchange end slogan | Replaceable unit type |
1 | 3 | Blade |
2 | 4 | Blade |
3 | 5 | Blade |
4 | 6 | Blade |
5 | 19 | Switching board |
6 | 24 | Switching board |
7 | 23 | Switching board |
It is as the hardware connecting line of the blade server machine frame where medium-spec frame management board that the port slot number, which corresponds to table,
What topological structure determined, for example, can be when blade server machine frame dispatches from the factory, according to the hardware connecting line of blade server machine frame
Topological structure is preset among medium-spec frame management board.
In step s101, medium-spec frame management board receives the request message that BMC is sent.The request message is accused for BMC
Know that medium-spec frame management board, the BMC need to obtain the slot number where the BMC.The request message, for example, can be customized.
In the present embodiment, the format of customized request message is as shown in Figure 3.Wherein, which includes: ether
Net destination address, ethernet source address, frame type, version number, length, sequence number, command number, CRC32 check bit.
Ethernet destination address is 6 bytes, and BMC is not aware that the ethernet address of destination, institute when sending message
To fill out broadcast address herein;Ethernet source address is 6 bytes, fills out the MAC Address of BMC itself herein;Frame type is 2 bytes, this
Place uses customization type 0xaaaa;Version number is 1 byte, and current version number is 1;Length is 2 bytes, is referred to from this field
After (do not include length field itself) message total length, include CRC32 field.4 byte of Serial No. sends request every time
Sequence number adds 1;Command number is 2 bytes, uses custom command 0x0001 herein;CRC32 check bit be 4 bytes, for pair
Entire request message does CRC check.
In step s 102, according to the request message, medium-spec frame management board determines the slot number where the BMC.?
In the present embodiment, medium-spec frame management board is after receiving request message, by medium-spec frame management board between exchange chip and CPU
Management mouth determine exchange end slogan.According to the described exchange end slogan, medium-spec frame management board corresponds in table in port slot number
It is searched, finds out the corresponding slot number of exchange end slogan, which is the slot position where the BMC.
Wherein, the management mouth determines exchange end slogan, may is that the management mouth according to the request message, determines
For receiving the switching port of the request message;Then, the management mouth determines the exchange end according to the switching port
Slogan.Be also possible to: the management mouth obtains the exchange end slogan parameter carried in the message request;Then, according to described
Exchange end slogan parameter, the management mouth determine the exchange end slogan.
In step s 103, medium-spec frame management board sends response message to the BMC.It is similar with the request message, institute
Response message is stated, for example, can be customized.The response message is for where medium-spec frame management board informing BMC, the BMC
Slot number.
In the present embodiment, the format of customized response message is as shown in Figure 4.Wherein, which includes: ether
Net destination address, frame type, version number, length, sequence number, command number, completes code, slot number, CRC32 at ethernet source address
Check bit.
Ethernet destination address is 6 bytes, fills out the MAC Address of BMC, source destination address of this MAC Address from request message
It is obtained in field;Ethernet source address is 6 bytes, fills out the MAC Address of medium-spec frame management board itself herein;Frame type is 2 bytes,
Customization type 0xaaaa is used herein;Version number is 1 byte, and current version number is 1;Length is 2 bytes, is referred to from this word
The message total length of Duan Yihou (not including length field itself), includes CRC32 field;4 byte of Serial No., this sequence number with
The sequence-number field of request message is consistent;Command number is 2 bytes, uses custom command 0x0001 herein;Complete code 1
It indicates to obtain successfully for byte, 0,1 indicates failure;Slot number is 1 byte, indicates the physics slot number where BMC;The school CRC32
Testing position is 4 bytes, for doing CRC check to entire response message.
After step s 103, the response message received according to BMC, the BMC are itself configuration IP address.Due to knife
The hardware address of each slot position of piece server machine frame is uniquely that therefore, BMC can be according to the hardware address of place slot position
Itself configuration IP address.In this way, even if having replaced blade in the slot position of blade server, the IP address of the BMC on blade is not yet
It can change, meet the requirement of blade server system.
In above-described embodiment, medium-spec frame management board receives the request message that BMC is sent, and determines institute according to the request message
State the slot number where BMC.Slot response message including the slot number where BMC is also sent to BMC by medium-spec frame management board, and
BMC configures the IP address of the BMC according to the response message.Using the above scheme, it is ensured that be allocated to the IP address of BMC
It is fixed relative to slot position, so that the IP address of BMC is constant after blade server replacement, and occupies backboard letter without additional
Number line resource.
Embodiment two
A kind of method for configuring IP address is provided in the embodiment of the present invention two, as shown in figure 5, this method is applied to blade
Server machine frame, the blade server machine frame includes BMC and medium-spec frame management board.Method includes the following steps:
Step S201:BMC sends request message to medium-spec frame management board;
Step S202: medium-spec frame management board receives the request message, and according to the request message, determines the BMC
The slot number at place;
Step S203: medium-spec frame management board sends response message to the BMC, wherein the response message includes described
Slot number where BMC;
Step S204:BMC receives the response message, and according to the slot number where the BMC, configures the BMC's
IP address.
For being elaborated as follows for above-mentioned steps:
Before step S201, the medium-spec frame management board obtains port slot number and corresponds to table.The port slot position is corresponding
Table includes the corresponding relationship between the slot number where exchange end slogan and BMC.Each switching port has a corresponding friendship
Port numbers are changed, the switching port of medium-spec frame management board is for receiving message request.It is by machine frame that the port slot number, which corresponds to table,
What the hardware connecting line topological structure of the blade server machine frame where management single board determined.
In step s 201, BMC sends request message to medium-spec frame management board.The request message informs machine for BMC
Frame management single board, the BMC need to obtain the slot number where the BMC, and the request message can be customized.
In another embodiment, the medium-spec frame management board includes that primary medium-spec frame management board and the management of spare machine frame are single
Plate.Therefore, it may include: that the BMC sends request message to main computer that the BMC, which sends request message to medium-spec frame management board,
Frame management single board;If within a preset time, the BMC does not receive response message, then the BMC sends request message to spare
Medium-spec frame management board.When primary medium-spec frame management board is unresponsive, spare medium-spec frame management board is enabled, it is ensured that BMC can
The slot number where BMC is got to configure IP address.
In step S202, medium-spec frame management board receives the request message, and according to the request message, determine described in
Slot number where BMC.Medium-spec frame management board determines exchange end slogan by the management mouth between exchange chip and CPU.According to
The described exchange end slogan, medium-spec frame management board are corresponded in table in port slot number and are searched, and find out the exchange end slogan pair
The slot number answered, the slot number are the slot position where the BMC.
Wherein, the management mouth determines exchange end slogan, may is that the management mouth according to the request message, determines
For receiving the switching port of the request message;Then, the management mouth determines the exchange end according to the switching port
Slogan.Be also possible to: the management mouth obtains the exchange end slogan parameter carried in the message request;Then, according to described
Exchange end slogan parameter, the management mouth determine the exchange end slogan.
In step S203, medium-spec frame management board sends response message to the BMC, wherein the response message includes
Slot number where the BMC.Similar with the request message, the response message can be customized.The response report
Text informs BMC, the slot number where the BMC for medium-spec frame management board.
In step S204, BMC receives the response message, and according to the slot number where the BMC, described in configuration
The IP address of BMC.Due to the hardware address of each slot position of blade server machine frame be it is unique, BMC can be according to institute
It is itself configuration IP address in the hardware address of slot position.In this way, even if having replaced blade in the slot position of blade server, on blade
The IP address of BMC will not change, meet the requirement of blade server system.
Embodiment three
A kind of device for configuring IP address is provided in the embodiment of the present invention three, as shown in fig. 6, the device is applied to machine frame
Management single board, comprising: receiving module 301, determining module 302 and sending module 303.
The receiving module 301, for receiving the request message of BMC transmission.The request message informs machine frame for BMC
Management single board, the BMC need to obtain the slot number where the BMC.The request message can be customized.
The determining module 302, for determining the BMC institute according to the received request message of the receiving module
Slot number.Medium-spec frame management board is after receiving request message, by medium-spec frame management board between exchange chip and CPU
Management mouth determine exchange end slogan.According to the described exchange end slogan, medium-spec frame management board corresponds in table in port slot number
It is searched, finds out the corresponding slot number of exchange end slogan, which is the slot position where the BMC.
Wherein, the management mouth determines exchange end slogan, may is that the management mouth according to the request message, determines
For receiving the switching port of the request message;Then, the management mouth determines the exchange end according to the switching port
Slogan.Be also possible to: the management mouth obtains the exchange end slogan parameter carried in the message request;Then, according to described
Exchange end slogan parameter, the management mouth determine the exchange end slogan.
The sending module 303, for sending response message to the BMC, wherein the response message includes described true
Slot number where the BMC that cover half block determines, the slot number where the BMC are used to configure the IP address of the BMC.With it is described
Request message is similar, the response message, for example, can be customized.The response message is informed for medium-spec frame management board
BMC, the slot number where the BMC.
In another embodiment, as shown in fig. 7, the device of configuration IP address can also include obtaining module 304.
The acquisition module 304 corresponds to table for obtaining port slot number.The port slot number corresponds to table and may include
Corresponding relationship between exchange end slogan and slot number where BMC.Each switching port has a corresponding switching port
Number, the switching port of medium-spec frame management board is for receiving message request.It is to manage list by machine frame that the port slot number, which corresponds to table,
What the hardware connecting line topological structure of the blade server machine frame where plate determined.
Example IV
The embodiment of the present invention four provides a kind of equipment for configuring IP address, which may include BMC and machine frame management
Veneer.
The BMC may include first processor and the first memory with first processor coupling;The machine
Frame management single board includes second processor and the second memory with second processor coupling.
The program for the configuration IP address that can be run on the first processor is stored on the first memory, it is described
The program of configuration IP address realizes following steps when being executed by the first processor: sending request message to the machine frame management
Veneer;Receive the response message that the medium-spec frame management board is sent, wherein the response message includes the slot where the BMC
Position number;According to the slot number where the BMC, the IP address of the BMC is configured.
The request message informs that medium-spec frame management board, the BMC need to obtain the slot number where the BMC for BMC.
The request message, for example, can be customized.It is similar with the request message, the response message, for example, can be customized.
The response message informs BMC, the slot number where the BMC for medium-spec frame management board.
In another embodiment, the medium-spec frame management board includes that primary medium-spec frame management board and the management of spare machine frame are single
Plate.Correspondingly, the transmission request message to medium-spec frame management board may include: to send request message to the primary machine frame pipe
Manage veneer;If within a preset time, not receiving the response message that the primary medium-spec frame management board is sent, then request report is sent
Text is to spare medium-spec frame management board.
The program for the configuration IP address that can be run in the second processor is stored on the second memory, it is described
The program of configuration IP address realizes following steps when being executed by the second processor: receiving the request message that the BMC is sent;
According to the request message, the slot number where the BMC is determined;The response message is sent to the BMC.
Before determining the slot number where the BMC, the program of the configuration IP address is held by the second processor
Following steps are also realized when row:
It obtains port slot number and corresponds to table, wherein it includes exchange end slogan and the place BMC that the port slot number, which corresponds to table,
Slot number between corresponding relationship.Each switching port has a corresponding exchange end slogan, the friendship of medium-spec frame management board
Port is changed for receiving message request.In the present embodiment, port slot number correspond to table can be as shown in the table:
Slot number | Exchange end slogan | Replaceable unit type |
1 | 3 | Blade server |
2 | 4 | Blade server |
3 | 5 | Blade server |
4 | 6 | Blade server |
5 | 11 | Blade server |
6 | 12 | Blade server |
7 | 13 | Blade server |
It is as the hardware connecting line of the blade server machine frame where medium-spec frame management board that the port slot number, which corresponds to table,
What topological structure determined, for example, can be when blade server machine frame dispatches from the factory, according to the hardware connecting line of blade server machine frame
Topological structure is preset among medium-spec frame management board.
Correspondingly, according to the request message, the slot number where determining the BMC may include: according to the request
Message determines exchange end slogan;Table is corresponded to according to the exchange end slogan and port slot number, determines the slot where the BMC
Position number.
Wherein, the determining exchange end slogan may is that according to the request message, determine for receiving the request
The switching port of message;Then, according to the switching port, the exchange end slogan is determined.It is also possible to: obtains the message
The exchange end slogan parameter carried in request;Then, according to the exchange end slogan parameter, the exchange end slogan is determined.
In above-described embodiment, medium-spec frame management board receives the request that BMC is sent by second memory and second processor
Message, and determine according to the request message slot number where the BMC.Medium-spec frame management board also passes through second memory and
The slot response message of slot number where including BMC is sent to BMC by two processors, and BMC passes through first memory and first
Processor configures the IP address of the BMC according to the response message.Using above equipment, it is ensured that with being allocated to the IP of BMC
Location is fixed relative to slot position, so that the IP address of BMC is constant after blade server replacement, and occupies backboard without additional
Signal wire resource.
Embodiment five
The embodiment of the present invention five provides a kind of medium-spec frame management board, the medium-spec frame management board include third processor, with
And the third memory with third processor coupling.
The program for the configuration IP address that can be run on the third processor is stored on the third memory, it is described
The program of configuration IP address realizes following steps when being executed by the third processor: receiving baseboard management controller BMC and sends
Request message;According to the request message, the slot number where the BMC is determined;Response message is sent to the BMC,
In, the response message includes the slot number where the BMC, and the slot number where the BMC is used to configure the IP of the BMC
Address.
Wherein, the request message informs that medium-spec frame management board, the BMC need to obtain the slot where the BMC for BMC
Position number.The request message, for example, can be customized.It is similar with the request message, the response message, for example, can be certainly
Definition.The response message informs BMC, the slot number where the BMC for medium-spec frame management board.
Before determining the slot number where the BMC, the program of the configuration IP address is held by the third processor
Following steps are also realized when row: being obtained port slot number and corresponded to table.Correspondingly, according to the request message, the BMC institute is determined
Slot number may include: that exchange end slogan is determined according to the request message;According to the exchange end slogan and port slot
The corresponding table in position number, determines the slot number where the BMC.Wherein, the determining exchange end slogan, may is that and ask according to
Message is sought, determines the switching port for receiving the request message;Then, according to the switching port, the exchange is determined
Port numbers.It is also possible to: obtains the exchange end slogan parameter carried in the message request;Then, according to the switching port
Number parameter, determines the exchange end slogan.
It should be noted that it may include the slot number where exchange end slogan and BMC that the port slot number, which corresponds to table,
Between corresponding relationship.Each switching port has a corresponding exchange end slogan, and the switching port of medium-spec frame management board is used
In reception message request.It is as the hardware of the blade server machine frame where medium-spec frame management board that the port slot number, which corresponds to table,
What connecting line topological structure determined.
Embodiment six
A kind of method for configuring IP address is provided in the embodiment of the present invention six, as shown in figure 8, this method is applied to blade
Server machine frame, the blade server machine frame includes BMC and medium-spec frame management board.Should the following steps are included:
Step S401: primary medium-spec frame management board and spare medium-spec frame management board obtain port slot number and correspond to table.
The port slot number corresponds to table can be as shown in the table:
Slot number | Exchange end slogan | Replaceable unit type |
1 | 1 | Blade |
2 | 2 | Blade |
3 | 3 | Blade |
4 | 4 | Blade |
5 | 5 | Switching board |
6 | 11 | Switching board |
7 | 12 | Switching board |
8 | 13 | Blade |
9 | 14 | Blade |
10 | 15 | Blade |
Step S402:BMC sends request message to primary medium-spec frame management board.
If the BMC does not receive response message in 60 seconds, then the BMC sends request message to spare machine frame pipe
Manage veneer.
The request message informs that medium-spec frame management board, the BMC need to obtain the slot number where the BMC for BMC.
The request message includes: Ethernet destination address, ethernet source address, frame type, version number, length, sequence number, order
Number, CRC32 check bit.
Step S403: response message is sent to BMC, the BMC hair not in 60 seconds by the primary medium-spec frame management board
Send request message to spare medium-spec frame management board.
In the present embodiment when primary medium-spec frame management board is unresponsive, spare medium-spec frame management board is enabled, it is ensured that
BMC can get the slot number where BMC to configure IP address.
Step S404: spare medium-spec frame management board receives request message, and according to the request message and port slot position
Number corresponding table, determines the slot number where the BMC.
In the present embodiment, spare medium-spec frame management board is after receiving request message, by exchanging in medium-spec frame management board
Management mouth between chip and CPU determines exchange end slogan.Firstly, the management mouth determines the switching port for receiving request message
Exchange end slogan be 13;It is searched secondly, spare medium-spec frame management board corresponds in table in port slot number, finds out exchange end
The corresponding slot number that slogan is 13 is 8, then 8 be the corresponding slot number of slot position where the BMC.
Step S405: spare medium-spec frame management board sends response message to the BMC.
The response message informs BMC, the slot number where the BMC for medium-spec frame management board.The response message
Include: Ethernet destination address, ethernet source address, frame type, version number, length, sequence number, command number, complete code, slot position
Number, CRC32 check bit.In the present embodiment, the slot number is 8.
Step S406: the BMC receives response message, and is itself configuration of IP according to the slot number in the response message
Address.
Due to the hardware address of each slot position of blade server machine frame be it is unique, BMC can be according to place slot
The hardware address of position is itself configuration IP address.
Embodiment seven
A kind of storage medium is provided in the embodiment of the present invention seven, above-mentioned storage medium can be set to storage for holding
The program code of row following steps:
Step S101: the request message that baseboard management controller BMC is sent is received;
Step S102: according to the request message, the slot number where the BMC is determined;
Step S103: response message is sent to the BMC, wherein the response message includes the slot position where the BMC
Number, the slot number where the BMC is used to configure the IP address of the BMC.
In the present embodiment, above-mentioned storage medium can include but is not limited to: USB flash disk, read-only memory (ROM, Read-
Only Memory), random access memory (RAM, Random Access Memory), mobile hard disk, magnetic or disk etc.
The various media that can store program code.
In the present embodiment, processor executes above-described embodiment record according to program code stored in storage medium
Method and step.
In the present embodiment, storage medium, which can be set to the step of storage is for executing, can specifically refer to above-mentioned implementation
Example described in example one to embodiment six and other optional embodiments, details are not described herein for the present embodiment.
Obviously, those skilled in the art should be understood that each module of the above invention or each step can be with general
Computing device realize that they can be concentrated on a single computing device, or be distributed in multiple computing devices and formed
Network on, optionally, they can be realized with the program code that computing device can perform, it is thus possible to which they are stored
It is performed by computing device in the storage device, and in some cases, it can be to be different from shown in sequence execution herein
Out or description the step of, perhaps they are fabricated to each integrated circuit modules or by them multiple modules or
Step is fabricated to single integrated circuit module to realize.In this way, the present invention is not limited to any specific hardware and softwares to combine.
Although disclosed herein embodiment it is as above, the content only for ease of understanding the present invention and use
Embodiment is not intended to limit the invention.Technical staff in any fields of the present invention is taken off not departing from the present invention
Under the premise of the spirit and scope of dew, any modification and variation, but the present invention can be carried out in the form and details of implementation
Scope of patent protection, still should be subject to the scope of the claims as defined in the appended claims.
Claims (10)
1. a kind of method of configuring internet Protocol IP address, which is characterized in that the described method includes:
Receive the request message that baseboard management controller BMC is sent;
According to the request message, the slot number where the BMC is determined;
Response message is sent to the BMC, wherein the response message includes the slot number where the BMC, the BMC institute
Slot number be used to configure the IP address of the BMC.
2. the method as described in claim 1, which is characterized in that before the slot number where the determination BMC, packet
It includes:
It obtains port slot number and corresponds to table, wherein it includes the slot where exchange end slogan and BMC that the port slot number, which corresponds to table,
Corresponding relationship between position number;
It is described according to the request message, determine the slot number where the BMC, comprising:
According to the request message, exchange end slogan is determined;
Table is corresponded to according to the exchange end slogan and the port slot number, determines the slot number where the BMC.
3. method according to claim 2, which is characterized in that described to determine exchange end slogan according to the request message, packet
It includes:
According to the request message, the switching port for receiving the request message is determined;
According to the switching port, the exchange end slogan is determined.
4. method according to claim 2, which is characterized in that described to determine exchange end slogan according to the request message, packet
It includes:
Obtain the exchange end slogan parameter carried in the message request;
According to the exchange end slogan parameter, the exchange end slogan is determined.
5. a kind of device for configuring IP address, which is characterized in that described device includes:
Receiving module, for receiving the request message of baseboard management controller BMC transmission;
Determining module, for determining the slot number where the BMC according to the received request message of the receiving module;
Sending module, for sending response message to the BMC, wherein the response message includes that the determining module determines
BMC where slot number, slot number where the BMC is used to configure the IP address of the BMC.
6. a kind of equipment for configuring IP address, which is characterized in that
The equipment includes baseboard management controller BMC and medium-spec frame management board;
The BMC includes first processor and the first memory with first processor coupling;
The medium-spec frame management board includes second processor and the second memory with second processor coupling;
The program for the configuration IP address that can be run on the first processor, the configuration are stored on the first memory
The program of IP address realizes following steps when being executed by the first processor:
Request message is sent to the medium-spec frame management board;
Receive the response message that the medium-spec frame management board is sent, wherein the response message includes the slot position where the BMC
Number;
According to the slot number where the BMC, the IP address of the BMC is configured;
The program for the configuration IP address that can be run in the second processor, the configuration are stored on the second memory
The program of IP address realizes following steps when being executed by the second processor:
Receive the request message that the BMC is sent;
According to the request message, the slot number where the BMC is determined;
The response message is sent to the BMC.
7. equipment as claimed in claim 6, which is characterized in that before determining the slot number where the BMC, the configuration
The program of IP address also realizes following steps when being executed by the second processor:
It obtains port slot number and corresponds to table, wherein it includes the slot where exchange end slogan and BMC that the port slot number, which corresponds to table,
Corresponding relationship between position number;
It is described according to the request message, determine the slot number where the BMC, comprising:
According to the request message, exchange end slogan is determined;
Table is corresponded to according to the exchange end slogan and port slot number, determines the slot number where the BMC.
8. equipment as claimed in claim 7, which is characterized in that described to determine exchange end slogan according to the request message, packet
It includes:
According to the request message, the switching port for receiving the request message is determined;
According to the switching port, the exchange end slogan is determined.
9. equipment as claimed in claim 7, which is characterized in that described to determine exchange end slogan according to the request message, packet
It includes:
Obtain the exchange end slogan parameter carried in the message request;
According to the exchange end slogan parameter, the exchange end slogan is determined.
10. the equipment as described in any one of claim 6-9, which is characterized in that the medium-spec frame management board includes main computer
Frame management single board and spare medium-spec frame management board;
The transmission request message is to medium-spec frame management board, comprising:
Request message is sent to the primary medium-spec frame management board;
If within a preset time, not receiving the response message that the primary medium-spec frame management board is sent, then request message is sent
To spare medium-spec frame management board.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201711099900.6A CN109769038A (en) | 2017-11-09 | 2017-11-09 | A kind of method and device of configuring internet protocol address |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201711099900.6A CN109769038A (en) | 2017-11-09 | 2017-11-09 | A kind of method and device of configuring internet protocol address |
Publications (1)
Publication Number | Publication Date |
---|---|
CN109769038A true CN109769038A (en) | 2019-05-17 |
Family
ID=66450032
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201711099900.6A Pending CN109769038A (en) | 2017-11-09 | 2017-11-09 | A kind of method and device of configuring internet protocol address |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109769038A (en) |
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111064643A (en) * | 2019-12-29 | 2020-04-24 | 苏州浪潮智能科技有限公司 | Node server and data interaction method and related device thereof |
CN111464329A (en) * | 2020-02-29 | 2020-07-28 | 新华三信息技术有限公司 | Starting method, interconnection module and server |
CN111835559A (en) * | 2020-06-28 | 2020-10-27 | 新华三信息技术有限公司 | Automatic configuration method, device, equipment and machine readable storage medium |
CN112073555A (en) * | 2020-09-14 | 2020-12-11 | 中移(杭州)信息技术有限公司 | IP address configuration method, electronic device and computer-readable storage medium |
CN118227385A (en) * | 2024-05-24 | 2024-06-21 | 深圳市磐鼎科技有限公司 | BMC dual-backup method, device, equipment, storage medium and product |
Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1937782A (en) * | 2006-08-04 | 2007-03-28 | 华为数字技术有限公司 | Frame device and its message transmitting method |
CN101217394A (en) * | 2007-12-29 | 2008-07-09 | 上海华为技术有限公司 | Single board slot number configuration method, central single board, service single board, and communication system |
CN102273178A (en) * | 2011-05-20 | 2011-12-07 | 华为技术有限公司 | Method, platform device and system for setting service single board address |
CN102487396A (en) * | 2010-12-02 | 2012-06-06 | 中兴通讯股份有限公司 | User position determining method and system |
CN103442095A (en) * | 2013-08-16 | 2013-12-11 | 京信通信系统(中国)有限公司 | Method and system for obtaining addresses of daughter cards on single board |
US20140258390A1 (en) * | 2009-12-23 | 2014-09-11 | Citrix Systems, Inc. | Systems and methods for maintaining transparent end to end cache redirection |
CN106453681A (en) * | 2016-10-10 | 2017-02-22 | 杭州昆海信息技术有限公司 | IP address allocation method and device |
-
2017
- 2017-11-09 CN CN201711099900.6A patent/CN109769038A/en active Pending
Patent Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1937782A (en) * | 2006-08-04 | 2007-03-28 | 华为数字技术有限公司 | Frame device and its message transmitting method |
CN101217394A (en) * | 2007-12-29 | 2008-07-09 | 上海华为技术有限公司 | Single board slot number configuration method, central single board, service single board, and communication system |
US20140258390A1 (en) * | 2009-12-23 | 2014-09-11 | Citrix Systems, Inc. | Systems and methods for maintaining transparent end to end cache redirection |
CN102487396A (en) * | 2010-12-02 | 2012-06-06 | 中兴通讯股份有限公司 | User position determining method and system |
CN102273178A (en) * | 2011-05-20 | 2011-12-07 | 华为技术有限公司 | Method, platform device and system for setting service single board address |
CN103442095A (en) * | 2013-08-16 | 2013-12-11 | 京信通信系统(中国)有限公司 | Method and system for obtaining addresses of daughter cards on single board |
CN106453681A (en) * | 2016-10-10 | 2017-02-22 | 杭州昆海信息技术有限公司 | IP address allocation method and device |
Cited By (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111064643A (en) * | 2019-12-29 | 2020-04-24 | 苏州浪潮智能科技有限公司 | Node server and data interaction method and related device thereof |
CN111464329A (en) * | 2020-02-29 | 2020-07-28 | 新华三信息技术有限公司 | Starting method, interconnection module and server |
CN111464329B (en) * | 2020-02-29 | 2022-08-30 | 新华三信息技术有限公司 | Starting method, interconnection module and server |
CN111835559A (en) * | 2020-06-28 | 2020-10-27 | 新华三信息技术有限公司 | Automatic configuration method, device, equipment and machine readable storage medium |
CN112073555A (en) * | 2020-09-14 | 2020-12-11 | 中移(杭州)信息技术有限公司 | IP address configuration method, electronic device and computer-readable storage medium |
CN118227385A (en) * | 2024-05-24 | 2024-06-21 | 深圳市磐鼎科技有限公司 | BMC dual-backup method, device, equipment, storage medium and product |
CN118227385B (en) * | 2024-05-24 | 2024-08-23 | 深圳市磐鼎科技有限公司 | BMC dual-backup method, device, equipment, storage medium and product |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN109769038A (en) | A kind of method and device of configuring internet protocol address | |
US10110671B2 (en) | Method, system, and device for managing server hardware resources in a cloud scheduling environment | |
CN109428749B (en) | Network management method and related equipment | |
US8718061B2 (en) | Data center network system and packet forwarding method thereof | |
EP3664420B1 (en) | Managing address spaces across network elements | |
CN101164283B (en) | Method and system for initial configuration of managed devices | |
WO2017067179A1 (en) | Method, apparatus and system for allocating communication address to smart meter | |
CN106453681B (en) | IP address allocation method and device | |
CN105095023A (en) | Cloud host establishing device and method and calculating equipment | |
CN111064786B (en) | Account identifier management method and device | |
JP2020523854A (en) | Integrated access system, configuration method, and baseband unit | |
CN109194525A (en) | A kind of network node configuration method and management node | |
JP2016116184A (en) | Network monitoring device and virtual network management method | |
CN103401787B (en) | Static route issuing method and UPE (Ultimate Provider Edge) | |
CN107517129B (en) | Method and device for configuring uplink interface of equipment based on OpenStack | |
CN108881506A (en) | A kind of domain name analytic method and device based on more available partition AZ | |
EP3629559B1 (en) | Method for configuring forwarding table for user equipment and apparatus | |
CN110113444A (en) | Method and system based on node location configuration BMC static ip address | |
CN111511041B (en) | Remote connection method and device | |
US9804907B2 (en) | Remote procedure call for a distributed system | |
EP3573303B1 (en) | Forwarder network-access recognition method, sdn controller, and forwarder | |
WO2019015268A1 (en) | Network system and network configuration method thereof | |
CN113347046A (en) | Network access method and device | |
CN108540991B (en) | Base station management method and device | |
CN104811361B (en) | A kind of method and apparatus for generating the virtualization network equipment |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
WD01 | Invention patent application deemed withdrawn after publication | ||
WD01 | Invention patent application deemed withdrawn after publication |
Application publication date: 20190517 |