CN109831330A - A kind of stack arrangement method and device - Google Patents

A kind of stack arrangement method and device Download PDF

Info

Publication number
CN109831330A
CN109831330A CN201910093124.1A CN201910093124A CN109831330A CN 109831330 A CN109831330 A CN 109831330A CN 201910093124 A CN201910093124 A CN 201910093124A CN 109831330 A CN109831330 A CN 109831330A
Authority
CN
China
Prior art keywords
network equipment
stack member
configuration
mac address
configuration file
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
CN201910093124.1A
Other languages
Chinese (zh)
Other versions
CN109831330B (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 CN201910093124.1A priority Critical patent/CN109831330B/en
Publication of CN109831330A publication Critical patent/CN109831330A/en
Application granted granted Critical
Publication of CN109831330B publication Critical patent/CN109831330B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Small-Scale Networks (AREA)

Abstract

The present invention provides a kind of stack arrangement method and device, this method comprises: when the network equipment gets IP address by dynamic host configuration protocol DHCP server, and when getting the configuration file that the Dynamic Host Configuration Protocol server is specified, the binding relationship of bridge MAC address and stack member number is obtained from the configuration file;The stack member number of the network equipment is configured according to the binding relationship.The operation that can simplify stack member number using the embodiment of the present invention improves the efficiency of stack member number configuration.

Description

A kind of stack arrangement method and device
Technical field
The present invention relates to network communication technology field more particularly to a kind of stack arrangement method and devices.
Background technique
Stacking, which refers to, links together multiple devices, and progress is necessary with postponing, and is virtualized into an equipment.Use this Kind of virtualization technology can gather the hardware resource and software processing capability of multiple devices, realize multiple devices collaborative work, Unified management and uninterrupted maintenance.
When configuring stacking, needs to specify the stack member of each member device to number, guarantee same stacking system The stack member number of member device is different.
Stack arrangement scheme common at present is after equipment starting, by ordering configuration one by one to participate in each equipment stacked Stack member number, guarantee the different stack member number (for example, member number from 1 to 10) of every device configuration by hand, Then manual restarting equipment numbers the stack member of each equipment and comes into force, and stack arrangement operation is relatively complicated, and efficiency is lower.
Summary of the invention
The present invention provides a kind of stack arrangement method and device, cumbersome to solve existing stack arrangement scheme, configuration The problem of low efficiency.
According to a first aspect of the embodiments of the present invention, a kind of stack arrangement method is provided, applied to the network for supporting stacking Equipment, which comprises
When the network equipment gets IP address by dynamic host configuration protocol DHCP server, and get described When the configuration file that Dynamic Host Configuration Protocol server is specified, bridge MAC address is obtained from the configuration file and is stacked into The binding relationship of member's number;
The stack member number of the network equipment is configured according to the binding relationship.
According to a second aspect of the embodiments of the present invention, a kind of stack arrangement device is provided, applied to the network for supporting stacking Equipment, described device include:
Acquiring unit for getting IP address by dynamic host configuration protocol DHCP server, and is got described The specified configuration file of Dynamic Host Configuration Protocol server;
The acquiring unit is also used to obtain bridge MAC address from the configuration file and be stacked into The binding relationship of member's number;
Configuration unit, the stack member for configuring the network equipment according to the binding relationship are numbered.
Using technical solution disclosed by the invention, pass through the Configuration network equipment in the configuration file that the network equipment uses The binding relationship of bridge MAC Address and stack member number, the network equipment gets IP address by Dynamic Host Configuration Protocol server, and gets When the configuration file that Dynamic Host Configuration Protocol server is specified, according to the binding for bridge MAC Address and the stack member number for including in configuration file Relationship carries out stack member number configuration, realizes automatically configuring for stack member number in conjunction with auto-config scheme, simplifies The operation of stack member number improves the efficiency of stack member number configuration.
Detailed description of the invention
Fig. 1 is a kind of flow diagram of stack arrangement method provided in an embodiment of the present invention;
Fig. 2 is a kind of configuration diagram of concrete application scene provided in an embodiment of the present invention;
Fig. 3 is the flow diagram of the stack arrangement method under a kind of concrete application scene provided in an embodiment of the present invention;
Fig. 4 is the process signal of the stack arrangement method under another concrete application scene provided in an embodiment of the present invention Figure;
Fig. 5 is a kind of structural schematic diagram of stack arrangement device provided in an embodiment of the present invention;
Fig. 6 is the structural schematic diagram of another stack arrangement device provided in an embodiment of the present invention.
Specific embodiment
Technical solution in embodiment in order to enable those skilled in the art to better understand the present invention, and make of the invention real The above objects, features, and advantages for applying example can be more obvious and easy to understand, with reference to the accompanying drawing to technical side in the embodiment of the present invention Case is described in further detail.
It referring to Figure 1, is a kind of flow diagram of stack arrangement method provided in an embodiment of the present invention, wherein the heap Folded configuration method can be applied to the network equipment for supporting to stack, such as switch or router switching equipment, as shown in Figure 1, The stack arrangement method may comprise steps of:
Step 101 gets IP address by Dynamic Host Configuration Protocol server when the network equipment, and it is specified to get Dynamic Host Configuration Protocol server When configuration file, the binding relationship of bridge MAC Address and stack member apparatus is obtained from configuration file.
In the embodiment of the present invention, when the network equipment auto-config (automatically configure) environment sky configuration starting after, network Equipment can obtain IP address by Dynamic Host Configuration Protocol server.
Wherein, the network equipment may refer in existing DHCP protocol by the specific implementation that Dynamic Host Configuration Protocol server obtains IP address Associated description, this will not be repeated here for the embodiment of the present invention.
In auto-config allocation plan, when the network equipment gets IP address from Dynamic Host Configuration Protocol server, Dynamic Host Configuration Protocol server It can be network equipment specified configuration file, which is obtained by the network equipment.
For example, identification information (such as configuration filename for the configuration file that the network equipment can be specified according to Dynamic Host Configuration Protocol server Claim) obtained from TFTP (Trivial File Transfer Protocol, Simple File Transfer Protocol) server it is corresponding Configuration file.
In the embodiment of the present invention, in order to simplify the operation of stack member number configuration, the efficiency of stack member configuration is improved, The bridge of the corresponding network equipment (network equipment automatically configured using the configuration file) can be configured in configuration file The binding relationship of (Media Access Control, the media access control) address MAC and stack member number, in turn, network Equipment can carry out stack member according to the binding relationship of bridge MAC Address and stack member apparatus in the configuration file got Device numbering configuration.
Correspondingly, in embodiments of the present invention, it when the network equipment gets IP address by Dynamic Host Configuration Protocol server, and gets When the configuration file that Dynamic Host Configuration Protocol server is specified, the binding of bridge MAC Address and stack member number can be obtained from configuration file Relationship.
It should be noted that in embodiments of the present invention, if in the configuration file that the network equipment is got not including bridge MAC The binding relationship of address and stack member number, then the network equipment can be directly according to the configuration ginseng in the configuration file got Number carries out parameter configuration, and specific implementation may refer to the associated description in existing auto-config implementation, and the present invention is real It applies example and this is not repeated them here.
In addition, if the network equipment does not pass through Dynamic Host Configuration Protocol server and gets IP address or Dynamic Host Configuration Protocol server not to the network equipment Specified configuration file, then the network equipment automatically configures failure, at this point, the network equipment empty can configure starting, is embodied in This is not repeated them here.
Step 102, the stack member number according to the binding relationship Configuration network equipment got.
It, can be with when the network equipment gets the binding relationship of bridge MAC Address and stack member number in the embodiment of the present invention The configuration of stack member number is carried out according to the binding relationship of the bridge MAC Address and the stack member number got.
When the bridge MAC Address that the network equipment can include in determining itself bridge MAC Address and the binding relationship is identical, root It is numbered according to the stack member for the stack member number Configuration network equipment for including in the binding relationship.
Wherein, if the stack member number for including in the binding relationship is identical as the stack member number of the network equipment, The network equipment can keep stack member number constant;If the stack member number and the network equipment that include in the binding relationship Stack member number is different, then the stack member of itself can be numbered the stacking for being revised as the binding relationship and including by the network equipment Member's number.
As it can be seen that in method flow shown in Fig. 1, by the basis of auto-config implementation, in the network equipment The binding relationship of bridge MAC Address Yu the stack member number of Configuration network equipment in the configuration file used, in turn, the network equipment When can get IP address by Dynamic Host Configuration Protocol server, and get the configuration file that Dynamic Host Configuration Protocol server is specified, according to configuration The binding relationship for bridge MAC Address and the stack member number for including in file carries out stack member number and configures, and realizes stacking Member's number automatically configures, and simplifies the operation of stack member number, improves the efficiency of stack member number configuration.
In order to make those skilled in the art more fully understand technical solution provided in an embodiment of the present invention, below with reference to specific Example is illustrated technical solution provided in an embodiment of the present invention.
Fig. 2 is referred to, is a kind of configuration diagram of concrete application scene provided in an embodiment of the present invention, as shown in Fig. 2, The bridge MAC Address of switching equipment 210 is 0-0-1, and the bridge MAC Address of switching equipment 210 is 0-0-2, the bridge of switching equipment 230 MAC Address is 0-0-3, and the default stack member number of switching equipment 210~230 is 1, and switching equipment 210~230 uses The realization of auto-config scheme automatically configures.
Assuming that needing for 210~230 configuring stacking of switching equipment, and the stack member number of switching equipment 210 is 1, is handed over The stack member number of exchange device 220 is 2, and the stack member number of switching equipment 230 is 3.
Embodiment one
Assuming that different switching equipment is automatically configured by different configuration file realizations.Wherein, switching equipment 210 uses Configuration file pf1 realization automatically configures, and switching equipment 220 is automatically configured using configuration file pf2 realization, and switching equipment 230 makes It is automatically configured with configuration file pf3 realization.
Configuration file pf1~pf3 further includes that bridge MAC Address and stack member are compiled other than including conventional configuration parameter Number binding relationship.
Wherein, the binding relationship for bridge MAC Address and the stack member number for including in configuration file pf1 are as follows: 0-0-1~1; The binding relationship for bridge MAC Address and the stack member number for including in configuration file pf2 is 0-0-2~2;In configuration file pf3 Including bridge MAC Address and stack member number binding relationship be 0-0-3~3.
As shown in figure 3, in this embodiment, stack arrangement scheme implementation process may comprise steps of:
Step 301 configures starting in auto-config environment sky.
Step 302 obtains IP address by Dynamic Host Configuration Protocol server;If success, goes to step 304;Otherwise, step is gone to 303。
Whether step 303, judgement reach default maximum times by the number that Dynamic Host Configuration Protocol server obtains IP address.If so, Then automatically configure failure, sky configuration starting;Otherwise, step 302 is gone to.
In this embodiment it is possible to preset the maximum times that switching equipment obtains IP address by Dynamic Host Configuration Protocol server (referred to herein as default maximum times, can set according to actual scene, such as 3 times).
When obtaining IP address failure by Dynamic Host Configuration Protocol server, it can be determined that obtain IP address self by Dynamic Host Configuration Protocol server Number whether reach default maximum times (for 3 times);If reaching 3 times, i.e., continuous 3 times IP is obtained by Dynamic Host Configuration Protocol server Address failure, it is determined that automatically configure failure, sky configuration starting.If not up to 3 times, can reattempt to and pass through DHCP service Device obtains IP address.
Step 304, judge Dynamic Host Configuration Protocol server whether specified configuration file.If so, going to step 305;Otherwise, match automatically It sets unsuccessfully, sky configuration starting.
Step 305 obtains the specified configuration file of Dynamic Host Configuration Protocol server.
It in this embodiment, can be switching equipment specified configuration when Dynamic Host Configuration Protocol server is that switching equipment distributes IP address File;The filename for the configuration file that switching equipment can be specified according to Dynamic Host Configuration Protocol server obtains corresponding from tftp server Configuration file.
Wherein, Dynamic Host Configuration Protocol server is 210 specified configuration file pf1 of switching equipment (assuming that the entitled pf1 of file), DHCP service Device is 220 specified configuration file pf2 of switching equipment (assuming that the entitled pf2 of file), and Dynamic Host Configuration Protocol server, which is that switching equipment 230 is specified, matches Set file pf3 (assuming that the entitled pf3 of file).
Step 306 judges the binding relationship whether numbered including bridge MAC Address and stack member in configuration file;If so, Then go to step 307;Otherwise, parameter configuration is carried out according to the configuration parameter in configuration file.
In this embodiment, when switching equipment 210~230 gets configuration file, it can determine and be deposited in the configuration file In the binding relationship of bridge MAC Address and stack member number;
Wherein, the binding relationship for bridge MAC Address and the stack member number for including in configuration file pf1 is 0-0-1~1; The binding relationship for bridge MAC Address and the stack member number for including in configuration file pf2 is 0-0-2~2;In configuration file pf3 Including bridge MAC Address and stack member number binding relationship be 0-0-3~3.
Step 307 judges whether the bridge MAC Address for including in the binding relationship is identical as the bridge MAC Address of itself.If It is then to go to step 308;Otherwise, the binding relationship is not issued, and parameter is carried out according to the configuration parameter in configuration file and is matched It sets.
It in this embodiment, can when 210~switching equipment of switching equipment 230 gets the binding relationship in configuration file To determine that the bridge MAC Address for including in binding relationship is identical as the bridge MAC Address of itself.
Step 308, judge the stack member for including in the binding relationship number whether the stack member number phase with itself Together.If so, not issuing the binding relationship, and parameter configuration is carried out according to the configuration parameter in configuration file;Otherwise, this is issued Binding relationship, and empty configuration is restarted.
In this embodiment, switching equipment 210 can determine the stack member number for including in binding relationship and itself Stack member numbers identical (being 1), at this point, switching equipment 210 can keep the stack member number of itself constant, and according to Configuration parameter in configuration file carries out parameter configuration.
In this embodiment, switching equipment 220~230 can determine the stack member number for including in binding relationship and oneself The stack member of body numbers difference, repair at this point, switching equipment 220~230 can be numbered according to the stack member in binding relationship Change the stack member number of itself, and empty configuration is restarted.
Wherein, switching equipment 220, which numbers the stack member of itself, is revised as 2 by 1;Switching equipment 230 is by the heap of itself The person's of building up number is revised as 3 by 1.
After switching equipment 220~230 has modified the stack member number of itself, it empty configuration can restart automatically, restart Later, stack arrangement can be executed again according to mode described in step 301~step 308.
Wherein, due to switching equipment 220~230 itself stack member number is revised as in configuration file include Binding relationship in include stack member number, therefore, switching equipment 220~230 is after empty configuration is restarted again, in step In 308, determines that the stack member number of itself is identical as the stack member number in binding relationship, keep the stack member of itself Number it is constant, and according in configuration file configuration parameter carry out parameter configuration.
It should be noted that in this embodiment, due to stack member number and the default stack member of switching equipment 210 Number it is identical, therefore, in the configuration file (i.e. configuration file pf1) of switching equipment 210 can not include bridge MAC Address and stack The binding relationship of member's number in turn, can be directly according in configuration file when switching equipment 210 gets configuration file Configuration parameter carries out parameter configuration, and specific implementation does not repeat them here herein.
Embodiment two
It is automatically configured assuming that different switching equipment can be realized by same configuration file.Wherein, switching equipment 210 makes It is automatically configured with configuration file pf1 realization, switching equipment 220 and switching equipment 230 are matched automatically using configuration file pf2 realization It sets.
It does not include the binding relationship of bridge MAC Address and stack member number in configuration file pf1;Configuration file pf2 in addition to Except conventional configuration parameter, further include bridge MAC Address and stack member number binding relationship 0-0-2~2 and 0-0-3~ 3。
As shown in figure 4, in this embodiment, stack arrangement scheme implementation process may comprise steps of:
Step 401 configures starting in auto-config environment sky.
Step 402 obtains IP address by Dynamic Host Configuration Protocol server;If success, goes to step 404;Otherwise, step is gone to 403。
Whether step 403, judgement reach default maximum times by the number that Dynamic Host Configuration Protocol server obtains IP address.If so, Then automatically configure failure, sky configuration starting;Otherwise, step 402 is gone to.
In this embodiment it is possible to preset the maximum times that switching equipment obtains IP address by Dynamic Host Configuration Protocol server (referred to herein as default maximum times, can set according to actual scene, such as 3 times).
When obtaining IP address failure by Dynamic Host Configuration Protocol server, it can be determined that obtain IP address self by Dynamic Host Configuration Protocol server Number whether reach default maximum times (for 3 times);If reaching 3 times, i.e., continuous 3 times IP is obtained by Dynamic Host Configuration Protocol server Address failure, it is determined that automatically configure failure, sky configuration starting.If not up to 3 times, can reattempt to and pass through DHCP service Device obtains IP address.
Step 404, judge Dynamic Host Configuration Protocol server whether specified configuration file.If so, going to step 405;Otherwise, match automatically It sets unsuccessfully, sky configuration starting.
Step 405 obtains the specified configuration file of Dynamic Host Configuration Protocol server.
It in this embodiment, can be switching equipment specified configuration when Dynamic Host Configuration Protocol server is that switching equipment distributes IP address File;The filename for the configuration file that switching equipment can be specified according to Dynamic Host Configuration Protocol server obtains corresponding from tftp server Configuration file.
Wherein, Dynamic Host Configuration Protocol server is 210 specified configuration file pf1 of switching equipment (assuming that the entitled pf1 of file), DHCP service Device is switching equipment 220 and 230 specified configuration file pf2 of switching equipment (assuming that the entitled pf2 of file).
Step 406 judges the binding relationship whether numbered including bridge MAC Address and stack member in configuration file;If so, Then go to step 407;Otherwise, parameter configuration is carried out according to the configuration parameter in configuration file.
In this embodiment, when switching equipment 210 gets configuration file pf1, determine do not include bridge in the configuration file The binding relationship of MAC Address and stack member number, at this point, switching equipment 210 can keep the stack member of itself to number not Become, and parameter configuration is carried out according to the configuration parameter in configuration file pf1.
When switching equipment 220~230 gets configuration file pf2, it can determine that there are bridge MAC Address in the configuration file With the binding relationship of stack member number.
Wherein, the binding relationship for bridge MAC Address and the stack member number for including in configuration file pf2 includes 0-0-2~2 With 0-0-3~3.
Step 407 judges in the binding relationship with the presence or absence of the bridge MAC mesh identical with the bridge MAC Address of itself for including Mark binding relationship.If so, going to step 408;Otherwise, the binding relationship is not issued, and is joined according to the configuration in configuration file Number carries out parameter configuration.
In this embodiment, it when switching equipment 220~230 gets the binding relationship in configuration file pf2, can determine There is bridge MAC binding relationship identical with the bridge MAC Address of itself (the referred to herein as target bind pass for including in binding relationship System).
Wherein, the target bind relationship that switching equipment 220 determines is 0-0-2~2;The target that switching equipment 230 determines is tied up Determining relationship is 0-0-3~3.
Step 408 judges whether the stack member for including in target bind relationship number numbers with itself stack member It is identical.If so, not issuing the binding relationship, and parameter configuration is carried out according to the configuration parameter in configuration file;Otherwise, it issues The binding relationship, and empty configuration is restarted.
In this embodiment, switching equipment 220~230 can determine the stack member number for including in target bind relationship It is different from the stack member number of itself, at this point, switching equipment 220~230 can be according to being stacked into target bind relationship The stack member number of member's number modification itself, and empty configuration is restarted.
Wherein, switching equipment 220, which numbers the stack member of itself, is revised as 2 by 1;Switching equipment 230 is by the heap of itself The person's of building up number is revised as 3 by 1.
After switching equipment 220~230 has modified the stack member number of itself, it can reconfigure and restart, after restarting, Stack arrangement can be executed again according to mode described in step 401~step 408.
Wherein, due to switching equipment 220~230 itself stack member number is revised as in configuration file include Binding relationship in include stack member number, therefore, switching equipment 220~230 is after empty configuration is restarted again, in step In 408, determines that the stack member number of itself is identical as the stack member number in binding relationship, keep the stack member of itself Number it is constant, and according in configuration file configuration parameter carry out parameter configuration.
It should be noted that in embodiments of the present invention, for each member device in same stacking system, can be used The same configuration file carries out parameter configuration, i.e., the corresponding binding relationship of each member device is recorded in same configuration file, with For scene shown in Fig. 2, i.e. the binding relationship of switching equipment 210~230 can be only fitted in same configuration file, specific real It is existing that this will not be repeated here.
Through above description as can be seen that in technical solution provided in an embodiment of the present invention, by making in the network equipment The binding relationship of bridge MAC Address Yu the stack member number of Configuration network equipment, the network equipment pass through in configuration file Dynamic Host Configuration Protocol server gets IP address, and when getting the specified configuration file of Dynamic Host Configuration Protocol server, includes according in configuration file Bridge MAC Address and the binding relationship of stack member number carry out stack member number and configure, it is real in conjunction with auto-config scheme Show automatically configuring for stack member number, simplified the operation of stack member number, improves stack member number configuration Efficiency.
Fig. 5 is referred to, is a kind of structural schematic diagram of stack arrangement device provided in an embodiment of the present invention, wherein the heap Folded configuration device can be applied to the network equipment in above method embodiment, as shown in figure 5, the stack arrangement device can wrap It includes:
Acquiring unit 510 for getting IP address by dynamic host configuration protocol DHCP server, and is got The specified configuration file of Dynamic Host Configuration Protocol server;
Acquiring unit 510, the binding for being also used to obtain bridge MAC Address and stack member number from the configuration file are closed System;
Configuration unit 520, for being numbered according to the stack member of the binding relationship Configuration network equipment.
In an alternative embodiment, a configuration file includes that one or more bridge MAC Address are tied up with what stack member was numbered Determine relationship;
Such as scheme please also refer to Fig. 6 for the structural schematic diagram of another stack arrangement device provided in an embodiment of the present invention Shown in 6, on the basis of stack arrangement device shown in Fig. 5, stack arrangement device shown in Fig. 6 further include:
Query unit 530, for the bridge MAC Address according to the network equipment, with inquiring the bridge MAC for including in the configuration file The binding relationship of location and stack member number;
Configuration unit 520, it is identical with the bridge MAC Address of the network equipment specifically for the bridge MAC Address that includes if it exists Target bind relationship is numbered according to the stack member of target bind relationship Configuration network equipment.
In an alternative embodiment, configuration unit 520, specifically for being numbered when the stack member for including in target bind relationship When not identical as the stack member number of the network equipment, the stack member apparatus number of the network equipment is revised as target bind and is closed The stack member number for including in system, and the network equipment is restarted in empty configuration.
In an alternative embodiment, configuration unit 520, be also used in the target bind relationship stack member for including number with The stack member number of the network equipment is identical, then is configured according to the configuration parameter in configuration file to the network equipment.
In an alternative embodiment, configuration unit 520 are also used to the bridge MAC Address for including if it does not exist and the network equipment The identical target bind relationship of bridge MAC Address, then configure the network equipment according to the configuration parameter in the configuration file.
The function of each unit and the realization process of effect are specifically detailed in the above method and correspond to step in above-mentioned apparatus Realization process, details are not described herein.
For device embodiment, since it corresponds essentially to embodiment of the method, so related place is referring to method reality Apply the part explanation of example.The apparatus embodiments described above are merely exemplary, wherein described be used as separation unit The unit of explanation may or may not be physically separated, and component shown as a unit can be or can also be with It is not physical unit, it can it is in one place, or may be distributed over multiple network units.It can be according to actual The purpose for needing to select some or all of the modules therein to realize the present invention program.Those of ordinary skill in the art are not paying Out in the case where creative work, it can understand and implement.
As seen from the above-described embodiment, pass through the bridge MAC of Configuration network equipment in the configuration file that the network equipment uses The binding relationship of location and stack member number, the network equipment get IP address by Dynamic Host Configuration Protocol server, and get DHCP clothes Be engaged in device specified configuration file when, according to the binding relationship for bridge MAC Address and the stack member number for including in configuration file into The number configuration of row stack member, realizes automatically configuring for stack member number in conjunction with auto-config scheme, simplifies stacking The operation of member's number improves the efficiency of stack member number configuration.
Those skilled in the art after considering the specification and implementing the invention disclosed here, will readily occur to of the invention its Its embodiment.This application is intended to cover any variations, uses, or adaptations of the invention, these modifications, purposes or Person's adaptive change follows general principle of the invention and including the undocumented common knowledge in the art of the present invention Or conventional techniques.The description and examples are only to be considered as illustrative, and true scope and spirit of the invention are by following Claim is pointed out.
It should be understood that the present invention is not limited to the precise structure already described above and shown in the accompanying drawings, and And various modifications and changes may be made without departing from the scope thereof.The scope of the present invention is limited only by the attached claims.

Claims (10)

1. a kind of stack arrangement method, applied to the network equipment for supporting stacking, which is characterized in that the described method includes:
When the network equipment gets IP address by dynamic host configuration protocol DHCP server, and get the DHCP When the configuration file that server is specified, bridge MAC address is obtained from the configuration file and stack member is compiled Number binding relationship;
The stack member number of the network equipment is configured according to the binding relationship.
2. the method according to claim 1, wherein a configuration file includes one or more bridge MAC Address With the binding relationship of stack member number;
The stack member for configuring the network equipment according to the binding relationship is numbered, comprising:
According to the bridge MAC Address of the network equipment, inquires the bridge MAC Address for including in the configuration file and stack member is compiled Number binding relationship;
The bridge MAC Address for including if it exists target bind relationship identical with the bridge MAC Address of the network equipment, according to described Target bind relationship configures the stack member number of the network equipment.
3. according to the method described in claim 2, it is characterized in that, described configure the network according to the target bind relationship The stack member of equipment is numbered, comprising:
When the stack member number for including in the target bind relationship is not identical as the stack member number of the network equipment When, the stack member apparatus number of the network equipment is revised as the stack member for including in the target bind relationship and is compiled Number, and the network equipment is restarted in empty configuration.
4. according to the method described in claim 3, it is characterized in that, the method also includes:
When include in the target bind relationship stack member number it is identical as the stack member number of the network equipment, then The network equipment is configured according to the configuration parameter in the configuration file.
5. according to the method described in claim 2, it is characterized in that, the method also includes:
The bridge MAC Address for including if it does not exist target bind relationship identical with the bridge MAC Address of the network equipment, then basis Configuration parameter in the configuration file configures the network equipment.
6. a kind of stack arrangement device, applied to supporting the network equipment stacked, which is characterized in that described device includes:
Acquiring unit for getting IP address by dynamic host configuration protocol DHCP server, and gets the DHCP The specified configuration file of server;
The acquiring unit is also used to obtain bridge MAC address from the configuration file and stack member is compiled Number binding relationship;
Configuration unit, the stack member for configuring the network equipment according to the binding relationship are numbered.
7. device according to claim 6, which is characterized in that a configuration file includes one or more bridge MAC Address With the binding relationship of stack member number;
Described device further include:
Query unit, for the bridge MAC Address according to the network equipment, with inquiring the bridge MAC for including in the configuration file The binding relationship of location and stack member number;
The configuration unit, it is identical with the bridge MAC Address of the network equipment specifically for the bridge MAC Address that includes if it exists Target bind relationship is numbered according to the stack member that the target bind relationship configures the network equipment.
8. device according to claim 7, which is characterized in that
The configuration unit, specifically for when the stack member number and the network equipment for including in the target bind relationship Stack member number it is not identical when, the stack member apparatus of network equipment number is revised as the target bind relationship In include stack member number, and the network equipment is restarted in empty configuration.
9. device according to claim 8, which is characterized in that
The configuration unit is also used to the stack member for including in target bind relationship number and the network equipment Stack member number is identical, then is configured according to the configuration parameter in the configuration file to the network equipment.
10. device according to claim 8, which is characterized in that
It is identical with the bridge MAC Address of the network equipment to be also used to the bridge MAC Address for including if it does not exist for the configuration unit Target bind relationship then configures the network equipment according to the configuration parameter in the configuration file.
CN201910093124.1A 2019-01-30 2019-01-30 Stack configuration method and device Active CN109831330B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910093124.1A CN109831330B (en) 2019-01-30 2019-01-30 Stack configuration method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910093124.1A CN109831330B (en) 2019-01-30 2019-01-30 Stack configuration method and device

Publications (2)

Publication Number Publication Date
CN109831330A true CN109831330A (en) 2019-05-31
CN109831330B CN109831330B (en) 2021-08-24

Family

ID=66863050

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910093124.1A Active CN109831330B (en) 2019-01-30 2019-01-30 Stack configuration method and device

Country Status (1)

Country Link
CN (1) CN109831330B (en)

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101656722A (en) * 2009-08-27 2010-02-24 北京星网锐捷网络技术有限公司 Method for generating dynamic host configuration protocol (DHCP) snooping binding information, and device thereof
CN101848105A (en) * 2010-04-22 2010-09-29 华为技术有限公司 Number setting method and system for communication equipment
CN102664754A (en) * 2012-04-19 2012-09-12 华为技术有限公司 Method and device for updating port index and multiple device system
CN104104596A (en) * 2014-07-28 2014-10-15 杭州华三通信技术有限公司 Intelligent resilient framework (IRF) split processing method and device
WO2016165643A1 (en) * 2015-04-17 2016-10-20 Hangzhou H3C Technologies Co., Ltd. Generating system port identity
CN107528788A (en) * 2016-06-20 2017-12-29 新华三技术有限公司 Realize the method and apparatus stacked automatically between the network equipment
CN107547276A (en) * 2017-08-24 2018-01-05 新华三技术有限公司 Automatic stacking method, device, equipment and machinable medium

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101656722A (en) * 2009-08-27 2010-02-24 北京星网锐捷网络技术有限公司 Method for generating dynamic host configuration protocol (DHCP) snooping binding information, and device thereof
CN101848105A (en) * 2010-04-22 2010-09-29 华为技术有限公司 Number setting method and system for communication equipment
CN102664754A (en) * 2012-04-19 2012-09-12 华为技术有限公司 Method and device for updating port index and multiple device system
CN104104596A (en) * 2014-07-28 2014-10-15 杭州华三通信技术有限公司 Intelligent resilient framework (IRF) split processing method and device
WO2016165643A1 (en) * 2015-04-17 2016-10-20 Hangzhou H3C Technologies Co., Ltd. Generating system port identity
CN107528788A (en) * 2016-06-20 2017-12-29 新华三技术有限公司 Realize the method and apparatus stacked automatically between the network equipment
CN107547276A (en) * 2017-08-24 2018-01-05 新华三技术有限公司 Automatic stacking method, device, equipment and machinable medium

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
钱欢: "虚拟化堆叠技术研究及实现", 《电子测试》 *

Also Published As

Publication number Publication date
CN109831330B (en) 2021-08-24

Similar Documents

Publication Publication Date Title
US11611487B2 (en) Model driven process for automated deployment of domain 2.0 virtualized services and applications on cloud infrastructure
EP3731460A1 (en) Initializing network device and server configurations in a data center
CN103703724B (en) Resource payment method
US9137105B2 (en) Method and system for deploying at least one virtual network on the fly and on demand
CN107005471A (en) Universal Subscriber premises equipment
EP3163459B1 (en) Automatic configuration method and device for storage array, and storage system
CN103026660A (en) Network policy configuration method, management device and network management centre device
WO2014169870A1 (en) Virtual network element automatic loading and virtual machine ip address acquisition method and system, and storage medium
CN104734931A (en) Method and device for establishing link between virtual network functions
CN106293934B (en) A kind of cluster system management optimization method and platform
CN104104572A (en) Automatic deploying method and device for switch in SDN network
EP3731459B1 (en) Initializing server configurations in a data center
US20130201873A1 (en) Distributed fabric management protocol
CN106713039B (en) Ethernet port identification method and device and router
CN105024990A (en) Deployment method and device for network security attack and defense exercise environment
CN111464454B (en) Load sharing method and system for virtual BRAS (broadband remote Access Server) equipment in data center
CN108011732A (en) Method, controller and the system of configuration service resource
CN101951325A (en) Network terminal configuration system based on automatic discovery and configuration method thereof
CN106911779A (en) A kind of cloud platform virtual machine obtains IP method and devices
CN106612196B (en) Obtain the method and device of resource
CN104735176A (en) PXE booting method and device and server single board
CN109474443A (en) A kind of configuration method, device, system and the communication equipment of newly-increased server
WO2009059505A1 (en) A remote initialization method and system
CN105827496B (en) Manage the method and device of PE equipment
CN107968725B (en) Method and device for returning and configuring configuration information of home gateway unit type terminal device

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