CN109618021A - Modify the method and girff of IP address - Google Patents

Modify the method and girff of IP address Download PDF

Info

Publication number
CN109618021A
CN109618021A CN201811616584.XA CN201811616584A CN109618021A CN 109618021 A CN109618021 A CN 109618021A CN 201811616584 A CN201811616584 A CN 201811616584A CN 109618021 A CN109618021 A CN 109618021A
Authority
CN
China
Prior art keywords
address
girff
cascade
modification
lldp 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
Application number
CN201811616584.XA
Other languages
Chinese (zh)
Other versions
CN109618021B (en
Inventor
楼民鸿
于强
程振
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
New H3C Technologies Co Ltd
Original Assignee
New H3C Technologies Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by New H3C Technologies Co Ltd filed Critical New H3C Technologies Co Ltd
Priority to CN201811616584.XA priority Critical patent/CN109618021B/en
Publication of CN109618021A publication Critical patent/CN109618021A/en
Application granted granted Critical
Publication of CN109618021B publication Critical patent/CN109618021B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L61/00Network arrangements, protocols or services for addressing or naming
    • H04L61/50Address allocation
    • H04L61/5046Resolving address allocation conflicts; Testing of addresses
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Small-Scale Networks (AREA)

Abstract

The embodiment of the present disclosure proposes a kind of method and girff for modifying IP address, is related to field of communication technology.Girff cascade system joins the state that girff detects the secondary cascade girff that IP address clashes by main, send the secondary cascade girff that the first LLDP message of notice modification IP address is clashed to IP address, the secondary cascade girff that IP address clashes can be according to the result of the IP address confirmation modification IP address for the secondary cascade girff that the IP address and IP address of the notice modification of the first LLDP message clash, and the 2nd LLDP message for modifying IP address result is joined into girff response to main, so as to solve to need in the prior art by manually checking, the technical issues of management board of the secondary cascade girff that each IP address clashes removes manual modification is successively logged in using serial ports, enhance the reliability of girff cascade system networking, human cost is greatly saved, improve work Efficiency.

Description

Modify the method and girff of IP address
Technical field
This disclosure relates to field of communication technology, in particular to a kind of method and girff for modifying IP address.
Background technique
Currently, cascading the cascade port of girff server in girff cascade network scheme by upper layer and lower layer cascading girff The management mouth of server is connected to form a cascade channel, and all cascaded messages are forwarded by the cascade channel, current Girff cascade network scheme in, can be realized and check the girff and all cascade girff information on any girff management board, To which network administration cost, streamlining management operation be effectively reduced.
After girff cascade network, if misoperation, it can also cause a series of problems.Wherein, each in girff cascade network The IP address of girff management board has conflict, then is the most common phenomenon, when the phenomenon occurs, will there is following problem:
First, between secondary girff when the IP address conflict of management board, the administration page of operator case is logged in, leads to not visit Ask the administration page of the two secondary girffs;
Second, when the IP address for case of operating conflicts with secondary girff, the administration page of operator case can not be logged in.
When the above problem occurs, presently most used method is to need to pass through string by accessing serial ports on girff Mouth tool connects the serial ports of each girff main management plate, checks to the IP address for having conflict, conflicts having determined in network environment IP address after, manual modification has the IP address of conflict, has verified whether address finally by the interface OM or other modes are logged in Conflict.
But the above method and growing network demand are runed counter to, in large-scale girff cascade network environment Under, it checks manually, heavy workload not only expends a large amount of manpowers and inefficiency, is also unfavorable for timely and effectively solving the problems, such as, from And the reliability of girff cascade system networking is not can guarantee.
Summary of the invention
The embodiment of the present disclosure is designed to provide a kind of method and girff for modifying IP address, existing for solving to need By manually checking in technology, the management board for the secondary cascade girff that each IP address clashes successively is logged in using serial ports The technical issues of removing manual modification.
To achieve the goals above, the embodiment of the present disclosure the technical solution adopted is as follows:
In a first aspect, the embodiment of the present disclosure proposes a kind of method for modifying IP address, time applied to girff cascade system Cascading girff, the girff cascade system includes cascade main connection girff and at least one cascade girff, this method comprises:
Receive the first Link Layer Discovery Protocol that main connection girff is sent according to the cascade connection of the girff cascade system LLDP message, wherein the first LLDP message carries the media access control for the secondary cascade girff that IP address clashes The information of MAC Address, the IP address of notice modification and request modification IP address mark;
It whether is what IP address clashed according to current cascade girff of the MAC Address of the first LLDP message confirmation Secondary cascade girff;
If confirmation is the secondary cascade girff that IP address clashes, according to notice modification in the first LLDP message IP address confirmation modification IP address is sent as a result, joining girff to the main according to the cascade connection of the girff cascade system The 2nd LLDP message, wherein the 2nd LLDP message is with carrying the MAC for the secondary cascade girff that IP address clashes Location, modification IP address result and the information for responding modification IP address mark, so that the main joins girff according to described second Whether the MAC Address and response modification IP address identity validation of LLDP message need the state of OPT-OUT NOTICE modification IP address.
As described above, whether being IP address according to current cascade girff of the MAC Address of the first LLDP message confirmation After the step of secondary cascade girff clashed, further includes:
If confirmation is inconsistent, the first LLDP message is sent to according to the cascade connection of the girff cascade system The secondary cascade girff that IP address clashes.
As described above, if confirmation is the secondary cascade girff that IP address clashes, according in the first LLDP message The IP address confirmation modification IP address of notice modification as a result, according to the cascade connection of the girff cascade system to the main Join the step of girff sends the 2nd LLDP message, comprising: judge according to the IP address of the notice modification of the first LLDP message It is whether consistent with the IP address of secondary cascade girff that IP address clashes;
If judgement is inconsistent, the result success of IP address is modified;
The 2nd LLDP message is sent to main connection girff according to the cascade connection of the girff cascade system, wherein The 2nd LLDP message carries the MAC Address for the secondary cascade girff that IP address clashes, modifies IP address result and return The information of IP address mark should be modified.
As described above, judging whether to rush with IP address according to the IP address of the notice modification of the first LLDP message After the consistent step of the IP address of prominent secondary cascade girff, further includes:
If judgement is consistent, continues to judge whether secondary cascade girff that IP address clashes is in and modifying IP address State;
If the result for modifying IP address is that IP address is being modified in the state modified;
If being not on the state modified, carry out the modification of IP address, determine it is modified the result is that success or Person's failure;
The 2nd LLDP message is sent to main connection girff according to the cascade connection of the girff cascade system, wherein The 2nd LLDP message carries the MAC Address for the secondary cascade girff that IP address clashes, IP address is being modified/modified The result of success/modification failure and the information for responding modification IP address mark.
As described above, the modification for carrying out IP address, determines modified the result is that the step of succeeding or failing, packet It includes:
The IP address for choosing the secondary cascade girff clashed with IP address is in the IP address of same network segment;
Whether detection can be used in the IP address of same network segment;
If it is available, then setting modified IP address for the IP address in same network segment;
Correspondingly, the result success of modification IP address is determined;
If the IP address part in same network segment is unavailable, continue to randomly select the available IP address in same network segment It is set as modified IP address;
Correspondingly, the result success of modification IP address is determined;
If the IP address in same network segment is unavailable;
Correspondingly, the result failure of modification IP address is determined.
As described above, the cascade connection according to the girff cascade system sends second to main connection girff The step of LLDP message, comprising:
Confirmation cascades cascade other the cascade girff of girff according to the cascade connection of girff cascade system and current time;
The 2nd LLDP message is sent to other cascade girff, so that other cascade girff is according to described second The MAC Address of LLDP message and the state of response modification IP address identity validation OPT-OUT NOTICE modification IP address continue institute The 2nd LLDP message is stated to send until main joins girff.
Second aspect of the embodiment of the present invention provides a kind of method for modifying IP address, the main applied to girff management system Joining girff, the girff cascade system includes cascade main connection girff and at least one cascade girff, this method comprises:
Whether the IP address that detection main connection girff cascades girff with each time, which has, conflicts;
In the presence of confirmation has the secondary cascade girff of IP address conflict, into the state of modification IP address, according to the girff The secondary cascade girff that the cascade connection of cascade system is clashed to IP address sends the first Link Layer Discovery Protocol LLDP message, Wherein, the first LLDP message carries the MAC address for the secondary cascade girff that IP address clashes, leads to Know the IP address of modification and the information of request modification IP address mark;
Cascade connection of the secondary cascade girff that reception IP address clashes according to the girff cascade system, the root of transmission The 2nd LLDP message responded according to the first LLDP message, wherein the 2nd LLDP message carries IP address and rushes MAC Address, modification IP address result and the information for responding modification IP address mark of prominent secondary cascade girff;
According to the MAC Address of the 2nd LLDP message and respond whether modification IP address identity validation needs OPT-OUT NOTICE Modify the state of IP address.
As described above, the secondary cascade knife that the cascade connection according to the girff cascade system is clashed to IP address Case sends the step of the first Link Layer Discovery Protocol LLDP message, comprising:
Cascade connection confirmation and main connection girff directly cascade cascade girff according to girff cascade system;
The first LLDP message is sent to the directly cascade cascade girff, so that the directly cascade secondary Join girff according to the MAC Address of the first LLDP message, the letter of the IP address of notice modification and request modification IP address mark Breath confirmation modification IP address continues the first LLDP message being sent to the secondary cascade girff that IP address clashes.
As described above, the modification IP address result includes:
IP address is being modified, IP address success is being modified, modifies any one result in IP address failure.
As described above, the step of state for entering notice modification IP address, comprising:
Request modification IP address mark is generated, time that the request modification IP address mark is clashed with IP address is established Cascade the corresponding relationship of the MAC Address of girff.
As described above, the MAC Address according to the 2nd LLDP message and response modification IP address identity validation are The step of no state for needing OPT-OUT NOTICE modification IP address, comprising:
According to the mark of the MAC Address of the 2nd LLDP message and response modification IP address, with established corresponding relationship Request modification IP address mark be compared with MAC Address;
If comparing consistent, the state of OPT-OUT NOTICE modification IP address;
If comparison is inconsistent, after a time out, OPT-OUT NOTICE modifies the state of IP address, and deletes time clashed Cascade the corresponding relationship between the MAC Address of girff and request modification IP address mark.
As described above, it is described detection main connection girff with each time cascade girff IP address whether have the step of conflicting it Before, the method also includes:
Determine that the main connection girff is not at the state of notice modification IP address.
The third aspect of the embodiment of the present invention provides a kind of girff, described applied to the secondary cascade girff of girff cascade system Girff includes: processor, memory and bus, and the memory is stored with the executable machine readable instructions of the processor, When electronic equipment operation, by bus communication between the processor and the memory, the processor executes the machine The step of device readable instruction, the method for modification IP address to execute first aspect as described above.
Fourth aspect of the embodiment of the present invention provides a kind of girff, and the main applied to girff cascade system joins girff, described Girff includes: processor, memory and bus, and the memory is stored with the executable machine readable instructions of the processor, When electronic equipment operation, by bus communication between the processor and the memory, the processor executes the machine The step of device readable instruction, the method for modification IP address to execute second aspect as described above.
The 5th aspect of the embodiment of the present invention provides a kind of computer readable storage medium, is stored thereon with computer program, When the computer program is read out by the processor and runs, realizing the modification IP as described in first aspect as above and second aspect The step of method of location.
Compared with the prior art, the embodiment of the present disclosure has the advantages that
In conclusion girff cascade system joins the state for the secondary cascade girff that girff detection clashes, hair by main The secondary cascade girff for sending the first LLDP message of notice modification IP address to clash to IP address, time that IP address clashes Cascade girff can be according to the secondary cascade girff that the IP address and IP address of the notice modification of the first LLDP message clash IP address confirmation modification IP address as a result, and by modify IP address result the 2nd LLDP message response to main join girff, So as to solve to need successively to log in each secondary clashed using serial ports by manually checking in the prior art The technical issues of management board of connection girff removes manual modification, enhances the reliability of girff cascade system networking, is greatly saved Human cost improves work efficiency.
Other feature and advantage of the disclosure will be illustrated in subsequent specification, also, partly be become from specification It is clear that by implementing embodiment of the present disclosure understanding.The purpose of the disclosure and other advantages can be by written theorys Specifically noted structure is achieved and obtained in bright book, claims and attached drawing.
Detailed description of the invention
It, below will be to needed in the embodiment attached in order to illustrate more clearly of the technical solution of the embodiment of the present disclosure Figure is briefly described, it should be understood that the following drawings illustrates only some embodiments of the disclosure, therefore is not construed as pair The restriction of range for those of ordinary skill in the art without creative efforts, can also be according to this A little attached drawings obtain other relevant attached drawings.
Fig. 1 shows the functional schematic of girff cascade system provided by the embodiment of the present disclosure;
Fig. 2 shows the transmission flow schematic diagrames of girff cascade system cascade information provided by the embodiment of the present disclosure;
Fig. 3 shows the schematic diagram of the LLDP message of Ethernet II format provided by the embodiment of the present disclosure;
Fig. 4 shows the schematic diagram of the encapsulation format of LLDPDU provided by the embodiment of the present disclosure;
Fig. 5 shows the flow diagram of the method for the connection girff modification IP address of main provided by the embodiment of the present disclosure;
Fig. 6 shows the encapsulation format schematic diagram of the LLDPDU of notice modification IP address provided by the embodiment of the present disclosure;
Fig. 7 shows ChangeIP TLV field schematic diagram provided by the embodiment of the present disclosure;
Fig. 8 shows the flow diagram of the method for time cascade girff modification IP address provided by the embodiment of the present disclosure;
Fig. 9 shows the flow diagram of the modification IP address of girff cascade system provided by the embodiment of the present disclosure;
Figure 10 shows a kind of electronic equipment structural schematic diagram provided by the embodiment of the present disclosure;
Figure 11 shows another kind electronic devices structure schematic diagram provided by the embodiment of the present disclosure.
Specific embodiment
Below in conjunction with attached drawing in the embodiment of the present disclosure, the technical solution in the embodiment of the present disclosure is carried out clear, complete Ground description, it is clear that described embodiment is only disclosure a part of the embodiment, instead of all the embodiments.Usually exist The component of the embodiment of the present disclosure described and illustrated in attached drawing can be arranged and be designed with a variety of different configurations herein.Cause This, is not intended to limit the model of the claimed disclosure to the detailed description of the embodiment of the present disclosure provided in the accompanying drawings below It encloses, but is merely representative of the selected embodiment of the disclosure.Based on embodiment of the disclosure, those skilled in the art are not being made Every other embodiment obtained under the premise of creative work belongs to the range of disclosure protection.
It should also be noted that similar label and letter indicate similar terms in following attached drawing, therefore, once a certain Xiang Yi It is defined in a attached drawing, does not then need that it is further defined and explained in subsequent attached drawing.Meanwhile in the disclosure In description, term " first ", " second " etc. are only used for distinguishing description, are not understood to indicate or imply relative importance.
The following each embodiments of the disclosure can be applied in girff cascade system as shown in Figure 1, as shown in Figure 1, the knife Case cascade system includes main connection girff and n cascade girffs, as main joins girff 1, the secondary secondary cascade knife of cascade girff 2 ... Case n etc., (it is positive integer that n, which is more than or equal to 1, n).Main joins the cascaded message of girff and n cascade girff independent maintenances itself, Main connection girff and time cascade girff can receive the cascaded message that next level cascade girff is sent by downlink cascade port 3, and Current layer cascaded message is uploaded to management equipment by uplink management mouth 4 or a upper level cascades girff.Main joins girff As long as the cascaded message and transmission process with secondary cascade girff are as shown in Fig. 2, user accesses corresponding main using management equipment Join the cascade system of girff and time cascade girff, any one girff in girff and time cascade girff can be joined by access main Management board address, access main connection girff and time cascade girff and its all cascade girffs of lower layer.For example, user passes through The uplink management mouth 4 that main joins girff accesses the girff cascade system, and girff and time cascade girff can be joined by access main In any one girff management board address, access main connection girff and time cascade girff in any one girff and its institute, lower layer There is cascade cascade girff.
Main connection girff and time cascade girff are provided with management board, and management board is management module, and effect is management institute There is hardware device, user can realize following management function by management board: each portion of monitoring main connection girff and time cascade girff Part state collects each component warning information and reports network management, offer main connection girff and secondary cascade girff inner blade server Remote switch/reset/power-on and power-off management, log recording and the user management for inquiring this layer of girff.At the same time it can also realize blade The stateless calculating of server, virtual media, SOL (Seral Over Lan, the serial data transmission based on LAN), unified liter The management functions such as each component of grade, configuration recovery, greatly facilitate operation, monitoring and O&M of the user to equipment, improve work effect Rate.
In view of cascade port is independently disposed in front panel by existing girff, it is arranged independently of management board, occupies treasured Expensive girff inner space so that management board space placed side by side is compressed therewith, reduce girff be capable of providing it is external The quantity of port.Uplink management mouth 4 and downlink cascade port 3 are set on the management board inside girff by the embodiment of the present disclosure.? In one optional embodiment, as shown in Figure 1, management board includes main management plate interconnected and standby management board, main management plate and Standby management board is respectively arranged with a uplink cascade port and a down management mouth.
Uplink cascade port and down management mouth are arranged on the management board of girff, it is possible to reduce to girff inner space It occupies, saves girff inner space.At the same time it can also reduce the occupancy to the port on girff front panel, increasing girff can The quantity of the serve port externally provided.
Optionally, the uplink management mouth 4 of management board can also share same port with the management port of management board, save knife Limited port resource on case management board.
It should be noted that the embodiment of the present disclosure is not limited to for uplink cascade port and down management mouth being arranged in management board On, the other positions in girff also can be set in uplink cascade port and down management mouth, on front panel.
Below in conjunction with Fig. 1, the structure and working principle of girff cascade system is described in detail.As shown in Figure 1, every layer of girff is equal Including main management plate and standby management board, the information on the main management plate of same girff and standby management board is synchronizing information, and girff Support management board masterslave switchover and hot plug.For example, the main management plate of same girff and the cascaded message of standby management board maintenance are same Step, the main management plate of same girff and standby management board can be switched mutually.For example, two management boards in same girff connect respectively It connects in different slot positions in girff, corresponding different slot number.IRF (Intelligent can be passed through between two management boards Resilient Framework, intelligent elastic framework) port connection, it is set by software virtualization at a distribution after connection It is standby, main management plate and standby management board are selected, and safeguard its main and standby relation.
Uplink management mouth 4 and downlink cascade port 3 are provided on main management plate and standby management board.For example, current girff The uplink management mouth of main management plate is used to connect the downlink cascade port on the main management plate in one layer of girff, the master of current girff The downlink cascade port of management board is used to connect the uplink management mouth on the main management plate in next layer of girff.The standby pipe of current girff The uplink management mouth of reason plate is used to connect the downlink cascade port on the standby management board in one layer of girff, the standby management of current girff The downlink cascade port of plate is used to connect the uplink management mouth on the standby management board in next layer of girff.It is understood that current The uplink management mouth of the main management plate of girff also can connect the downlink cascade port on the standby management board in one layer of girff, currently The downlink cascade port of the main management plate of girff also can connect the management mouth of the uplink on the standby management board in next layer of girff.Currently The uplink management mouth of the standby management board of girff also can connect the downlink cascade port on the main management plate in one layer of girff, currently The downlink cascade port of the standby management board of girff also can connect the management mouth of the uplink on the main management plate in next layer of girff.
If the uplink management mouth of the main management plate of current girff and the main management plate in upper one layer of girff or standby management board On the connection of downlink cascade port, and the uplink management mouth of the standby management board of current girff in upper one layer of girff standby management board or Downlink cascade port connection on main management plate, then form double cascade channels between current girff and upper one layer of girff.Girff cascade Double cascade channels can be formed between every two layers of girff in system, the uplink cascade port of top layer girff is whole for connection management End, so that user can be managed any girff in girff cascade system by management terminal.Optionally, main joins knife The uplink cascade port of case can connect multiple management terminals by router, so as to provide service for multiple users.
The uplink management mouth of the uplink management mouth of main management plate in same girff and standby management board can aggregate into uplink Aggregation port is managed, the downlink cascade port of the downlink cascade port of the main management plate in same girff and standby management board can aggregate into down Row cascade polymeric mouth, therefore double cascade channels are referred to as polymerization cascade channel.Every layer of girff, which can be built, has double members The polymerization cascade channel of mouth, and by the cascaded message of polymerization cascade channel upper layer girff transmission self maintained, cascade is believed Breath is sent to the girff of top layer layer by layer, pools cascaded topology in top layer girff.Girff grade can be enhanced in polymerization cascade channel Join the redundancy and reliability of topological structure.
In order to improve girff cascade system scheme user side experience, present embodiments provide a kind of modification IP address Method, this method are applied to the secondary cascade girff of girff cascade system, which includes cascade main connection girff It, can be in a network in order to allow the main of girff cascade system to join girff and each cascade girff at least one cascade girff Mutually discovery and the respective system of interaction and configuration information, pass through LLDP (Link Layer Discovery Protocol, chain Road floor finds agreement) main can be joined to the unique ability of girff and time cascade girff equipment, management address, device identification, connect The information such as mouth mark are organized into different TLV (Type-Length-Value, type-length-value), and are encapsulated in LLDPDU In (Link Layer Discovery Protocol Data Unit, Link Layer Discovery Protocol data cell), reported by LLDP Text is sent to corresponding main connection girff or each cascade girff.Wherein, the TLV that LLDP can be encapsulated include basic TLV, TLV, TLV of 802.3 definition of 802.1 tissue definition etc., Fig. 3 is the LLDP message for showing Ethernet II format, is such as schemed Shown in 3:
Destination MAC address: for purpose media access control address;
Source MAC address: for source media access control address;
Type: type of message is 0x88CC;
Data: data content, wherein the encapsulation format of LLDPDU is as shown in Figure 4;
FCS: frame check sequence, for being verified to message.
As shown in figure 5, the method for modification IP address includes:
S501, the first Link Layer Discovery Protocol that main connection girff is sent according to the cascade connection of girff cascade system is received LLDP message, wherein the first LLDP message is with carrying the media access control MAC for the secondary cascade girff that IP address clashes The information that location, the IP address of notice modification and request modification IP address identify.
Specifically, main connection girff can receive the cascaded message that each cascade girff reports in girff cascade system, The case where IP address clashes has been detected whether according to the cascaded message, such as: the IP address between secondary cascade girff is identical The case where or the identical situation of IP address between main connection girff and secondary cascade girff, the notice of transmission is modified into IP The secondary cascade girff that first LLDP message of address gives corresponding IP address to clash, can be by the first LLDP message Carry the LLDPDU for being packaged with modification IP TLV field, usual each LLDPDU must carry Chassis ID TLV, Port ID TLV, Time To Live TLV these three TLV fields, as shown in fig. 6, that LLDPDU in the first LLDP message In, a Change IP TLV can be added behind these three TLV fields, be carried in the Change IP TLV field The MAC address for the secondary cascade girff that IP address clashes, the IP address of notice modification and request modification IP The information of address mark, wherein request modification IP address mark TID can be generated at random, for identifying primary notice modification IP The process of address, so that being needed when some cascade girff receives the first LLDP message of different notice modification IP address Different notices should be corresponded to back and forth by, which being identified according to TID, modifies the first LLDP message of IP address, and secondary cascade girff is on receiving After stating the first LLDP message, the information that can be carried by the first LLDP message, the secondary cascade knife clashed according to IP address Current cascade girff of case MAC Address confirmation whether the secondary cascade girff that IP address clashes, then the IP address is rushed Prominent secondary cascade girff can be carried out according to the IP address of oneself with the IP address for notifying modification in the first LLDP message is received Compare, confirmation modification IP address as a result, such as: modification IP address success or failure, be in and modifying IP address The result of process.
Specifically, above-mentioned first LLDP message further includes having the first kind-Length Value TLV field type Type, first The information of TLV field length Length and the first TLV field operations code Opcode.
These above-mentioned fields are encapsulated in Change IP TLV field by the first LLDP message, and specific encapsulation format is such as Shown in Fig. 7, each field is described as follows table 1:
S502, cascade whether girff is that IP address clashes according to the confirmation of the MAC Address of the first LLDP message current time Secondary cascade girff.
Specifically, secondary cascade girff receives the first LLDP message, according to the MAC Address of the first LLDP message, come Whether the current cascade girff of confirmation is secondary cascade girff that IP address clashes, if it is not, can be according to the girff The cascade connection of cascade system continues the first LLDP message received to be sent to other cascade girff, until with finding IP Until the secondary cascade girff that location clashes.
If S503, confirmation are the secondary cascade girffs that IP address clashes, modified according to the notice of the first LLDP message IP address confirmation modification IP address as a result, according to girff cascade system cascade connection to main connection girff send second LLDP message, wherein the 2nd LLDP message is with carrying the MAC Address for the secondary cascade girff that IP address clashes, modification IP Location result and the information for responding modification IP address mark, so that main joins girff according to the MAC Address of the 2nd LLDP message The state of OPT-OUT NOTICE modification IP address whether is needed with response modification IP address identity validation.
Specifically, MAC Address and current cascade knife of the current cascade girff according to the first LLDP message received The MAC Address of case is consistent, that is, can confirm that current cascade girff is exactly the secondary cascade girff that IP address clashes, then enter IP Address modification process confirms according to the IP address of the IP address for notifying modification in the first LLDP message and current cascade girff Modify IP address if the IP address modified of the IP address and notice of current cascade girff is inconsistent as a result, illustrate to work as Previous cascade girff is successfully completed the modification of IP address, if unanimously, illustrate to be in the state for modifying IP address or It is not on the state for modifying IP address, after current cascade girff modifies IP address automatically, confirmation IP address modification The result for modifying IP address is joined girff to main according to the cascade connection of girff cascade system by success or the result of failure etc. Send back the 2nd LLDP message that should modify IP address result, wherein the 2nd LLDP message carries what IP address clashed MAC Address, modification IP address result and the information for responding modification IP address mark of secondary cascade girff, wherein respond modification IP It is consistent with request modification IP address mark TID that address identifies TID.
Specifically, above-mentioned 2nd LLDP message further includes having the 2nd TLV field type Type, the 2nd TLV field length The information of Length and the 2nd TLV field operations code Opcode.
These above-mentioned fields are encapsulated in Change IP TLV field by the 2nd LLDP message, and specific encapsulation format is such as Shown in Fig. 7, each field is described as follows table 2:
The present embodiment receives main by time cascade girff and joins what girff was sent according to the cascade connection of girff cascade system First LLDP message of notice modification IP address confirms whether current cascade girff is IP address according to the first LLDP message The secondary cascade girff clashed then notifies the IP address of modification and rushes when confirmation is according to the first LLDP message Prominent secondary cascade girff IP address confirmation modification IP address as a result, and continue according to girff cascade system cascade connection to Main connection girff sends back the 2nd LLDP message that should modify IP address result, so as to solve to need to pass through in the prior art It manually checks, the management board that each secondary cascade girff clashed is successively logged in using serial ports goes the technology of manual modification Problem enhances the reliability of girff cascade system networking, human cost is greatly saved, improves work efficiency.
It in one embodiment, whether is IP according to current cascade girff of the MAC Address of the first LLDP message confirmation The step of secondary cascade girff that address clashes, comprising:
If confirmation is inconsistent, the first LLDP message is sent to IP address hair according to the cascade connection of girff cascade system The secondary cascade girff of raw conflict.
Specifically, according to the MAC Address of the first LLDP message received, with the MAC Address of current cascade girff into Row compares, if comparison is inconsistent, according to the cascade connection of girff cascade system, the first LLDP message is transmitted to other times Cascade girff, until secondary cascade girff that IP address clashes receives the first LLDP message, and with the first LLDP message MAC Address when compare consistent, that is, confirm the secondary cascade girff that this time cascade girff clashes for IP address, the secondary Connection girff can then enter the state of modification IP address.
In one embodiment, it if confirmation is the secondary cascade girff that IP address clashes, is reported according to the first LLDP Notified in text modification IP address confirmation modification IP address as a result, according to girff cascade system cascade connection to main join knife Case sends the step of the 2nd LLDP message, comprising:
Judge whether the secondary cascade knife clashed with IP address according to the IP address of the notice modification of the first LLDP message The IP address of case is consistent;
If judgement is inconsistent, the result success of IP address is modified;
The 2nd LLDP message is sent to main connection girff according to the cascade connection of girff cascade system, wherein the 2nd LLDP Message carries MAC Address, modification IP address result and the response modification IP address for the secondary cascade girff that IP address clashes The information of mark.
Specifically, the secondary cascade girff that the IP address of the notice modification of the first LLDP message and IP address are clashed IP address is compared, if it is inconsistent, illustrating the result for the secondary cascade girff modification IP address that the IP address clashes Therefore success can send back upwards to main connection girff answer in layer directly according to the cascade connection of girff cascade system Modify the successful 2nd LLDP message of IP address, wherein the 2nd LLDP message carries the secondary cascade that IP address clashes MAC Address, the successful result of modification IP address and the information for responding modification IP address mark of girff.
In one embodiment, judge whether to send out with IP address according to the IP address of the notice modification of the first LLDP message After the consistent step of the IP address of the secondary cascade girff of raw conflict, further includes:
If judgement is consistent, continue to judge whether the secondary cascade girff that IP address clashes is in modifying IP The state of location;
If in the state modified, the result for modifying IP address is in IP address and is modifying;
If being not on the state modified, carry out the modification of IP address, determine it is modified the result is that success or Person's failure;
The 2nd LLDP message is sent to main connection girff according to the cascade connection of girff cascade system, wherein the 2nd LLDP Message carries the MAC Address for the secondary cascade girff that IP address clashes, IP address is modifying/successfully modified/modification mistake The information of the result and response modification IP address mark that lose.
Specifically, the secondary cascade girff that the IP address of the notice modification of the first LLDP message and IP address are clashed IP address is compared, if it is determined that unanimously, then whether the secondary cascade girff for continuing to judge that IP address clashes is in The state of IP address is modified, if in the state of IP address is being modified, the secondary cascade girff that IP address clashes can be by According to the cascade connection of girff cascade system, answer IP address modifying second is sent back to main connection girff upwards in layer LLDP message, wherein the 2nd LLDP message carries the MAC Address for the secondary cascade girff that IP address clashes, IP address The information of the result and response modification IP address mark modified.
Optionally, if being not at the state for modifying IP address, the secondary cascade girff that IP address clashes can be right The IP address of itself is modified, it is possible to successfully modified, it is possible to modification failure, it can be according to modified result with determining IP Whether the result of location is successful or fails, and according to the cascade connection of girff cascade system, gives main to join girff upwards in layer Send back answer IP address it is successfully modified/failure the 2nd LLDP message, wherein the 2nd LLDP message carries IP address and rushes The MAC Address of prominent secondary cascade girff, IP address be successfully modified/result of modification failure and respond the letter of modification IP address mark Breath.
In one embodiment, the modification for carrying out IP address determines the knot of modification IP address according to modified result The step of whether fruit is successful or fails, comprising:
The IP address for choosing the secondary cascade girff clashed with IP address is in the IP address of same network segment;
Whether detection can be used in the IP address of same network segment;
If it is available, then setting modified IP address for the IP address in same network segment;
Correspondingly, the result success of modification IP address is determined;
If the IP address part in same network segment is unavailable, continue to randomly select the available IP address in same network segment It is set as modified IP address;
Correspondingly, the result success of modification IP address is determined;
If the IP address in same network segment is unavailable;
Correspondingly, the result failure of modification IP address is determined.
Specifically, the process that the secondary cascade girff that IP address clashes modifies IP address automatically is, firstly, can select at random One is taken to clash time the IP address that cascade girff is in same network segment with IP address, then with gratuitous ARP (Address Resolution Protocol, address resolution protocol) detect whether the IP address can be used, if there is available IP address, IP The secondary cascade girff that location clashes can set IP address to the IP value chosen immediately, send back and answer IP address successfully modified The 2nd LLDP message;If it is not, will continue to randomly select other IP address of same network segment, until choosing to available IP address sends back the 2nd LLDP message for answering IP address successfully modified, wherein the 2nd LLDP message carries IP address The successfully modified result of the MAC Address of the secondary cascade girff of conflict, IP address and the information for responding modification IP address mark.
Optionally, the secondary cascade girff that IP address clashes can detect during modifying IP address in same net Whether the IP address of section can be used, if it is not, and other IP address for randomly selecting always it is unavailable, correspondingly, determine The result failure for modifying IP address, sends back the 2nd LLDP message for answering IP address successfully modified, wherein the 2nd LLDP message is taken The MAC Address of secondary cascade girff, the result of IP address modification failure and the response modification IP address clashed with IP address The information of mark.
In a kind of embodiment, the 2nd LLDP is sent to main connection girff according to the cascade connection of the girff cascade system The step of message, comprising:
The 2nd LLDP message is sent to other cascade girff, so that other cascade girff is according to the 2nd LLDP message MAC Address and response modification IP address identity validation OPT-OUT NOTICE are modified the state of IP address or are continued the 2nd LLDP message It sends until main joins girff.
The second of IP address result should be modified specifically, receiving the secondary cascade girff that IP address clashes and sending back LLDP message, according to the MAC Address of the 2nd LLDP message, MAC Address and response modification IP address with current cascade girff Mark is compared, if cascaded when MAC Address or inconsistent response modification IP address mark any one according to girff 2nd LLDP message is transmitted to the secondary cascade girff of upper level by the cascade connection of system, until the 2nd LLDP is reported Text is sent to main connection girff, if consistent, illustrates that current cascade girff is the secondary cascade knife that IP address clashes Case then exits the state of modification IP address.
As shown in figure 8, second aspect, the disclosure provides a kind of method for modifying IP address, is applied to girff cascade system Main join girff, girff cascade system includes cascade main connection girff and at least one cascade girff, this method comprises:
Whether the IP address that S801, detection main connection girff cascade girff with each time, which has, conflicts;
Specifically, main connection girff receives the cascaded message that time cascade girff reports, which is carried each time The IP address of girff is cascaded, main joins girff according to the cascaded message, detects main connection girff with the IP of each cascade girff Whether location has conflict, such as: IP address identical situation or main connection girff and secondary cascade knife between secondary cascade girff The case where identical situation of IP address between case, then explanation is clashed there are IP address.
S802, confirmation have the secondary cascade girff of IP address conflict in the presence of, according to girff cascade system cascade connection to The secondary cascade girff clashed sends the first Link Layer Discovery Protocol LLDP message, wherein the first LLDP message carries IP The MAC address for the secondary cascade girff that address clashes, the IP address of notice modification and request modification IP The information of location mark.
Specifically, in the presence of main connection girff confirmation has the secondary cascade girff of IP address conflict, according to girff cascade system The secondary cascade girff that is clashed to IP address of cascade connection send the first LLDP message of notice modification IP address, to pass through The LLDPDU for being packaged with modification IP TLV field is carried in the first LLDP message, usual each LLDPDU must be carried Chassis ID TLV, Port ID TLV, Time To Live TLV these three TLV fields, as shown in fig. 6, that is first In the LLDPDU of LLDP message, a Change IP TLV, the Change IP can be added behind these three TLV fields The MAC address for the secondary cascade girff that IP address clashes, the IP of notice modification are carried in TLV field The information of location and request modification IP address mark.
S803, the secondary cascade girff that clashes of IP address is received according to the cascade connection of girff cascade system, transmission The 2nd LLDP message responded according to the first LLDP message, wherein the 2nd LLDP message carries time that IP address clashes Cascade MAC Address, modification IP address result and the information for responding modification IP address mark of girff.
Specifically, the secondary cascade girff that IP address clashes can pass through after receiving above-mentioned first LLDP message The information that first LLDP message carries according to the IP address of oneself and receives the IP address for notifying to modify in the first LLDP message Be compared, confirmation modification IP address as a result, such as: modification IP address success or failure, be in modifying IP During location it is such as a result, at this point, main connection girff will receive secondary cascade girff that IP address clashes according to The cascade connection of girff cascade system, the 2nd LLDP message of the result for the modification IP address that level-one level-one is sent, wherein second LLDP message carries MAC Address, modification IP address result and the response modification IP for the secondary cascade girff that IP address clashes The information of address mark.
S804, according to the MAC Address of the 2nd LLDP message and respond modification IP address identity validation whether need to exit it is logical Know the state of modification IP address.
Specifically, main connection girff can be according to the MAC Address and response modification IP address of the 2nd LLDP message received Mark, the MAC Address established with the first LLDP message of transmission and request modification IP address mark compare, if comparison one It causes, then the state of OPT-OUT NOTICE modification IP address, if it is inconsistent, OPT-OUT NOTICE modifies the state of IP address after time-out, and The incidence relation of the MAC Address and request modification IP address mark established before deleting.
The present embodiment joins girff detection main connection girff by main and conflicts with whether the IP address of each cascade girff has, In the presence of confirmation has the secondary cascade girff of IP address conflict, occur according to the cascade connection of the girff cascade system to IP address The secondary cascade girff of conflict sends the first LLDP message of notice modification internet protocol address, receives IP address and clashes Secondary cascade girff according to girff cascade system cascade connection, transmission according to the first LLDP message respond modification IP address As a result the 2nd LLDP message, so as to solve to need in the prior art successively to step on by manually checking using serial ports The technical issues of management board for the secondary cascade girff that land each clashes removes manual modification, enhances girff cascade system networking Reliability, human cost is greatly saved, improves work efficiency.
Specifically, above-mentioned first LLDP message further includes having the first kind-Length Value TLV field type Type, first The information of TLV field length Length and the first TLV field operations code Opcode.
The specific format of first LLDP message has been described in detail in the method for first aspect, then it is no longer superfluous It states.
Specifically, above-mentioned 2nd LLDP message further includes having the 2nd TLV field type Type, the 2nd TLV field length The information of Length and the 2nd TLV field operations code Opcode.
The specific format of 2nd LLDP message has been described in detail in the method for first aspect, then it is no longer superfluous It states.
In one embodiment, main connection girff is clashed according to the cascade connection of girff cascade system to IP address Secondary cascade girff send the first LLDP message the step of, comprising:
Cascade connection confirmation and main connection girff directly cascade cascade girff according to girff cascade system.
Specifically, main connection girff can be by receiving according to the cascade connection of girff cascade system, the cascade connection Each cascaded message that reports of cascade girff obtains, it can obtains the connection pass of main connection girff with each cascade girff System, whereby it was confirmed that with main connection girff directly cascade cascade girff.
The first LLDP message is sent to directly cascade time cascade girff, so that directly cascade cascade girff is according to the The validation of information of the MAC Address of one LLDP message, the IP address of notice modification and request modification IP address mark modifies IP address Or continue the first LLDP message being sent to the secondary cascade girff that IP address clashes.
Specifically, main, which joins girff, is sent to this time cascade girff the first LLDP message, first by this time cascade girff Whether current cascade girff is confirmed according to the information of the MAC Address of the first LLDP message and request modification IP address mark For the secondary cascade girff that IP address clashes, i.e., current time is cascaded the MAC Address and request modification IP address mark of girff Information, with the MAC Address of the first LLDP message and request modification IP address mark information be compared, if there is any one If item is inconsistent, i.e., when the information of MAC Address or request modification IP address mark is inconsistent, then according to girff cascade system First LLDP message is transmitted to the secondary cascade girff of next stage by cascade connection, until the first LLDP message is sent to IP The secondary cascade girff that address clashes, if unanimously, illustrating that current cascade girff is that IP address clashes Secondary cascade girff, then enter modification IP address state.
Specifically, modification IP address result includes: to modify IP address, the success of modification IP address, modification IP address mistake Any one result in losing.
Specifically, main connection girff receives the 2nd LLDP message for responding the result of modification IP address, wherein IP address The result of the secondary cascade girff modification IP address clashed, which can be, is modifying IP address, or modification IP address success, Or any one in the result of modification IP address failure, the secondary cascade girff that specific IP address clashes modifies IP address Process be described in detail in the method for first aspect, just repeat no more again.
In one embodiment, the step of modifying the state of IP address into notice, comprising:
Request modification IP address mark is generated, the secondary cascade that request modification IP address mark is clashed with IP address is established The corresponding relationship of the MAC Address of girff.
Specifically, in the presence of confirmation has the secondary cascade girff of IP address conflict, in the secondary cascade clashed to IP address Before girff sends the step of the first LLDP message of notice modification IP address, main, which joins girff, can enter notice modification IP address State, it is random to generate request modification IP address mark, establish secondary cascade girff that IP address clashes TID and MAC pairs The list item of the IP address for the notice modification answered.
In one embodiment, it is according to the MAC Address of the 2nd LLDP message and response modification IP address identity validation The step of no state for needing OPT-OUT NOTICE modification IP address, comprising:
According to the mark of the MAC Address of the 2nd LLDP message and response modification IP address, with asking for established corresponding relationship Modification IP address mark is asked to be compared with MAC Address;
If comparing the state for unanimously exiting modification IP address;
If comparison is inconsistent, after a time out, OPT-OUT NOTICE modifies the state of IP address, and deletes IP address and rush Corresponding relationship between the MAC Address and request modification IP address mark of prominent secondary cascade girff.
Specifically, main connection girff receives the knot for the modification IP address that the secondary cascade girff that IP address clashes is responded The 2nd LLDP message of fruit is understood the MAC Address of the secondary cascade girff clashed according to IP address in the 2nd LLDP message and is returned IP address mark TID, the MAC Address and notice modification IP address mark of the secondary cascade girff clashed with IP address should be modified TID is compared, if unanimously, OPT-OUT NOTICE modifies the state of IP address;
If it is inconsistent, after a time out, OPT-OUT NOTICE modifies the state of IP address, and deletes what IP address clashed Corresponding relationship between the MAC Address of secondary cascade girff and the IP address of notice modification.
In one embodiment, whether the IP address that detection main connection girff cascades girff with each time has the step of conflicting Before, method further include:
Determine that main connection girff is not at the state of notice modification IP address.
Specifically, main connection girff receives the cascaded message that each cascade girff reports, which is carried respectively It is secondary cascade girff IP address, detection main connection girff with each time cascade girff IP address whether have the step of conflicting it Before, main connection girff can confirm the state for itself whether being in notice modification IP address, if with being not at notice modification IP The state of location just will do it the process of IP address conflict detection.
Fig. 9 is the flow diagram that the girff cascade system that one embodiment of the disclosure provides modifies IP address.Below with knife For case cascade system, it is girff A that main, which joins girff, and the secondary cascade girff that IP address clashes is girff B, girff A and knife Grade is associated with other cascade girffs, N number of girff N, wherein it is integer that N, which is more than or equal to 1, N, to IP address modification side between case B The detailed process of method is described as follows:
Step S901, girff A receives the cascaded message that each cascade girff reports.
Specifically, carrying the letters such as IP address, MAC Address and the cascade connection of each cascade girff in the cascaded message Breath.
Step S902, whether girff A judgement is not at the state of notice modification IP address, if being not at notice modification The state of IP address, thens follow the steps S903, if the state in notice modification IP address, is examined without IP address conflict It surveys.
Step S903, girff A carries out IP address conflict detection, is confirmed whether the secondary cascade girff for having IP address to clash In the presence of if it is present step S904 is executed, if it does not exist, then terminating process.
Specifically, the cascaded message of each cascade girff, girff A have detected whether that IP address clashes based on the received Secondary cascade girff exist.
Step S904, girff A enters the state of notice modification IP address, establishes request modification IP address and identifies TID and MAC Corresponding notice modifies IP list item.
Step S905, girff A sends the first LLDP message of notice modification IP address to girff B.
Step S906, girff N receives the first LLDP message, repairs to the MAC Address field and request of the first LLDP message Change IP address mark TID to be compared, if MAC Address field and request modification IP address identify TID, any one is not met, S907 is thened follow the steps, if consistent, is executed consistent with step S908 performed by girff B.
Step S907, girff N continues the first LLDP message being transmitted to other girffs N, until being forwarded to girff B always.
Step S908, girff B enters the state of modification IP address, and the IP address field of the first LLDP message is compared It is right, if it is inconsistent, step S909 is executed, if unanimously, thening follow the steps S910.
Step S909, girff B, which is returned, responds the successfully modified LLDP message of IP address.
Step S910, girff B judges whether girff B is in IP address modification process, if being in IP address During modification, S911 is thened follow the steps, if be not on during IP address modification, thens follow the steps S912.
Step S911, girff B, which is returned, responds the LLDP message that IP address is being modified.
Step S912, girff B modifies IP address automatically, obtains the result that IP address is successfully modified or fails.
Specifically, one can be randomly selected first with the IP of same network segment before girff B in modification IP address automatically Location, then detect whether the IP address can be used with gratuitous ARP, if it is not, will continue to randomly select other IP of same network segment Available IP address is arrived until choosing in address, if all unavailable, returns to the 2nd LLDP report for responding IP address modification failure Text;If there is available IP address, IP address can be set to the value, be modified according to IP address as a result, returning and respond IP address The 2nd successfully modified LLDP message.
Step S913, girff B according to IP address modify as a result, return respond IP address it is successfully modified or failure second LLDP message.
Step S914, after girff N receives the 2nd LLDP message, whether confirmation girff N has TID notice corresponding with MAC IP list item is modified, if so, step S915 is executed, if it is not, executing step S916.
Step S915, the state of girff N OPT-OUT NOTICE modification IP address.
Step S916, the message is forwarded to the upper level of girff N time cascade girff, until girff A receives response modification IP 2nd LLDP message of address result.
Specifically, the modification IP address result includes that IP address is modifying that perhaps IP address is successfully modified or IP Modify any one in the result of failure in location.
Step S917, girff A receives the 2nd LLDP message, can be by the TID and MAC of the 2nd LLDP message and local preservation TID be compared with MAC, if unanimously, thening follow the steps S918, if it is inconsistent, execute step S919.
Step S918, the state of girff A OPT-OUT NOTICE modification IP address.
Step S919, after girff A time-out, OPT-OUT NOTICE modifies the state of IP address.
Step S920, girff A deletes notice modification IP list item.
It should be noted that is provided in above-mentioned process is girff cascade system when IP address clashes, from The process of dynamic modification IP address, wherein when the IP address between main connection girff directly cascade cascade girff clashes When, can not have to mutually directly transmit by N number of time cascade girff forwarding, concrete implementation process as before, just It repeats no more.
A kind of girff provided by the embodiment of the present disclosure.As shown in Figure 10, which is applied to time of girff cascade system Cascade girff, comprising: processor 1001, memory 1002 and bus, memory 1002 are stored with what processor 1001 can be performed Machine readable instructions pass through bus communication, processor when electronic equipment operation between processor 1001 and memory 1002 The step of 1001 execute the girff readable instruction, cascade the method for girff modification IP address with execution as above time.
It should be noted that the technical effect of girff provided by the present embodiment, basic principle and generation with it is aforementioned right The embodiment of the method answered is identical, to briefly describe, does not refer to part in the present embodiment, can refer to corresponding interior in embodiment of the method Hold.
Another kind girff provided by the embodiment of the present disclosure.As shown in figure 11, which is applied to girff cascade system Main joins girff, comprising: processor 1101, memory 1102 and bus, it is executable that memory 1102 is stored with processor 1101 Machine readable instructions, when electronic equipment operation, by bus communication between processor 1101 and memory 1102, processor 1101 execute the girff readable instruction, to execute the step of main connection girff as above modifies the method for IP address.It needs to illustrate , girff provided by the present embodiment, the technical effect of basic principle and generation and aforementioned corresponding embodiment of the method phase Together, to briefly describe, part is not referred in the present embodiment, can refer to the corresponding contents in embodiment of the method.
The embodiment of the present disclosure provides a kind of computer readable storage medium, is stored thereon with computer program, the calculating When machine program is read out by the processor and runs, realize that above-mentioned cascade girff and the method for main connection girff modification IP address are implemented Corresponding step in example.
In several embodiments provided by the present invention, it should be understood that disclosed device and method can pass through it Its mode is realized.For example, the apparatus embodiments described above are merely exemplary, for example, the division of unit, only A kind of logical function partition, there may be another division manner in actual implementation, for example, multiple units or components can combine or Person is desirably integrated into another system, or some features can be ignored or not executed.Another point, shown or discussed is mutual Between coupling, direct-coupling or communication connection can be through some interfaces, the INDIRECT COUPLING or communication link of device or unit It connects, can be electrical property, mechanical or other forms.
Unit may or may not be physically separated as illustrated by the separation member, shown as a unit Component may or may not be physical unit, it can and it is in one place, or may be distributed over multiple networks On unit.It can some or all of the units may be selected to achieve the purpose of the solution of this embodiment according to the actual needs.
It, can also be in addition, the functional units in various embodiments of the present invention may be integrated into one processing unit It is that each unit physically exists alone, can also be integrated in one unit with two or more units.Above-mentioned integrated list Member both can take the form of hardware realization, can also realize in the form of hardware adds SFU software functional unit.
The above-mentioned integrated unit being realized in the form of SFU software functional unit can store and computer-readable deposit at one In storage media.Above-mentioned SFU software functional unit is stored in a storage medium, including some instructions are used so that a computer Equipment (can be personal computer, server or the network equipment etc.) or processor (English: processor) execute this hair The part steps of bright each embodiment method.And storage medium above-mentioned include: USB flash disk, mobile hard disk, read-only memory (English: Read-Only Memory, referred to as: ROM), random access memory (English: Random Access Memory, referred to as: RAM), the various media that can store program code such as magnetic or disk.
It should be noted that, in this document, the relational terms of such as " first " and " second " or the like are used merely to one A entity or operation with another entity or operate distinguish, without necessarily requiring or implying these entities or operation it Between there are any actual relationship or orders.Moreover, the terms "include", "comprise" or its any other variant are intended to Cover non-exclusive inclusion, so that the process, method, article or equipment for including a series of elements not only includes those Element, but also including other elements that are not explicitly listed, or further include for this process, method, article or setting Standby intrinsic element.In the absence of more restrictions, the element limited by sentence "including a ...", it is not excluded that There is also other identical elements in the process, method, article or apparatus that includes the element.
The foregoing is merely preferred embodiment of the present disclosure, are not limited to the disclosure, for the skill of this field For art personnel, the disclosure can have various modifications and variations.It is all within the spirit and principle of the disclosure, it is made any to repair Change, equivalent replacement, improvement etc., should be included within the protection scope of the disclosure.It should also be noted that similar label and letter exist Similar terms are indicated in following attached drawing, therefore, once being defined in a certain Xiang Yi attached drawing, are then not required in subsequent attached drawing It is further defined and explained.

Claims (15)

1. a kind of method for modifying IP address, the secondary cascade girff applied to girff cascade system, which is characterized in that the girff Cascade system includes cascade main connection girff and at least one cascade girff, which comprises
Receive the first Link Layer Discovery Protocol LLDP that main connection girff is sent according to the cascade connection of the girff cascade system Message, wherein the first LLDP message is with carrying the media access control MAC for the secondary cascade girff that IP address clashes The information that location, the IP address of notice modification and request modification IP address identify;
It whether is secondary that IP address clashes according to current cascade girff of the MAC Address of the first LLDP message confirmation Join girff;
If confirmation is the secondary cascade girff that IP address clashes, according to the IP for notifying modification in the first LLDP message Location confirmation modification IP address as a result, according to the girff cascade system cascade connection to the main connection girff send second LLDP message, wherein the 2nd LLDP message carries the MAC Address for the secondary cascade girff that IP address clashes, modification IP address result and the information for responding modification IP address mark, so that the main joins girff according to the 2nd LLDP message Whether MAC Address and response modification IP address identity validation need the state of OPT-OUT NOTICE modification IP address.
2. the method according to claim 1, wherein being worked as according to the confirmation of the MAC Address of the first LLDP message It is previous cascade girff whether be IP address clash secondary cascade girff the step of after, further includes:
If confirmation is inconsistent, by the first LLDP message according to the girff cascade system cascade connection with being sent to IP The secondary cascade girff that location clashes.
3. method according to claim 1 or 2, which is characterized in that if confirmation is the secondary cascade knife that IP address clashes Case, then according to the IP address confirmation modification IP address for notifying modification in the first LLDP message as a result, according to the girff The step of cascade connection of cascade system sends the 2nd LLDP message to main connection girff, comprising:
Judge whether the secondary cascade knife clashed with IP address according to the IP address of the notice modification of the first LLDP message The IP address of case is consistent;
If judgement is inconsistent, the result success of IP address is modified;
The 2nd LLDP message is sent to main connection girff according to the cascade connection of the girff cascade system, wherein described 2nd LLDP message carry the MAC Address of the secondary cascade girff that IP address clashes, the successful result of modification IP address and Respond the information of modification IP address mark.
4. according to the method described in claim 3, it is characterized in that, according to the IP of the notice modification of the first LLDP message Location judges whether after the step consistent with the IP address of secondary cascade girff that IP address clashes, further includes:
If judgement is consistent, whether the secondary cascade girff for continuing to judge that IP address clashes is in the shape for modifying IP address State;
If the result for modifying IP address is that IP address is being modified in the state modified;
If being not on the state modified, the modification of IP address is carried out, is determined modified the result is that success or mistake It loses;
The 2nd LLDP message is sent to main connection girff according to the cascade connection of the girff cascade system, wherein described 2nd LLDP message carries the MAC Address for the secondary cascade girff that IP address clashes, IP address is being modified/is being modified as Function/modification failure result and the information for responding modification IP address mark.
5. according to the method described in claim 4, it is characterized in that, the modification for carrying out IP address, determines modified knot Fruit be successfully or failure the step of, comprising:
The IP address for choosing the secondary cascade girff clashed with IP address is in the IP address of same network segment;
Whether detection can be used in the IP address of same network segment;
If it is available, then setting modified IP address for the IP address in same network segment;
Correspondingly, the result success of modification IP address is determined;
If the IP address part in same network segment is unavailable, continue to randomly select the available IP address setting in same network segment For modified IP address;
Correspondingly, the result success of modification IP address is determined;
If the IP address in same network segment is unavailable;
Correspondingly, the result failure of modification IP address is determined.
6. method according to claim 1-5, which is characterized in that the grade according to the girff cascade system The step of connection relationship sends the 2nd LLDP message to main connection girff, comprising:
Confirmation cascades cascade other the cascade girff of girff according to the cascade connection of girff cascade system and current time;
The 2nd LLDP message is sent to other cascade girff, so that other cascade girff is reported according to the 2nd LLDP The MAC Address of text and the state of response modification IP address identity validation OPT-OUT NOTICE modification IP address continue described second LLDP message is sent to main connection girff.
7. a kind of method for modifying IP address, the main applied to girff cascade system joins girff, which is characterized in that the girff Cascade system includes cascade main connection girff and at least one cascade girff, which comprises
Whether the IP address that detection main connection girff cascades girff with each time, which has, conflicts;
In the presence of confirmation has the secondary cascade girff of IP address conflict, into the state of modification IP address, cascaded according to the girff The secondary cascade girff that the cascade connection of system is clashed to IP address sends the first Link Layer Discovery Protocol LLDP message, In, the first LLDP message carries the MAC address for the secondary cascade girff that IP address clashes, notice The IP address of modification and the information of request modification IP address mark;
The secondary cascade girff that clashes of IP address is received according to the cascade connection of the girff cascade system, transmission according to institute State the 2nd LLDP message of the first LLDP message response, wherein the 2nd LLDP message carries what IP address clashed MAC Address, modification IP address result and the information for responding modification IP address mark of secondary cascade girff;
According to the MAC Address of the 2nd LLDP message and respond whether modification IP address identity validation needs OPT-OUT NOTICE to modify The state of IP address.
8. the method according to the description of claim 7 is characterized in that the cascade connection according to the girff cascade system to The secondary cascade girff that IP address clashes sends the step of the first Link Layer Discovery Protocol LLDP message, comprising:
Cascade connection confirmation and main connection girff directly cascade cascade girff according to girff cascade system;
The first LLDP message is sent to the directly cascade cascade girff, so that the directly cascade secondary cascade knife Case is true according to the information of the MAC Address of the first LLDP message, the IP address of notice modification and request modification IP address mark Recognize modification IP address or continues the first LLDP message being sent to the secondary cascade girff that IP address clashes.
9. method according to claim 7 or 8, which is characterized in that the modification IP address result includes:
IP address is being modified, IP address success is being modified, modifies any one result in IP address failure.
10. according to the described in any item methods of claim 7-9, which is characterized in that the shape for entering notice modification IP address The step of state, comprising:
Request modification IP address mark is generated, the secondary cascade that the request modification IP address mark is clashed with IP address is established The corresponding relationship of the MAC Address of girff.
11. according to the method described in claim 10, it is characterized in that, the MAC Address according to the 2nd LLDP message The step of whether IP address identity validation needs the state of OPT-OUT NOTICE modification IP address modified with responding, comprising:
According to the mark of the MAC Address of the 2nd LLDP message and response modification IP address, with asking for established corresponding relationship Modification IP address mark is asked to be compared with MAC Address;
If comparing consistent, the state of OPT-OUT NOTICE modification IP address;
If comparison is inconsistent, after a time out, OPT-OUT NOTICE modifies the state of IP address, and deletes what IP address clashed Corresponding relationship between the MAC Address and request modification IP address mark of secondary cascade girff.
12. the method according to the description of claim 7 is characterized in that the detection main connection girff cascades girff with each time Before whether IP address has the step of conflict, the method also includes:
Determine that the main connection girff is not at the state of notice modification IP address.
13. a kind of girff, the secondary cascade girff applied to girff cascade system characterized by comprising processor, memory And bus, the memory are stored with the executable machine readable instructions of the processor, and when electronic equipment operation, the place It manages by bus communication between device and the memory, the processor executes the machine readable instructions, to execute such as right It is required that the step of method of 1 to 6 any modification IP address.
14. a kind of girff, the main applied to girff cascade system joins girff characterized by comprising processor, memory And bus, the memory are stored with the executable machine readable instructions of the processor, and when electronic equipment operation, the place It manages by bus communication between device and the memory, the processor executes the machine readable instructions, to execute such as right It is required that the step of method of 7 to 12 any modification IP address.
15. a kind of computer readable storage medium, is stored thereon with computer program, which is characterized in that the computer program When being read out by the processor and running, such as the described in any item methods of claim 1-12 are realized.
CN201811616584.XA 2018-12-27 2018-12-27 Method and tool box for modifying IP address Active CN109618021B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811616584.XA CN109618021B (en) 2018-12-27 2018-12-27 Method and tool box for modifying IP address

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811616584.XA CN109618021B (en) 2018-12-27 2018-12-27 Method and tool box for modifying IP address

Publications (2)

Publication Number Publication Date
CN109618021A true CN109618021A (en) 2019-04-12
CN109618021B CN109618021B (en) 2023-02-03

Family

ID=66011968

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811616584.XA Active CN109618021B (en) 2018-12-27 2018-12-27 Method and tool box for modifying IP address

Country Status (1)

Country Link
CN (1) CN109618021B (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110650221A (en) * 2019-09-26 2020-01-03 环鸿电子(昆山)有限公司 IP self-correcting test system
CN113055501A (en) * 2019-12-28 2021-06-29 浙江宇视科技有限公司 Method and device for configuring IP address in series through network port
CN115550318A (en) * 2022-09-26 2022-12-30 Oppo广东移动通信有限公司 IPv6 address configuration method and device, equipment and storage medium

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20110196951A1 (en) * 2010-02-09 2011-08-11 Quanta Computer Inc. Computer managing method
CN105812190A (en) * 2016-04-29 2016-07-27 中国人民解放军国防科学技术大学 Network address management method of Feiteng server blade system
CN106612341A (en) * 2016-11-24 2017-05-03 上海易杵行智能科技有限公司 Method for intelligently configuring network management address of neighbor switcher
CN106790741A (en) * 2016-11-24 2017-05-31 上海易杵行智能科技有限公司 A kind of method that cascade device based on link layer data communications distributes the network address automatically
CN107623752A (en) * 2016-07-15 2018-01-23 紫光华山信息技术有限公司 Network management and device based on link layer
CN108833606A (en) * 2018-05-31 2018-11-16 郑州云海信息技术有限公司 A kind of two-layer equipment configuration method, tension management equipment, infrastructure devices and system

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20110196951A1 (en) * 2010-02-09 2011-08-11 Quanta Computer Inc. Computer managing method
CN105812190A (en) * 2016-04-29 2016-07-27 中国人民解放军国防科学技术大学 Network address management method of Feiteng server blade system
CN107623752A (en) * 2016-07-15 2018-01-23 紫光华山信息技术有限公司 Network management and device based on link layer
CN106612341A (en) * 2016-11-24 2017-05-03 上海易杵行智能科技有限公司 Method for intelligently configuring network management address of neighbor switcher
CN106790741A (en) * 2016-11-24 2017-05-31 上海易杵行智能科技有限公司 A kind of method that cascade device based on link layer data communications distributes the network address automatically
CN108833606A (en) * 2018-05-31 2018-11-16 郑州云海信息技术有限公司 A kind of two-layer equipment configuration method, tension management equipment, infrastructure devices and system

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110650221A (en) * 2019-09-26 2020-01-03 环鸿电子(昆山)有限公司 IP self-correcting test system
CN113055501A (en) * 2019-12-28 2021-06-29 浙江宇视科技有限公司 Method and device for configuring IP address in series through network port
CN113055501B (en) * 2019-12-28 2022-12-23 浙江宇视科技有限公司 Method and device for configuring IP addresses in series through internet access
CN115550318A (en) * 2022-09-26 2022-12-30 Oppo广东移动通信有限公司 IPv6 address configuration method and device, equipment and storage medium

Also Published As

Publication number Publication date
CN109618021B (en) 2023-02-03

Similar Documents

Publication Publication Date Title
CN108696434B (en) Method, equipment and system for forwarding data message
CN114124806B (en) Method and equipment for generating route
US8135832B2 (en) Method, system and apparatus for detecting multiple active devices in stack
US8438307B2 (en) Method and device of load-sharing in IRF stack
CN101371474B (en) System and method for detecting and recovering from virtual switch link failures
CN102823205B (en) Aggregating data traffic from access domains
US7027406B1 (en) Distributed port-blocking method
CN106712988B (en) A kind of virtual network management method and device
CN106992874A (en) Method and the network equipment for communication
CN109618021A (en) Modify the method and girff of IP address
CN103997414A (en) Configuration information generation method and network control unit
CN107996023A (en) Monitor method, equipment and the Virtual Networking System of virtual network
US20080101362A1 (en) Method and device for making uplink standby
CN102420765B (en) Method and device for determining physical link between switchboard and terminal
CN105281951B (en) Double primary apparatus conflict detection methods and the network equipment in VSU systems
CN108632099B (en) Fault detection method and device for link aggregation
CN101335711A (en) Determining a logical neighbor of a network element
CN106797370B (en) SAS system and traversal method and device thereof
CN104518936B (en) Link dynamic aggregation method and apparatus
CN105656645A (en) Decision making method and device for fault processing of stacking system
CN114371912A (en) Virtual network management method of data center and data center system
CN108111324A (en) A kind of multicast control method based on SDN network, device and storage medium
CN106330783B (en) A kind of method and device of OpenFlow interchanger capability reporting
CN104125079B (en) A kind of method and device for determining two-node cluster hot backup configuration information
CN104426777A (en) Routing updating method and routing 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
GR01 Patent grant
GR01 Patent grant