CN106657434A - Method and device for checking IP address - Google Patents
Method and device for checking IP address Download PDFInfo
- Publication number
- CN106657434A CN106657434A CN201611052358.4A CN201611052358A CN106657434A CN 106657434 A CN106657434 A CN 106657434A CN 201611052358 A CN201611052358 A CN 201611052358A CN 106657434 A CN106657434 A CN 106657434A
- Authority
- CN
- China
- Prior art keywords
- address
- bmc
- request messages
- icmp
- message
- 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
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L61/00—Network arrangements, protocols or services for addressing or naming
- H04L61/09—Mapping addresses
- H04L61/10—Mapping addresses of different types
- H04L61/103—Mapping addresses of different types across network layers, e.g. resolution of network layer into physical layer addresses or address resolution protocol [ARP]
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L2101/00—Indexing scheme associated with group H04L61/00
- H04L2101/60—Types of network addresses
- H04L2101/618—Details of network addresses
- H04L2101/622—Layer-2 addresses, e.g. medium access control [MAC] addresses
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L2101/00—Indexing scheme associated with group H04L61/00
- H04L2101/60—Types of network addresses
- H04L2101/668—Internet protocol [IP] address subnets
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Small-Scale Networks (AREA)
Abstract
The invention provides a method and a device for checking an IP address. The method comprises the following steps of obtaining an identifier corresponding to a BMC; generating an ICMP request message comprising the identifier; sending the ICMP request message in a broadcast mode; receiving a first message sent by the BMC, wherein the first message comprises an IP address and an MAC address of the BMC; and resolving the IP address and the MAC address of the BMC from the first message and recording a corresponding relation between the IP address and the MAC address in an ARP table. Through the technical scheme of the invention, a user can check the IP address of the BMC from the ARP table of a client, so that a problem that the user cannot know the IP address of the BMC is solved.
Description
Technical field
The application is related to communication technical field, more particularly to a kind of inspection method and device of IP address.
Background technology
BMC (Baseboard Management Controller, baseboard management controller) is the outband management of server
System, BMC can (Intelligent Platform Management Interface, intelligent platform management connects based on IPMI
Mouthful) agreement, management and monitoring server.And, user can pass through the administration interface that the management mouth of BMC logs in BMC, so as to right
Server is managed and monitors.User logs in the premise of BMC administration interfaces:BMC has got IP address, and user
Know the IP address of BMC.
At present, BMC obtains the mode of IP address including static configuration IP address and dynamic application IP address.Static configuration IP
Address refers to:User directly configures IP address for BMC, and the advantage of this mode is that configuration is simple, and inferior position is:Static configuration
IP address and user network may not be in a network segment, and the IP address of static configuration is it may happen that IP address conflict.It is dynamic
State application IP address is referred to:BMC is to DHCP (Dynamic Host Configuration Protocol, dynamic host configuration association
View) server request IP address, by Dynamic Host Configuration Protocol server be BMC distribute IP address, and by the IP address for distributing to BMC notify to
BMC。
Either static configuration IP address, or dynamic application IP address, uses and is possible to the IP for not knowing BMC ground per family
Location, so as to lead to not the management mouth by BMC the administration interface of BMC is logged in.
For example, user may forget this IP address after for BMC configuration IP address, or, other users cannot
Know the IP address that the user is BMC configurations.After for BMC distribution IP address, user cannot know DHCP to Dynamic Host Configuration Protocol server
Server is the IP address of BMC distribution.
The content of the invention
The application provides a kind of inspection method of IP address, is applied to client, and methods described includes:
Obtain the corresponding marks of baseboard management controller BMC;
Generation includes the ICMP ICMP request messages of the mark;
The ICMP request messages are sent with broadcast mode;
The first message that the BMC sends is received, first message is that the BMC determines that the ICMP for itself receiving please
Ask what is sent after the mark that the BMC is carried in message, first message includes the IP address of the BMC and medium access control
MAC Address processed;
The IP address and MAC Address of the BMC are parsed from first message, and the IP is recorded in ARP table
The corresponding relation of address and the MAC Address.
The application provides a kind of inspection method of IP address, is applied to the BMC of server, and methods described includes:Receive and
From the ICMP ICMP request messages of client;
If the ICMP request messages carry the mark of the BMC, the IP for carrying the BMC is sent to the client
Address and the first message of medium access control MAC Address, so that the client records the IP address and institute in ARP table
State the corresponding relation of MAC Address;If the ICMP request messages do not carry the mark of the BMC, the ICMP requests are abandoned
Message.
The application provides a kind of checking device of IP address, is applied to client, and described device includes:
Acquisition module, for obtaining the corresponding marks of baseboard management controller BMC;
Generation module, for generating the ICMP request messages for including the mark;
Sending module, for sending the ICMP request messages with broadcast mode;
Receiver module, for receiving the first message that the BMC sends, first message is that the BMC determines itself
Carry what is sent after the mark of the BMC in the ICMP request messages for receiving, first message includes the IP ground of the BMC
Location and medium access control MAC Address;
Processing module, for parsing the IP address and MAC Address of the BMC from first message, and in ARP table
The middle corresponding relation for recording the IP address and MAC Address.
The application provides a kind of checking device of IP address, is applied to the BMC of server, and described device includes:Receive mould
Block, for receiving the ICMP ICMP request messages from client;
Sending module, during for the mark that the BMC is carried when the ICMP request messages, then sends to the client
The IP address of the BMC and the first message of medium access control MAC Address are carried, so that the client is remembered in ARP table
Record the corresponding relation of the IP address and the MAC Address;
Processing module, please for when the ICMP request messages do not carry the mark of the BMC, then abandoning the ICMP
Seek message.
Based on above-mentioned technical proposal, in the embodiment of the present application, client can be by sending ICMP (Internet to BMC
Control Message Protocol, ICMP) request message, triggers BMC transmissions and carries the MAC of itself
First message of (Media Access Control, medium access control) address and IP address is (such as ARP (Address
Resolution Protocol, address resolution protocol) request message or ICMP response messages etc.), and it is local in client
The corresponding relation of the IP address and MAC Address carried in the first message is recorded in ARP table.So, user just can be from client
ARP table in check the IP address of BMC, solve the problems, such as that user cannot know the IP address of BMC, and record in ARP table
The IP address of BMC be the newest IP address of BMC, be not in mistake.
Description of the drawings
In order to clearly illustrate the embodiment of the present application or technical scheme of the prior art, below will be to the application
The accompanying drawing to be used needed for embodiment or description of the prior art is briefly described, it should be apparent that, in describing below
Accompanying drawing is only some embodiments described in the application, for those of ordinary skill in the art, can be with according to these
Accompanying drawing obtains other accompanying drawings.
Fig. 1 is the flow chart of the inspection method of the IP address in a kind of embodiment of the application;
Fig. 2 is the flow chart of the inspection method of the IP address in the application another embodiment;
Fig. 3 is the hardware structure diagram of the client in a kind of embodiment of the application;
Fig. 4 is the structure chart of the checking device of the IP address in a kind of embodiment of the application;
Fig. 5 is the hardware structure diagram of the BMC in a kind of embodiment of the application;
Fig. 6 is the structure chart of the checking device of the IP address in a kind of embodiment of the application.
Specific embodiment
Term used in this application merely for the sake of description specific embodiment purpose, and unrestricted the application.This Shen
Please it is also intended to include most forms with " one kind ", " described " and " being somebody's turn to do " of the singulative used in claims, unless
Context clearly shows that other implications.It is also understood that term "and/or" used herein is referred to comprising one or more
Associated any or all possible combination for listing project.
It will be appreciated that though various information, but this may be described using term first, second, third, etc. in the application
A little information should not necessarily be limited by these terms.These terms are only used for that same type of information is distinguished from each other out.For example, without departing from
In the case of the application scope, the first information can also be referred to as the second information, and similarly, the second information can also be referred to as
One information.Depending on linguistic context, additionally, used word " if " can be construed to " and ... when " or " when ... when "
Or " in response to determining ".
A kind of inspection method of IP address is proposed in the embodiment of the present application, the method can apply to include client kimonos
In the system of business device, BMC is included on the server.Wherein, BMC upon actuation, can be by static mode or dynamical fashion
IP address is obtained, for the mode that BMC obtains IP address is not limited.And, user can be logged in by the management mouth of BMC
The administration interface of BMC, so as to being managed to server and monitoring.In order to log in the administration interface of BMC, user needs to know
The IP address of BMC.
It is shown in Figure 1, it is the flow chart of the inspection method of the IP address proposed in the embodiment of the present application, client can be with
The IP address of BMC is got, and user can check the IP address of BMC by the client.Wherein, the method can apply to
Client, and the method may comprise steps of:
Step 101, obtains the corresponding marks of BMC.Wherein, the mark specifically can be including but not limited to:The MAC ground of BMC
Location, and/or, the title of server.Certainly, the mark can also be that other can uniquely represent the mark of the BMC, and such as assets are compiled
Number etc., this mark is not limited.
In one example, one can be on the server labeled, the label writes the corresponding marks of BMC exactly.User can
To obtain the corresponding marks of BMC from the label, and the corresponding marks of BMC are input on the client, so that client gets
The corresponding marks of BMC.Certainly, above-mentioned simply client gets an example of the corresponding marks of BMC, and client can also lead to
Cross alternate manner and get the corresponding marks of BMC, the acquisition modes identified to this in the embodiment of the present application are not limited.
Step 102, generation includes the ICMP request messages of the corresponding marks of the BMC.Wherein, the mesh of the ICMP request messages
MAC Address be broadcast MAC address, purpose IP address are the network segment broadcast addresses belonging to BMC, and source MAC is client
MAC Address, source IP address is the IP address of client.
In one example, before ICMP request messages are generated, client can first obtain the network segment ground belonging to BMC
Location.In order to be managed to BMC, client is usually located at the same network segment with BMC, when client and BMC are located at same net
Duan Shi, client can be by the network segment address belonging to itself, the network segment address being defined as belonging to BMC.For example, when mask is 24
When, then the network segment address belonging to BMC a example can be 192.168.0.0/24.And, client can be by network segment address
192.168.0.0/24 being converted to corresponding network segment broadcast address 192.168.0.255, specific transfer process is repeated no more.
In one example, the ICMP request messages for generating for client, the target MAC (Media Access Control) address of the ICMP request messages
Can be FFFF-FFFF-FFFF (broadcast MAC address), purpose IP address can be the 192.168.0.255 (network segments belonging to BMC
Broadcast address), source MAC can be the MAC Address 00-01-6C-06-A6-29 of client, and source IP address can be client
IP address 192.168.0.2 at end.
In one example, user passes through mono- IP address 192.168.0.255 of ping on the client, and client can
To generate above-mentioned ICMP request messages.And, in ping IP address 192.168.0.255, can be in the IP address
192.168.0.255 the corresponding marks of input BMC after, so, client is when above-mentioned ICMP request messages are generated, it is possible to
The corresponding marks of BMC are added in ICMP request messages.Wherein, ICMP request messages can include IP heads point and data field
Part, above-mentioned purpose MAC Address, purpose IP address, source MAC and source IP address are respectively positioned on the IP heads of ICMP request messages
Point, and the corresponding marks of BMC may be located at the data field part of ICMP request messages.
Step 103, with broadcast mode ICMP request messages are sent.
In one example, because the target MAC (Media Access Control) address of ICMP request messages is broadcast MAC address, purpose IP address are
Network segment broadcast address belonging to BMC, therefore, each equipment in the affiliated network segments of BMC can receive the ICMP request messages, i.e.,
BMC can receive the ICMP request messages.
In one example, BMC is after the ICMP request messages are received, if the ICMP request messages carry this BMC's
Mark, then to client the first message of transmission, first message carries the IP address and MAC Address of this BMC to BMC.If the ICMP
Request message does not carry the mark (as do not carried mark or carrying the mark of miscellaneous equipment) of this BMC, then BMC is abandoned and is somebody's turn to do
ICMP request messages.
Specifically, BMC first checks in ICMP request messages whether carry this BMC's after ICMP request messages are received
Mark.If do not carried, the ICMP request messages are abandoned.If carried, check that what is carried identifies whether as this BMC's
Mark.If it is not, then abandoning the ICMP request messages.If it is, returning the IP address and MAC Address for carrying this BMC
First message.Wherein, first message can be including but not limited to:ARP request message;Or, ICMP response messages.
In one example, in order to avoid network problem causes client to be not received by the first message, then BMC can send out
Send predetermined number (such as 5) individual first message, to enable the client to receive the first message.
In one example, in order that the IP address and MAC Address of this BMC is arrived in client study, BMC to client sends
The first message source IP address be this BMC IP address 192.168.0.3, source MAC is the MAC Address 00- of this BMC
01-65-09-A6-38.Additionally, IP address 192.168.0.2 of the purpose IP address of the first message for client, purpose MAC ground
Location is FFFF-FFFF-FFFF.
In one example, the ICMP request messages for sending for client, only BMC can return the first message, and its
Its equipment will not return the first message, but directly abandon ICMP request messages.Therefore, the ICMP for sending for client please
Message is sought, substantial amounts of message impact is not resulted in.
Step 104, receives the first message that BMC sends, and first message includes the IP address and MAC Address of BMC.
Step 105, parses the IP address and MAC Address of BMC from first message, and the IP is recorded in ARP table
Address and the corresponding relation of the MAC Address.
In one example, because the target MAC (Media Access Control) address of first message is FFFF-FFFF-FFFF, therefore, client
First message can be received.And, client can also learn the source IP address 192.168.0.3 of first message (i.e.
The IP address of BMC) and source MAC 00-01-65-09-A6-38 (i.e. the MAC Address of BMC), and remember in local ARP table
Record the corresponding relation of IP address 192.168.0.3 and MAC Address 00-01-65-09-A6-38.Further, due to client
The corresponding of IP address 192.168.0.3 of BMC and the MAC Address 00-01-65-09-A6-38 of BMC is have recorded in the ARP table at end
Relation, therefore, user can inquire IP address 192.168.0.3 of BMC from the ARP table.
Make referrals in above process, user can get the corresponding marks of BMC, if the mark includes BMC's
MAC Address 00-01-65-09-A6-38, then user can be using the MAC Address 00-01-65-09-A6-38 of BMC inquiry clients
The ARP table at end, such that it is able to obtain IP address 192.168.0.3 of BMC.If the mark is not including the MAC Address 00-01- of BMC
65-09-A6-38, then can also on the client configure the corresponding relation of the MAC Address of BMC and the mark of BMC, so, user
After getting the corresponding marks of BMC, the MAC Address 00-01-65-09-A6-38 of the corresponding BMC of mark of BMC can be obtained, so
Afterwards by the ARP table of the MAC Address 00-01-65-09-A6-38 inquiring client terminals of BMC, such that it is able to obtain the IP address of BMC
192.168.0.3。
In one example, it is possible that following situation:No static configuration IP address on BMC, and DHCP service
Device is also not BMC dynamic IP address allocations, does not have available IP address so as to cause BMC.For such case, the application reality
In applying example, client can also distribute an IP address for BMC, and in the ICMP request messages that client sends, can be with
Carry the IP address.
So, BMC is being received after the ICMP request messages of client, if the ICMP request messages do not carry this
The mark of BMC, then can directly abandon the ICMP request messages.If ICMP request messages carry the mark of this BMC and one
IP address, then BMC to client send the first message before, can be in a kind of mode using the following two kinds mode at
Reason:
Mode one, BMC first judges whether this BMC has IP address.If it is, abandoning the IP ground that ICMP request messages are carried
Location.If it is not, then judging whether the IP address that ICMP request messages are carried is available IP address.If IP address can be used, then
The IP address that ICMP request messages are carried is set to into the IP address of this BMC.If not available IP address, then abandoning ICMP please
The IP address for asking message to carry.
Whether mode two, no matter this BMC have had IP address, and BMC can directly judge what ICMP request messages were carried
Whether IP address is available IP address.If IP address can be used, then BMC can set the IP address that ICMP request messages are carried
The IP address for being set to this BMC (if this BMC has had IP address, has been replaced using the IP address of ICMP request messages carrying
The IP address that this BMC is being currently used).If not available IP address, then the IP address that ICMP request messages are carried is abandoned.
In one example, a toggle switch can be configured on BMC, if the toggle switch is to open, BMC is adopted
Mode one is processed, if the toggle switch is to close, BMC employing modes two are processed.Or, if the toggle switch
To open, then BMC employing modes two are processed, if the toggle switch is to close, BMC employing modes one are processed.
For mode one and mode two, IP address is carried in ICMP request messages.In one example, please in ICMP
Asking can first carry the mark of BMC in message, then carry the IP address for BMC distribution.In another example, please in ICMP
The IP address that can first carry in message as BMC distribution is sought, the mark of BMC is then carried.Wherein, in the mark and the IP address
Between, one or several spcial characters can also be added, so that BMC distinguishes the mark and the IP ground based on these spcial characters
Location.
For the process of " BMC judges whether the IP address that ICMP request messages are carried is available IP address ", BMC can send out
Gratuitous ARP packet is sent, the purpose IP address of the gratuitous ARP packet are the IP address that ICMP request messages are carried.If the IP address
Used, then will be sent arp response message using the equipment of the IP address, represented that the equipment is currently in use this IP ground
Location.Based on this, if BMC receives arp response message in Preset Time, it is determined that the IP address is not available address.Such as
Fruit BMC does not receive arp response message in Preset Time, it is determined that the IP address is available address.
Based on above-mentioned technical proposal, in the embodiment of the present application, client can by BMC send ICMP request messages,
Triggering BMC sends the first message of the MAC Address and IP address for carrying itself (such as ARP request message or ICMP response reports
Text etc.), and the corresponding relation of the IP address and MAC Address carried in the first message is recorded in the local ARP table of client.This
Sample, user just can check the IP address of BMC from the ARP table of client, and solving user cannot know the IP address of BMC
The IP address of the BMC recorded in problem, and ARP table is the newest IP address of BMC, is not in mistake.
It is shown in Figure 2, it is the flow chart of the inspection method of the IP address proposed in the embodiment of the present application, the method can be with
The BMC of server is applied to, and the method may comprise steps of:
Step 201, receives the ICMP request messages from client.
Step 202, judges whether the ICMP request messages carry the mark of this BMC.
If it is, execution step 203;If it is not, then execution step 204.
Step 203, the first message for carrying the IP address with MAC Address of this BMC is sent to client, so that client exists
The corresponding relation of the IP address and the MAC Address is recorded in ARP table.
Step 204, abandons the ICMP request messages.
In one example, the mark is specially:MAC Address, and/or, the title of server;ICMP request messages
Target MAC (Media Access Control) address is broadcast MAC address, and purpose IP address are the network segment broadcast addresses belonging to BMC, and source MAC is client
MAC Address, source IP address is the IP address of client;First message is specially:ARP request message;Or, ICMP response reports
Text.
In one example, if ICMP request messages carry the mark and an IP address of BMC, sending out to client
Before sending the first message for carrying the IP address with MAC Address of BMC:
Can also judge whether BMC has IP address;If it is, abandoning the IP address that ICMP request messages are carried;If not,
Judge whether the IP address that ICMP request messages are carried is available IP address;If it is, the IP ground that ICMP request messages are carried
Location is set to the IP address of BMC.Or,
Directly judge whether the IP address that ICMP request messages are carried is available IP address;If it is, ICMP requests are reported
The IP address that text is carried is set to the IP address of BMC.
Based on above-mentioned technical proposal, in the embodiment of the present application, client can by BMC send ICMP request messages,
Triggering BMC sends the first message of the MAC Address and IP address for carrying itself (such as ARP request message or ICMP response reports
Text etc.), and the corresponding relation of the IP address and MAC Address carried in the first message is recorded in the local ARP table of client.This
Sample, user just can check the IP address of BMC from the ARP table of client, and solving user cannot know the IP address of BMC
The IP address of the BMC recorded in problem, and ARP table is the newest IP address of BMC, is not in mistake.
Conceived based on the application same with said method, a kind of IP address is additionally provided in the embodiment of the present application checks dress
Put, the checking device application of the IP address is on the client.The checking device of the IP address can be realized by software, it is also possible to
Realized by way of hardware or software and hardware combining.It is logical as the device on a logical meaning as a example by implemented in software
The processor of the client at its place is crossed, corresponding computer program instructions are formed in reading non-volatile storage.From hard
For part aspect, as shown in figure 3, a kind of hardware configuration of the client at the checking device place of the IP address proposed for the application
Figure, in addition to the processor shown in Fig. 3, nonvolatile memory, client can also include other hardware, such as be responsible for processing report
Forwarding chip, network interface, internal memory of text etc.;For from hardware configuration, the client is also possible to be distributed apparatus, may
Including multiple interface cards, to carry out the extension of Message processing in hardware view.
As shown in figure 4, the structure chart of the checking device of the IP address proposed for the application, the device includes:
Acquisition module 11, for obtaining the corresponding marks of BMC;
Generation module 12, for generating the ICMP request messages for including the mark;
Sending module 13, for sending the ICMP request messages with broadcast mode;
Receiver module 14, for receiving the first message that the BMC sends, first message is that the BMC determines certainly
Carry what is sent after the mark of the BMC in the ICMP request messages that body is received, first message includes the IP of the BMC
Address and medium access control MAC Address;
Processing module 15, for parsing the IP address and MAC Address of the BMC from first message, and in ARP
The corresponding relation of the IP address and MAC Address is recorded in table.
The mark that the acquisition module 11 is obtained is specially:MAC Address, and/or, the title of BMC places server;
The target MAC (Media Access Control) address of the ICMP request messages that the generation module 12 is generated is broadcast MAC address, and purpose IP address are described
Network segment broadcast address belonging to BMC, source MAC is the MAC Address of the client, and source IP address is the IP of the client
Address;The first message that the receiver module 14 is received is specially:ARP request message;Or, ICMP responses
Message.
In one example, the generation module 12, be additionally operable to generate include the mark ICMP request messages it
Before, it is that the BMC distributes an IP address;When the ICMP request messages are generated, the IP address of distribution is added to described
In ICMP request messages;So that the BMC is when it is determined that the IP address of the distribution is to can use IP address, by the IP address of the distribution
It is set to the IP address of the BMC.
Wherein, the modules of the application device can be integrated in one, it is also possible to be deployed separately.Above-mentioned module can be closed
And for a module, it is also possible to it is further split into multiple submodule.
Conceived based on the application same with said method, a kind of IP address is additionally provided in the embodiment of the present application checks dress
Put, the checking device of the IP address is applied on the BMC of server.The checking device of the IP address can be realized by software,
Can also be realized by way of hardware or software and hardware combining.As a example by implemented in software, as the dress on a logical meaning
Put, be the processor by its BMC being located, corresponding computer program instructions are formed in reading non-volatile storage.
From for hardware view, as shown in figure 5, a kind of hardware knot of the BMC at the checking device place of the IP address proposed for the application
Composition, in addition to the processor shown in Fig. 5, nonvolatile memory, BMC can also include other hardware, such as be responsible for processing report
Forwarding chip, network interface, internal memory of text etc.;For from hardware configuration, the BMC is also possible to be distributed apparatus, may bag
Multiple interface cards are included, to carry out the extension of Message processing in hardware view.
As shown in fig. 6, the structure chart of the checking device of the IP address proposed for the application, the device includes:
Receiver module 21, for receiving the ICMP request messages from client;
Sending module 22, during for the mark that the BMC is carried when the ICMP request messages, then sends out to the client
The first message for carrying the IP address Yu MAC Address of the BMC is sent, so that the client records the IP ground in ARP table
The corresponding relation of location and the MAC Address;
Processing module 23, for when the ICMP request messages do not carry the mark of the BMC, then abandoning the ICMP
Request message.
The target MAC (Media Access Control) address of the ICMP request messages that the receiver module 21 is received is broadcast MAC address, purpose IP address
It is the network segment broadcast address belonging to the BMC, source MAC is the MAC Address of the client, and source IP address is the client
The IP address at end;The mark carried in the ICMP request messages that the receiver module 21 is received is specially:MAC Address, and/or,
The title of the server;The first message that the sending module 22 sends is specially ARP request message;Or, ICMP responses
Message.
The processing module 23, is additionally operable to when the ICMP request messages carry the mark of the BMC and an IP ground
During location, judge whether the BMC has IP address;If it is, abandoning the IP address that the ICMP request messages are carried;If not,
Judge whether the IP address that the ICMP request messages are carried is available IP address;If it is, the ICMP request messages are taken
The IP address of band is set to the IP address of the BMC;Or, judging whether IP address that the ICMP request messages carry is can
Use IP address;If it is, the IP address that the ICMP request messages are carried is set to into the IP address of the BMC.
Wherein, the modules of the application device can be integrated in one, it is also possible to be deployed separately.Above-mentioned module can be closed
And for a module, it is also possible to it is further split into multiple submodule.
Through the above description of the embodiments, those skilled in the art can be understood that the application can be by
Software adds the mode of required general hardware platform to realize, naturally it is also possible to which by hardware, but in many cases the former is more
Good embodiment.Based on such understanding, what the technical scheme of the application substantially contributed in other words to prior art
Part can be embodied in the form of software product, and the computer software product is stored in a storage medium, if including
Dry instruction is used so that a computer equipment (can be personal computer, server, or network equipment etc.) performs this Shen
Method that please be described in each embodiment.It will be appreciated by those skilled in the art that accompanying drawing is the schematic diagram of a preferred embodiment,
Module or flow process in accompanying drawing is not necessarily implemented necessary to the application.
It will be appreciated by those skilled in the art that the module in the device in embodiment can be carried out point according to embodiment description
In being distributed in the device of embodiment, it is also possible to carry out respective change and be disposed other than in one or more devices of the present embodiment.On
Stating the module of embodiment can merge into a module, can also be further split into multiple submodule.Above-mentioned the embodiment of the present application
Sequence number is for illustration only, does not represent the quality of embodiment.
Disclosed above is only several specific embodiments of the application, but, the application is not limited to this, any ability
What the technical staff in domain can think change should all fall into the protection domain of the application.
Claims (12)
1. a kind of inspection method of IP address, is applied to client, it is characterised in that methods described includes:
Obtain the corresponding marks of baseboard management controller BMC;
Generation includes the ICMP ICMP request messages of the mark;
The ICMP request messages are sent with broadcast mode;
The first message that the BMC sends is received, first message is that the BMC determines the ICMP request reports for itself receiving
Carry what is sent after the mark of the BMC in text, first message includes the IP address of the BMC and medium access control
MAC Address;
The IP address and MAC Address of the BMC are parsed from first message, and the IP address is recorded in ARP table
With the corresponding relation of the MAC Address.
2. method according to claim 1, it is characterised in that the mark is specially:MAC Address, and/or, the BMC
The title of place server;The target MAC (Media Access Control) address of the ICMP request messages is broadcast MAC address, and purpose IP address are described
Network segment broadcast address belonging to BMC, source MAC is the MAC Address of the client, and source IP address is the IP of the client
Address;First message is specially:ARP request message;Or, ICMP response messages.
3. method according to claim 1, it is characterised in that methods described is further included:
It is that the BMC distributes an IP address before ICMP request messages are generated;
The IP address of distribution is also carried in the ICMP request messages;So that the BMC is it is determined that the IP address of the distribution is can
When using IP address, the IP address of the distribution is set to into the IP address of the BMC.
4. a kind of inspection method of IP address, is applied to the baseboard management controller BMC of server, it is characterised in that the side
Method includes:
Receive the ICMP ICMP request messages from client;
If the ICMP request messages carry the mark of the BMC, the IP address for carrying the BMC is sent to the client
With the first message of medium access control MAC Address so that the client record in ARP table the IP address with it is described
The corresponding relation of MAC Address;
If the ICMP request messages do not carry the mark of the BMC, the ICMP request messages are abandoned.
5. method according to claim 4, it is characterised in that the mark is specially:MAC Address, and/or, the clothes
The title of business device;The target MAC (Media Access Control) address of the ICMP request messages is broadcast MAC address, and purpose IP address are belonging to the BMC
Network segment broadcast address, source MAC is the MAC Address of the client, and source IP address is the IP address of the client;Institute
State the first message to be specially:ARP request message;Or, ICMP response messages.
6. method according to claim 4, it is characterised in that if the ICMP request messages carry the mark of the BMC
And an IP address, then send to the client IP address and MAC Address for carrying the BMC the first message it
Before, methods described is further included:
Judge whether the BMC has IP address;If it is, abandoning the IP address that the ICMP request messages are carried;If not, sentencing
Whether the IP address that the disconnected ICMP request messages are carried is available IP address;If it is, the ICMP request messages are carried
IP address be set to the IP address of the BMC;
Or, directly judge whether the IP address that the ICMP request messages are carried is available IP address;If it is, will be described
The IP address that ICMP request messages are carried is set to the IP address of the BMC.
7. a kind of checking device of IP address, is applied to client, it is characterised in that described device includes:
Acquisition module, for obtaining the corresponding marks of baseboard management controller BMC;
Generation module, for generating the ICMP ICMP request messages for including the mark;
Sending module, for sending the ICMP request messages with broadcast mode;
Receiver module, for receiving the first message that the BMC sends, first message is that the BMC determines that itself is received
To ICMP request messages in carry what is sent after the mark of the BMC, first message include the IP address of the BMC with
Medium access control MAC Address;
Processing module, for parsing the IP address and MAC Address of the BMC from first message, and remembers in ARP table
Record the corresponding relation of the IP address and MAC Address.
8. device according to claim 7, it is characterised in that
The mark that the acquisition module is obtained is specially:MAC Address, and/or, the title of BMC places server;The life
The target MAC (Media Access Control) address of the ICMP request messages generated into module is broadcast MAC address, and purpose IP address are belonging to the BMC
Network segment broadcast address, source MAC is the MAC Address of the client, and source IP address is the IP address of the client;It is described
The first message that receiver module is received is specially:ARP request message;Or, ICMP response messages.
9. device according to claim 7, it is characterised in that
The generation module, was additionally operable to before the ICMP request messages for including the mark are generated, and was that the BMC distributes one
IP address;When the ICMP request messages are generated, the IP address of distribution is added in the ICMP request messages;So that institute
BMC is stated when it is determined that the IP address of the distribution is to can use IP address, the IP address of the distribution is set to into the IP ground of the BMC
Location.
10. a kind of checking device of IP address, is applied to the baseboard management controller BMC of server, it is characterised in that the dress
Put and specifically include:
Receiver module, for receiving the ICMP ICMP request messages from client;
Sending module, during for the mark that the BMC is carried when the ICMP request messages, then sends to the client and carries
The IP address of the BMC and the first message of medium access control MAC Address, so that the client records institute in ARP table
State the corresponding relation of IP address and the MAC Address;
Processing module, for when the ICMP request messages do not carry the mark of the BMC, then abandoning the ICMP requests report
Text.
11. devices according to claim 10, it is characterised in that the mesh of the ICMP request messages that the receiver module is received
MAC Address be broadcast MAC address, purpose IP address are the network segment broadcast addresses belonging to the BMC, and source MAC is described
The MAC Address of client, source IP address is the IP address of the client;In the ICMP request messages that the receiver module is received
The mark of carrying is specially:MAC Address, and/or, the title of the server;The first message tool that the sending module sends
Body is:ARP request message;Or, ICMP response messages.
12. devices according to claim 10, it is characterised in that
The processing module, is additionally operable to, when the ICMP request messages carry the mark and an IP address of the BMC, sentence
Whether the BMC that breaks has IP address;If it is, abandoning the IP address that the ICMP request messages are carried;If not, judging described
Whether the IP address that ICMP request messages are carried is available IP address;If it is, the IP ground that the ICMP request messages are carried
Location is set to the IP address of the BMC;Or, judge whether the IP address that the ICMP request messages are carried is IP available ground
Location;If it is, the IP address that the ICMP request messages are carried is set to into the IP address of the BMC.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201611052358.4A CN106657434B (en) | 2016-11-24 | 2016-11-24 | method and device for checking IP address |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201611052358.4A CN106657434B (en) | 2016-11-24 | 2016-11-24 | method and device for checking IP address |
Publications (2)
Publication Number | Publication Date |
---|---|
CN106657434A true CN106657434A (en) | 2017-05-10 |
CN106657434B CN106657434B (en) | 2019-12-06 |
Family
ID=58812741
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201611052358.4A Active CN106657434B (en) | 2016-11-24 | 2016-11-24 | method and device for checking IP address |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN106657434B (en) |
Cited By (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108241309A (en) * | 2018-01-10 | 2018-07-03 | 联想(北京)有限公司 | Management control method and system |
CN110868479A (en) * | 2018-08-27 | 2020-03-06 | 北京淳中科技股份有限公司 | Equipment addressing method, device and system |
CN111181787A (en) * | 2019-12-30 | 2020-05-19 | 浪潮电子信息产业股份有限公司 | BMC parameter configuration method, device, equipment and medium |
CN112804377A (en) * | 2021-04-08 | 2021-05-14 | 紫光恒越技术有限公司 | Data query method, electronic equipment, server, storage equipment and gateway equipment |
CN113206829A (en) * | 2021-03-30 | 2021-08-03 | 新华三云计算技术有限公司 | Address information analysis device |
CN114629816A (en) * | 2022-03-14 | 2022-06-14 | 京东科技信息技术有限公司 | Method and system for detecting public network IP network state |
Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US6975597B1 (en) * | 2000-02-11 | 2005-12-13 | Avaya Technology Corp. | Automated link variant determination and protocol configuration for customer premises equipment and other network devices |
CN1914857A (en) * | 2004-03-10 | 2007-02-14 | 松下电器产业株式会社 | Access control system, access control device used for the same, and resource providing device |
CN102075591A (en) * | 2010-12-21 | 2011-05-25 | 华为技术有限公司 | Method, device and system for acquiring media access control address |
CN103516817A (en) * | 2012-06-20 | 2014-01-15 | 鸿富锦精密工业(深圳)有限公司 | Server positioning method and system |
CN103516599A (en) * | 2012-06-15 | 2014-01-15 | 华为技术有限公司 | Host finding method, network device, and host |
CN104301451A (en) * | 2014-10-17 | 2015-01-21 | 福建星网锐捷网络有限公司 | Cross-network-segment host communication method, device and system |
CN104994077A (en) * | 2015-06-08 | 2015-10-21 | 北京奇虎科技有限公司 | Wireless local area network access equipment identity marking method and device |
-
2016
- 2016-11-24 CN CN201611052358.4A patent/CN106657434B/en active Active
Patent Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US6975597B1 (en) * | 2000-02-11 | 2005-12-13 | Avaya Technology Corp. | Automated link variant determination and protocol configuration for customer premises equipment and other network devices |
CN1914857A (en) * | 2004-03-10 | 2007-02-14 | 松下电器产业株式会社 | Access control system, access control device used for the same, and resource providing device |
CN102075591A (en) * | 2010-12-21 | 2011-05-25 | 华为技术有限公司 | Method, device and system for acquiring media access control address |
CN103516599A (en) * | 2012-06-15 | 2014-01-15 | 华为技术有限公司 | Host finding method, network device, and host |
CN103516817A (en) * | 2012-06-20 | 2014-01-15 | 鸿富锦精密工业(深圳)有限公司 | Server positioning method and system |
CN104301451A (en) * | 2014-10-17 | 2015-01-21 | 福建星网锐捷网络有限公司 | Cross-network-segment host communication method, device and system |
CN104994077A (en) * | 2015-06-08 | 2015-10-21 | 北京奇虎科技有限公司 | Wireless local area network access equipment identity marking method and device |
Cited By (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108241309A (en) * | 2018-01-10 | 2018-07-03 | 联想(北京)有限公司 | Management control method and system |
CN108241309B (en) * | 2018-01-10 | 2021-02-19 | 联想(北京)有限公司 | Management control method and system |
CN110868479A (en) * | 2018-08-27 | 2020-03-06 | 北京淳中科技股份有限公司 | Equipment addressing method, device and system |
CN111181787A (en) * | 2019-12-30 | 2020-05-19 | 浪潮电子信息产业股份有限公司 | BMC parameter configuration method, device, equipment and medium |
CN111181787B (en) * | 2019-12-30 | 2023-10-13 | 浪潮电子信息产业股份有限公司 | BMC parameter configuration method, device, equipment and medium |
CN113206829A (en) * | 2021-03-30 | 2021-08-03 | 新华三云计算技术有限公司 | Address information analysis device |
CN112804377A (en) * | 2021-04-08 | 2021-05-14 | 紫光恒越技术有限公司 | Data query method, electronic equipment, server, storage equipment and gateway equipment |
CN114629816A (en) * | 2022-03-14 | 2022-06-14 | 京东科技信息技术有限公司 | Method and system for detecting public network IP network state |
Also Published As
Publication number | Publication date |
---|---|
CN106657434B (en) | 2019-12-06 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN106657434A (en) | Method and device for checking IP address | |
US8832238B2 (en) | Recording stateless IP addresses | |
CN104380693B (en) | System and method for dynamic routing in the cluster | |
CN107733799B (en) | Message transmission method and device | |
CN104219340B (en) | A kind of arp reply Proxy Method and device | |
CN108243106A (en) | Control method, forwarding unit, control device and the communication system of network slice | |
CN106412142B (en) | Resource equipment address obtaining method and device | |
US20180295029A1 (en) | Managing groups of servers | |
CN101616029B (en) | Method and system for realizing network topology discovery | |
WO2017161965A1 (en) | Method, device, and system for dynamic domain name system (dns) redirection | |
CN106878181A (en) | A kind of message transmitting method and device | |
CN106453681A (en) | IP address allocation method and device | |
CN109379291A (en) | The processing method and processing device of service request in a kind of networking | |
CN109379241A (en) | A kind of routing information determines method and device | |
CN107623757A (en) | Entry updating method and apparatus | |
CN107547346A (en) | A kind of message transmitting method and device | |
CN107770010A (en) | A kind of home intranet method and home networking system based on OpenFlow | |
CN112367257A (en) | Route notification method and device | |
CN102201963A (en) | Media access control-forced forwarding method and functional unit | |
CN104092751B (en) | A kind of Operational Visit method and apparatus | |
CN108234358A (en) | A kind of multicast message transmission method, device and machine readable storage medium | |
CN112751806B (en) | Arranging method, system, device and storage medium for security policy configuration | |
CN106375489B (en) | Method and device for processing Media Access Control (MAC) address | |
CN107547674A (en) | Address distribution method and device | |
CN108259350A (en) | A kind of message transmitting method, device and machine readable storage medium |
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 | ||
CB02 | Change of applicant information |
Address after: 310052 11th Floor, 466 Changhe Road, Binjiang District, Hangzhou City, Zhejiang Province Applicant after: Xinhua Sanxin Information Technology Co., Ltd. Address before: 310052 11th Floor, 466 Changhe Road, Binjiang District, Hangzhou City, Zhejiang Province Applicant before: Huashan Information Technology Co., Ltd. |
|
CB02 | Change of applicant information | ||
GR01 | Patent grant | ||
GR01 | Patent grant |