CN104202202A - Network card interface binding method and network card interface binding device - Google Patents

Network card interface binding method and network card interface binding device Download PDF

Info

Publication number
CN104202202A
CN104202202A CN201410479925.9A CN201410479925A CN104202202A CN 104202202 A CN104202202 A CN 104202202A CN 201410479925 A CN201410479925 A CN 201410479925A CN 104202202 A CN104202202 A CN 104202202A
Authority
CN
China
Prior art keywords
network interface
interface card
card
interface
module
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201410479925.9A
Other languages
Chinese (zh)
Inventor
马新波
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
CEC CYBERSPACE GREAT WALL Co Ltd
Original Assignee
CEC CYBERSPACE GREAT WALL 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 CEC CYBERSPACE GREAT WALL Co Ltd filed Critical CEC CYBERSPACE GREAT WALL Co Ltd
Priority to CN201410479925.9A priority Critical patent/CN104202202A/en
Publication of CN104202202A publication Critical patent/CN104202202A/en
Pending legal-status Critical Current

Links

Abstract

The invention discloses a network card interface binding method and a network card interface binding device. The network card interface binding device comprises a binding module, wherein the binding module is used for binding at least two network card interfaces from different network card modules into a network card gathering group; and network redundancy is realized through the network card gathering group. By the network card interface binding method and the network card interface binding device, the problems of parts of network cable faults and interface faults of a network card can be effectively solved, and the problem of faults on the network modules can also be solved, so that the disaster resistance and the safety of the network are improved.

Description

Network interface card interface binding method and binding device
Technical field
The present invention relates to networking technology area, particularly network interface card interface binding method and binding device.
Background technology
In the available virtualized environment of height, in physical machine, can 4 above network interfaces be installed by pre-provisioning request.At present, the network interface card module being generally arranged in physical machine has following several types: card one interface, card two interfaces and card four interfaces.Wherein, described card one interface refers to and in a network interface card module, includes a network interface card interface, one card two interfaces refer to and in a network interface card module, include two network interface card interfaces, one card four interfaces refer to and in a network interface card module, include four network interface card interfaces, wherein, the network interface card module of card two interfaces is more in actual applications.
In prior art, to realize network interface card high when available, the network interface card interface of same network interface card module is bound to form network interface card aggregation group, this network interface card aggregation group can only solve netting twine failure problems and the interface fault problem of network interface card part, once network interface card module, itself break down, corresponding network interface card aggregation group has just lost the function of network redundancy.
Summary of the invention
The invention provides a kind of network interface card interface binding method and binding device, based on binding method provided by the invention, can not only effectively solve netting twine failure problems, the interface fault problem of network interface card part, and can also solve network interface card module failure problem, thereby disaster tolerance and the fail safe of network have been promoted.
For achieving the above object, the invention provides a kind of network interface card interface binding method, this binding method comprises:
At least two network interface card interfaces from different network interface card modules are bound to network interface card aggregation group.
Alternatively, describedly by bind the step of network interface card aggregation group from least two network interface card interfaces of different network interface card modules before, also comprise:
Obtain the interface name of network interface card interface in operating system described in each, and generate the first corresponding table of described network interface card interface and described interface name;
Described the step of binding network interface card aggregation group from least two network interface card interfaces of different network interface card modules is comprised:
According to the described first corresponding table and the first default aggregation information, described network interface card interface is bound, described the first aggregation information comprises: the physical location of network interface card interface in physical machine and network interface card aggregation group corresponding to network interface card interface described in each described in each.
Alternatively, describedly by bind the step of network interface card aggregation group from least two network interface card interfaces of different network interface card modules before, also comprise:
Obtain the interface name of network interface card interface in operating system described in each, and according to the second default aggregation information to described network interface card interface the interface name in operating system modify, described the second aggregation information comprises: the physical location of network interface card interface in physical machine described in each, the predetermined title of network interface card interface in operating system and the network interface card aggregation group that described in each, network interface card interface is corresponding described in each;
Described the step of binding network interface card aggregation group from least two network interface card interfaces of different network interface card modules is comprised:
According to the second default aggregation information, described network interface card interface is bound.
Alternatively, default the second aggregation information step that the interface name in operating system is modified to described network interface card interface of described basis comprises:
Relatively described in each, whether the interface name of network interface card interface in operating system be consistent with predetermined title corresponding in described the second aggregation information;
When comparing the interface name of described network interface card interface in operating system when inconsistent with predetermined title corresponding in described the second aggregation information, the interface name in operating system is revised as to predetermined title.
Alternatively, any two the described network interface card interfaces in described network interface card aggregation group are all from different network interface card modules.
For achieving the above object, the present invention also provides a kind of network interface card interface binding device, comprising: binding module;
Described binding module is for binding network interface card aggregation group by least two network interface card interfaces from different network interface card modules.
Alternatively, described binding device also comprises: the first acquisition module and generation module;
Described the first acquisition module is for obtaining described in each network interface card interface in the interface name of operating system;
Described generation module is for generating the first corresponding table of described network interface card interface and described interface name;
Described binding module is specifically for binding described network interface card interface according to the described first corresponding table and the first default aggregation information, and described the first aggregation information comprises: the physical location of network interface card interface in physical machine and network interface card aggregation group corresponding to network interface card interface described in each described in each.
Alternatively, described binding device also comprises: the second acquisition module and modified module;
Described the second acquisition module is for obtaining described in each network interface card interface in the interface name of operating system;
Described modified module is for modifying in the interface name of operating system to described network interface card interface according to the second default aggregation information, and described the second aggregation information comprises: the physical location of network interface card interface in physical machine described in each, the predetermined title of network interface card interface in operating system and the network interface card aggregation group that described in each, network interface card interface is corresponding described in each;
Described binding module is specifically for binding described network interface card interface according to the second aggregation information.
Alternatively, described modified module comprises: comparison sub-module and modification submodule;
Whether the interface name in operating system is consistent with predetermined title corresponding in described the second aggregation information for the described network interface card interface in each physical location of comparison for described comparison sub-module;
If described modification submodule, for comparing described network interface card interface in the physical location interface name in operating system and predetermined title corresponding in described the second aggregation information when inconsistent, is revised as described predetermined title by the described interface name in operating system.
Alternatively, any two the described network interface card interfaces in described network interface card aggregation group are all from different network interface card modules.
The present invention has following beneficial effect:
The invention discloses a kind of network interface card interface binding method and binding device, this network interface card interface binding device comprises: binding module, binding module is for just binding network interface card aggregation group from least two network interface card interfaces of different network interface card modules, thereby realized network redundancy, network interface card interface binding method provided by the invention and binding device can not only effectively solve netting twine failure problems, the interface fault problem of network interface card part, and can also solve network interface card module failure problem, thereby disaster tolerance and the fail safe of network have been promoted.
Accompanying drawing explanation
The flow chart of the network interface card interface binding method that Fig. 1 provides for the embodiment of the present invention;
Fig. 2 is the schematic diagram of network interface card interface physical machine while binding;
Fig. 3 is for adopting the schematic diagram of the physical machine of carrying out the binding of network interface card interface of network interface card interface binding method provided by the invention;
The flow chart of the network interface card interface binding method that Fig. 4 provides for the embodiment of the present invention two;
The flow chart of the network interface card interface binding method that Fig. 5 provides for the embodiment of the present invention;
The structural representation of the network interface card interface binding device that Fig. 6 provides for the embodiment of the present invention four;
The structural representation of the network interface card interface binding device that Fig. 7 provides for the embodiment of the present invention five.
Embodiment
For making those skilled in the art understand better technical scheme of the present invention, below in conjunction with accompanying drawing, network interface card interface binding method provided by the invention and binding device are described in detail.
Embodiment mono-
The flow chart of the network interface card interface binding method that Fig. 1 provides for the embodiment of the present invention, as shown in Figure 1, this binding method comprises:
Step 101: at least two network interface card interfaces from different network interface card modules are bound to network interface card aggregation group.
Below in conjunction with accompanying drawing, principle of the present invention is carried out to exemplary description.
Fig. 2 is the schematic diagram of network interface card interface physical machine while binding, as shown in Figure 2, in this physical machine, the quantity of network interface card module is three, and these three network interface card modules are respectively: networking-on-motherboard card module 1, the first extend web card module 2 and the second extend web card module 3, each network interface card module includes two network interface card interfaces simultaneously, table 1 is the list of the physical location of six network interface card interfaces in physical machine, referring to as following table 1.
Table 1
Numbering The physical location of network interface card interface Affiliated network interface card module
11 Networking-on-motherboard card module from right to left first Networking-on-motherboard card module
12 Second from right to left of networking-on-motherboard card module Networking-on-motherboard card module
31 The second extend web card module from top to bottom first The second extend web card module
32 Second from top to bottom of the second extend web card module The second extend web card module
21 The first extend web card module from top to bottom first The first extend web card module
22 Second from top to bottom of the first extend web card module The first extend web card module
As a kind of optional binding scheme, table 2 is the binding scheme list of six network interface card interfaces, referring to as following table 2.
Table 2
Numbering The physical location of network interface card interface Network interface card aggregation group
11 Networking-on-motherboard card module from right to left first Bond_1
12 Second from right to left of networking-on-motherboard card module Bond_2
31 The second extend web card module from top to bottom first Bond_2
32 Second from top to bottom of the second extend web card module Bond_3
21 The first extend web card module from top to bottom first Bond_1
22 Second from top to bottom of the first extend web card module Bond_3
Wherein, Bond_1 refers to the first network interface card aggregation group, and Bond_2 refers to the second network interface card aggregation group, and Bond_3 refers to the 3rd network interface card aggregation group.Fig. 3 is for adopting the schematic diagram of the physical machine of carrying out the binding of network interface card interface of network interface card interface binding method provided by the invention, as shown in Figure 3, networking-on-motherboard card module 1 from right to left first network interface card interface 11 and the first extend web card module 2 from top to bottom first network interface card interface 21 bind the first network interface card aggregation group, networking-on-motherboard card module 1 from right to left the network interface card interface 12 of second and the second extend web card module 3 from top to bottom first network interface card interface 31 bind the second network interface card aggregation group, the first extend web card module 2 from top to bottom the network interface card interface 22 of second and the second extend web card module 3 from top to bottom the network interface card interface 32 of second bind the 3rd network interface card aggregation group.
When networking-on-motherboard card module 1 breaks down problem, the business that network interface card interface 21 in the first extend web card module 2 can be taken over network interface card interface 11 in networking-on-motherboard card module 1, the business that network interface interface 31 in the second extend web card module 3 can be taken over network interface card interface 12 in networking-on-motherboard card module 1, physical machine can be worked normally, thereby realized network redundancy.
It should be noted that, in the present embodiment, in physical machine, the quantity of network interface card module is three, each network interface card module comprises two network interface card interfaces, and six network interface card interfaces adopt the situation of the binding scheme that above-mentioned table 2 provides only for playing exemplary effect, technical scheme of the present invention is not produced to restriction.In the present invention, can also adopt other binding scheme, to realize, at least two network interface card interfaces from different network interface card modules are bound to network interface card aggregation group, for example: the network interface card interface 11 in Fig. 2, network interface card interface 12 and network interface card interface 21 can also be bound to the first network interface card aggregation group, network interface card interface 22, network interface card interface 31 and network interface card interface 32 are bound to the second network interface card aggregation group, now the network interface card interface in network interface card aggregation group is from two different network interface card modules simultaneously.Or the network interface card interface 11 in Fig. 2, network interface card interface 21 and network interface card interface 31 can also be bound to the first network interface card aggregation group, network interface card interface 12, network interface card interface 22 and network interface card interface 32 are bound to the second network interface card aggregation group, now any two the network interface card interfaces in network interface card aggregation group are all from different network interface card modules simultaneously.For other binding scheme, this herein no longer one by one for example.
The embodiment of the present invention one provides a kind of network interface card interface binding method, by all not binding network interface card aggregation group at least two network interface card interfaces of same network interface card module by any two, realized network redundancy, and the binding method based in the present embodiment can not only effectively solve netting twine failure problems, the interface fault problem of network interface card part, and can also solve network interface card module failure problem, thereby disaster tolerance and the fail safe of network have been promoted.
Embodiment bis-
The flow chart of the network interface card interface binding method that Fig. 4 provides for the embodiment of the present invention two, as shown in Figure 4, this binding method comprises:
Step 201: obtain the interface name of each network interface card interface in operating system, and generate the first corresponding table of network interface card interface and interface name.
In the present embodiment, the operating system in physical machine is SUSE (SuSE) Linux OS (abbreviation linux system), and adopts the physical machine shown in the Fig. 2 in above-described embodiment one in supposition physical machine.
In step 201, principle and the process of obtaining in Fig. 2 the interface name of six network interface card interfaces in linux system are roughly as follows:
Because the quantity of network interface card interface in physical machine is six, therefore at linux system, can automatically for these six network interface card interface assignment, there is interface name (eth0, eth1, eth2, eth3, eth4, eth5), therefore only need determine the network interface card interface that each interface name is corresponding.
Particularly, action command: ethtool-p{ interface name } N, to determine the physical location of the corresponding network interface card interface of this interface name in physical machine, N is time (unit: second).
Take below and search network interface card interface that interface name is eth0 and be described in detail as example.First, action command ethtool – p eth010; Then, the status lamp of network interface card interface corresponding to physical machine flicker 10s; Finally, the physical location of the network interface card interface of recording status lamp flicker, thus determined the physical location of the network interface card interface that interface name is eth0.
In the manner described above, take and determine that interface name is as the physical location of network interface card interface corresponding to eth0, eth1, eth2, eth3, eth4 and eth5 difference, and generate the first corresponding table of network interface card interface and interface name, suppose the as shown in table 3 to relation of network interface card interface and interface name in the present embodiment, table 3 is network interface card interface and the first corresponding table of interface name, referring to as following table 3.
Table 3
The physical location of network interface card interface Interface name
Networking-on-motherboard card module from right to left first eth0
Second from right to left of networking-on-motherboard card module eth1
The second extend web card module from top to bottom first eth2
Second from top to bottom of the second extend web card module eth3
The first extend web card module from top to bottom first eth4
Second from top to bottom of the first extend web card module eth5
Be networking-on-motherboard card module from right to left the interface name of first network interface card interface (in Fig. 2, label 11) be eth0, the networking-on-motherboard card module from right to left interface name of second network interface card interface (in Fig. 2, label 12) is eth1, the the second extend web card module from top to bottom interface name of first network interface card interface (in Fig. 2, label 31) is eth2, the the first extend web card module from top to bottom interface name of second network interface card interface (in Fig. 2, label 32) is eth3, the the first extend web card module from top to bottom interface name of first network interface card interface (in Fig. 2, label 21) is eth4, the the first extend web card module from top to bottom interface name of second network interface card interface (in Fig. 2, label 22) is eth5.
It should be noted that, network interface card interface and interface name may be also other corresponding relation certainly, and the situation in above-mentioned table 3 only plays exemplary effect.
Step 202: network interface card interface is bound according to the first corresponding table and the first default aggregation information.
Before binding, according to the actual conditions of physical machine, make a kind of feasible aggregation scheme, and generate the first aggregation information, wherein the first aggregation information comprises: the physical location of each network interface card interface in physical machine and network interface card aggregation group corresponding to each network interface card interface.Suppose in this enforcement and need to realize the aggregation scheme shown in Fig. 3, corresponding the first aggregation information can be referring to table 4, and table 4 is the corresponding table of network interface card interface and network interface card aggregation group in the first aggregation information, referring to as following table 4.
Table 4
The physical location of network interface card interface Network interface card aggregation group
Networking-on-motherboard card module from right to left first Bond_1
Second from right to left of networking-on-motherboard card module Bond_2
The second extend web card module from top to bottom first Bond_2
Second from top to bottom of the second extend web card module Bond_3
The first extend web card module from top to bottom first Bond_1
Second from top to bottom of the first extend web card module Bond_3
In step 202, according to the first corresponding table (referring to table 3) and the first aggregation information (referring to table 4), can draw interface name corresponding to each network interface card interface in each network interface card aggregation group, table 5 is the mapping table of interface name and network interface card aggregation group, referring to as following table 5.
Table 5
In linux system, according to table 5, by interface name, be that the network interface card interface that eth0 and interface name are eth4 is bound the first network interface card aggregation group, by interface name, be that the network interface card interface that eth1 and interface name are eth2 is bound the second network interface card aggregation group, by interface name, be that the network interface card interface that eth5 and interface name are eth3 is bound the 3rd network interface card aggregation group, flow process finishes.
When networking-on-motherboard card module breaks down after problem, interface name is that the network interface card interface that eth0 and interface name are eth1 can not be worked, the network interface card interface that now in the first extend web card module, interface name is eth4 is taken over the business of the network interface card interface that interface name is eth0, the network interface card interface that in the second extend web card module, interface name is eth2 is taken over the business of the network interface card interface that interface name is eth1, physical machine can be worked normally, thereby realized network redundancy.
The embodiment of the present invention two provides a kind of network interface card interface binding method, by all not binding network interface card aggregation group at least two network interface card interfaces of same network interface card module by any two, realized network redundancy, and the binding method based in the present embodiment can not only effectively solve netting twine failure problems, the interface fault problem of network interface card part, and can also solve network interface card module failure problem, thereby disaster tolerance and the fail safe of network have been promoted.
Embodiment tri-
The flow chart of the network interface card interface binding method that Fig. 5 provides for the embodiment of the present invention, as shown in Figure 5, this binding method comprises:
Step 301: obtain the interface name of each network interface card interface in operating system, and according to the second default aggregation information to network interface card interface the interface name in operating system modify.
In the present embodiment, the operating system in physical machine is linux system, and adopts the physical machine shown in the Fig. 2 in above-described embodiment one in supposition physical machine.
Before binding, according to the actual conditions of physical machine, pre-establish out a kind of feasible aggregation scheme, and generate the second aggregation information, wherein the second aggregation information comprises: physical location, each network interface card interface predetermined title and network interface card aggregation group corresponding to each network interface card interface on operating system of each network interface card interface in physical machine.It should be noted that, in the present embodiment, the difference of the second aggregation information and the first aggregation information is, in the second aggregation information, not only network interface card optically focused group corresponding to each network interface card interface limited, also the interface name of each network interface card interface in operating system carried out limiting (i.e. predetermined title).The benefit of wherein, the interface name of each network interface card interface in operating system having been carried out limiting will be described below.
In step 301, suppose that the corresponding relation of the physical location of the interface name that gets and network interface card interface meets the situation shown in the table 3 in above-described embodiment two.Continuation is with reference to figure 2, be networking-on-motherboard card module from right to left the interface name of first network interface card interface (in Fig. 2, label 11) be eth0, the networking-on-motherboard card module from right to left interface name of second network interface card interface (in Fig. 2, label 12) is eth1, the the second extend web card module from top to bottom interface name of first network interface card interface (in Fig. 2, label 31) is eth2, the the first extend web card module from top to bottom interface name of second network interface card interface (in Fig. 2, label 32) is eth3, the the first extend web card module from top to bottom interface name of first network interface card interface (in Fig. 2, label 21) is eth4, the the first extend web card module from top to bottom interface name of second network interface card interface (in Fig. 2, label 22) is eth5.
Suppose in the present embodiment and need to realize the aggregation scheme shown in Fig. 3, corresponding the second aggregation information can be referring to table 6, and table 6 is the correspondence table of network interface card interface in the second aggregation information, predetermined title and network interface card aggregation group, referring to as following table 6.
The physical location of network interface card interface Predetermined title Network interface card aggregation group
Networking-on-motherboard card module from right to left first eth0 Bond_1
Second from right to left of networking-on-motherboard card module eth2 Bond_2
The second extend web card module from top to bottom first eth3 Bond_2
Second from top to bottom of the second extend web card module eth5 Bond_3
The first extend web card module from top to bottom first eth1 Bond_1
Second from top to bottom of the first extend web card module eth4 Bond_3
According to default the second aggregation information (referring to table 6) to network interface card interface the interface name in linux system modify, concrete modification process is as follows:
First, relatively whether the interface name of the network interface card interface in each physical location in operating system be consistent with predetermined title corresponding in the second aggregation information; If compare network interface card interface in the physical location interface name in operating system when consistent with predetermined title corresponding in the second aggregation information, the interface name in operating system do not modified; If compare network interface card interface in the physical location interface name in operating system when inconsistent with predetermined title corresponding in the second aggregation information, the interface name in operating system be revised as to predetermined title.
Therefore,, for the situation in table 3, need the interface name in linux system of five network interface card interfaces to modify.Particularly, by networking-on-motherboard card module from right to left the interface name of second network interface card interface (in Fig. 2, label 12) be revised as eth2, the the second extend web card module from top to bottom interface name of first network interface card interface (in Fig. 2, label 31) is revised as eth3, the the second extend web card module from top to bottom interface name of second network interface card interface (in Fig. 2, label 32) is revised as eth5, the the first extend web card module from top to bottom interface name of first network interface card interface (in Fig. 2, label 21) is revised as eth1, the the first extend web card module from top to bottom interface name of second network interface card interface (in Fig. 2, label 22) is revised as eth4.
The above-mentioned retouching operation to each interface name is specially: first, open in linux system/etc/udev/rules.d/70-persistent-net.rules file, record the interface name of six network interface card interfaces in linux system in this document; Then, the interface name of corresponding network interface card interface in this document is revised as to predetermined title; Finally, restart linux system, realized the modification to the interface name of each network interface card interface in linux system.
After performing step 301, the relation of the interface name in linux system and network interface card aggregation group can be referring to table 7.Table 5 is the mapping table of interface name and network interface card aggregation group, referring to as following table 7.
Table 7
Step 302: network interface card interface is bound according to the second aggregation information.
In linux system, according to the second aggregation information (referring to 6) or above-mentioned table 7, by interface name, be that the network interface card interface that eth0 and interface name are eth1 is bound the first network interface card aggregation group, by interface name, be that the network interface card interface that eth2 and interface name are eth3 is bound the second network interface card aggregation group, by interface name, be that the network interface card interface that eth4 and interface name are eth5 is bound the 3rd network interface card aggregation group, flow process finishes.
Owing in the second aggregation information, the interface name of each network interface card interface in operating system being limited, in the network interface card aggregation group that can make in step 302 to form, the interface name of each network interface card interface is according to from small to large and continuous arrangement, this arrangement mode can make the configuration of network interface card aggregation group be easy to unified with safeguard.
The embodiment of the present invention three provides a kind of network interface card interface binding method, first by obtaining the interface name of each network interface card interface in operating system, and according to the second default aggregation information to network interface card interface the interface name in operating system modify, then according to the second aggregation information, network interface card interface is bound, realized network redundancy, and the binding method based in the present embodiment can not only effectively solve the netting twine failure problems of network interface card part, interface fault problem, and can also solve network interface card module failure problem, thereby disaster tolerance and the fail safe of network have been promoted.
Embodiment tetra-
The structural representation of the network interface card interface binding device that Fig. 6 provides for the embodiment of the present invention four, as shown in Figure 6, this network interface card interface binding device comprises: binding module 6, binding module 6 is for binding network interface card aggregation group by least two network interface card interfaces from different network interface card modules.
Alternatively, any two the network interface card interfaces in network interface card aggregation group are all from different network interface card modules.
Further, this network interface card interface binding device also comprises: the first acquisition module 4 and generation module 5, the first acquisition module 4 is for obtaining each network interface card interface in the interface name of operating system, generation module 5 is for generating the first corresponding table of network interface card interface and interface name, now, binding module 6 is specifically for binding network interface card interface according to the first corresponding table and the first default aggregation information, and the first aggregation information comprises: the physical location of each network interface card interface in physical machine and network interface card aggregation group corresponding to each network interface card interface.
The first acquisition module 4 in the present embodiment and generation module 5 are common for realizing the step 201 of above-described embodiment two, binding module 6 is specifically for realizing the step 202 in above-described embodiment two, detailed process can, referring to the description in above-described embodiment two, repeat no more herein.
The embodiment of the present invention four provides a kind of network interface card interface binding device, this binding device comprises: binding module, binding module is not by all binding network interface card aggregation group at least two network interface card interfaces of same network interface card module by any two, realized network redundancy, and the binding device based in the present embodiment can not only effectively solve netting twine failure problems, the interface fault problem of network interface card part, and can also solve network interface card module failure problem, thereby disaster tolerance and the fail safe of network have been promoted.
Embodiment five
The structural representation of the network interface card interface binding device that Fig. 7 provides for the embodiment of the present invention five, as shown in Figure 7, this network interface card interface binding device comprises: binding module 9, binding module 9 is for binding network interface card aggregation group by least two network interface card interfaces from different network interface card modules.
Alternatively, any two the network interface card interfaces in network interface card aggregation group are all from different network interface card modules.
Further, this network interface card interface binding device also comprises: the second acquisition module 7 and modified module 8, the second acquisition module 7 is for obtaining each network interface card interface in the interface name of operating system, modified module 8 is for modifying in the interface name of operating system to network interface card interface according to the second default aggregation information, the second aggregation information comprises: the physical location of each network interface card interface in physical machine, the predetermined title of each network interface card interface in operating system and network interface card aggregation group corresponding to each network interface card interface, binding module 9 is for binding network interface card interface according to the second aggregation information.
Further, modified module 8 comprises comparison sub-module 81 and modification submodule 82, and whether the interface name in operating system is consistent with predetermined title corresponding in the second aggregation information for the network interface card interface in each physical location of comparison for comparison sub-module 81; If revise submodule 82 for comparing network interface card interface in the physical location interface name in operating system and predetermined title corresponding in the second aggregation information when inconsistent, the interface name in operating system be revised as to predetermined title.
The second acquisition module 7 in the present embodiment and modified module 8 are common for realizing the step 301 of above-described embodiment three, binding module 9 is specifically for realizing the step 302 in above-described embodiment two, detailed process can, referring to the description in above-described embodiment three, repeat no more herein.
The embodiment of the present invention five provides a kind of network interface card interface binding device, this network card binding device comprises: the second acquisition module, modified module and binding module, technical scheme of the present invention is first obtained the interface name of each network interface card interface in operating system by the second acquisition module, and by modified module according to the second default aggregation information to network interface card interface the interface name in operating system modify, finally utilize binding module according to the second aggregation information, network interface card interface to be bound, thereby realized network redundancy, and the binding device based in the present embodiment can not only effectively solve the netting twine failure problems of network interface card part, interface fault problem, and can also solve network interface card module failure problem, thereby disaster tolerance and the fail safe of network have been promoted.
Be understandable that, above execution mode is only used to principle of the present invention is described and the illustrative embodiments that adopts, yet the present invention is not limited thereto.For those skilled in the art, without departing from the spirit and substance in the present invention, can make various modification and improvement, these modification and improvement are also considered as protection scope of the present invention.

Claims (10)

1. a network interface card interface binding method, is characterized in that, comprising:
At least two network interface card interfaces from different network interface card modules are bound to network interface card aggregation group.
2. network interface card interface binding method according to claim 1, is characterized in that, describedly by bind the step of network interface card aggregation group from least two network interface card interfaces of different network interface card modules before, also comprises:
Obtain the interface name of network interface card interface in operating system described in each, and generate the first corresponding table of described network interface card interface and described interface name;
Described the step of binding network interface card aggregation group from least two network interface card interfaces of different network interface card modules is comprised:
According to the described first corresponding table and the first default aggregation information, described network interface card interface is bound, described the first aggregation information comprises: the physical location of network interface card interface in physical machine and network interface card aggregation group corresponding to network interface card interface described in each described in each.
3. network interface card interface binding method according to claim 1, is characterized in that, describedly by bind the step of network interface card aggregation group from least two network interface card interfaces of different network interface card modules before, also comprises:
Obtain the interface name of network interface card interface in operating system described in each, and according to the second default aggregation information to described network interface card interface the interface name in operating system modify, described the second aggregation information comprises: the physical location of network interface card interface in physical machine described in each, the predetermined title of network interface card interface in operating system and the network interface card aggregation group that described in each, network interface card interface is corresponding described in each;
Described the step of binding network interface card aggregation group from least two network interface card interfaces of different network interface card modules is comprised:
According to the second default aggregation information, described network interface card interface is bound.
4. network interface card interface binding method according to claim 3, is characterized in that, default the second aggregation information step that the interface name in operating system is modified to described network interface card interface of described basis comprises:
Relatively described in each, whether the interface name of network interface card interface in operating system be consistent with predetermined title corresponding in described the second aggregation information;
When comparing the interface name of described network interface card interface in operating system when inconsistent with predetermined title corresponding in described the second aggregation information, the interface name in operating system is revised as to predetermined title.
5. network interface card interface binding method according to claim 1, is characterized in that, any two the described network interface card interfaces in described network interface card aggregation group are all from different network interface card modules.
6. a network interface card interface binding device, is characterized in that, comprising: binding module, described binding module is for binding network interface card aggregation group by least two network interface card interfaces from different network interface card modules.
7. network interface card interface binding device according to claim 6, is characterized in that, also comprises: the first acquisition module and generation module;
Described the first acquisition module is for obtaining described in each network interface card interface in the interface name of operating system;
Described generation module is for generating the first corresponding table of described network interface card interface and described interface name;
Described binding module is specifically for binding described network interface card interface according to the described first corresponding table and the first default aggregation information, and described the first aggregation information comprises: the physical location of network interface card interface in physical machine and network interface card aggregation group corresponding to network interface card interface described in each described in each.
8. network interface card interface binding device according to claim 6, is characterized in that, also comprises: the second acquisition module and modified module;
Described the second acquisition module is for obtaining described in each network interface card interface in the interface name of operating system;
Described modified module is for modifying in the interface name of operating system to described network interface card interface according to the second default aggregation information, and described the second aggregation information comprises: the physical location of network interface card interface in physical machine described in each, the predetermined title of network interface card interface in operating system and the network interface card aggregation group that described in each, network interface card interface is corresponding described in each;
Described binding module is specifically for binding described network interface card interface according to the second aggregation information.
9. network interface card interface binding device according to claim 8, is characterized in that, described modified module comprises: comparison sub-module and modification submodule;
Whether the interface name in operating system is consistent with predetermined title corresponding in described the second aggregation information for the described network interface card interface in each physical location of comparison for described comparison sub-module;
If described modification submodule, for comparing described network interface card interface in the physical location interface name in operating system and predetermined title corresponding in described the second aggregation information when inconsistent, is revised as described predetermined title by the described interface name in operating system.
10. network interface card interface binding device according to claim 6, is characterized in that, any two the described network interface card interfaces in described network interface card aggregation group are all from different network interface card modules.
CN201410479925.9A 2014-09-18 2014-09-18 Network card interface binding method and network card interface binding device Pending CN104202202A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410479925.9A CN104202202A (en) 2014-09-18 2014-09-18 Network card interface binding method and network card interface binding device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410479925.9A CN104202202A (en) 2014-09-18 2014-09-18 Network card interface binding method and network card interface binding device

Publications (1)

Publication Number Publication Date
CN104202202A true CN104202202A (en) 2014-12-10

Family

ID=52087432

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410479925.9A Pending CN104202202A (en) 2014-09-18 2014-09-18 Network card interface binding method and network card interface binding device

Country Status (1)

Country Link
CN (1) CN104202202A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107046469A (en) * 2017-05-11 2017-08-15 郑州云海信息技术有限公司 A kind of method extended for server load balancing network card equipment
CN107204899A (en) * 2017-06-30 2017-09-26 郑州云海信息技术有限公司 A kind of method of testing of network interface card, device and terminal
CN107395423A (en) * 2017-07-28 2017-11-24 郑州云海信息技术有限公司 The method and apparatus for binding the network port and network card interface
CN109547233A (en) * 2018-10-10 2019-03-29 华为技术有限公司 A kind of method, apparatus and server of the configuration of server network interface

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20050038878A1 (en) * 2003-07-15 2005-02-17 Mcgee Michael S. Network controller
CN1809021A (en) * 2005-01-17 2006-07-26 华为技术有限公司 Ethernet link converging method
CN103176780A (en) * 2011-12-22 2013-06-26 中国科学院声学研究所 Binding system and method of multiple network interfaces

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20050038878A1 (en) * 2003-07-15 2005-02-17 Mcgee Michael S. Network controller
CN1809021A (en) * 2005-01-17 2006-07-26 华为技术有限公司 Ethernet link converging method
CN103176780A (en) * 2011-12-22 2013-06-26 中国科学院声学研究所 Binding system and method of multiple network interfaces

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107046469A (en) * 2017-05-11 2017-08-15 郑州云海信息技术有限公司 A kind of method extended for server load balancing network card equipment
CN107046469B (en) * 2017-05-11 2021-02-02 苏州浪潮智能科技有限公司 Method for expanding server load balancing network card equipment
CN107204899A (en) * 2017-06-30 2017-09-26 郑州云海信息技术有限公司 A kind of method of testing of network interface card, device and terminal
CN107395423A (en) * 2017-07-28 2017-11-24 郑州云海信息技术有限公司 The method and apparatus for binding the network port and network card interface
CN109547233A (en) * 2018-10-10 2019-03-29 华为技术有限公司 A kind of method, apparatus and server of the configuration of server network interface

Similar Documents

Publication Publication Date Title
WO2017152633A1 (en) Port binding implementation method and device
US8635616B2 (en) Virtualization processing method and apparatuses, and computer system
US9697053B2 (en) System and method for managing excessive distribution of memory
CN104202202A (en) Network card interface binding method and network card interface binding device
CN104685830A (en) Fault management method, entity and system
CN103078747B (en) PCIe switch and method of work thereof
CN103064717B (en) A kind of apparatus and method of parallel installation of software for cluster system
JP2013097394A5 (en)
US8321617B1 (en) Method and apparatus of server I/O migration management
CN107395710B (en) Method and device for realizing configuration and high availability HA of cloud platform network element
CN103246549B (en) A kind of method and system of data conversion storage
US11188347B2 (en) Virtual function driver loading method and server using global and local identifiers corresponding to locations of the virtual functions
WO2011157219A1 (en) Method and device for distributing logic disk letter
CN105704188A (en) Deployment method and apparatus of applications and services
US20210406050A1 (en) Techniques to decrease a live migration time for a virtual machine
CN104111867B (en) A kind of virtual machine (vm) migration device and method
US20140074261A1 (en) Rack server system and method for automatically managing rack configuration information
CN110633130B (en) Virtual memory management method and device based on memory hot plug technology
CN111190775A (en) OSD (on Screen display) replacing method, system, equipment and computer readable storage medium
RU2019102666A (en) AN APPROACH TO ORGANIZING A DISPATCHING NETWORK FOR CLUSTERED AND FEDERATED STORAGE SYSTEMS
CN103634128A (en) A configuration method of a virtual machine placing strategy and an apparatus
EP2908465B1 (en) High availability method and system for improving the utility of physical servers in cloud computing resource pool
CN108037894B (en) Disk space management method and device
CN107547258B (en) Method and device for realizing network policy
CN110457114B (en) Application cluster deployment method and device

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20141210