CN109450726A - A kind of bonding test method of the double network interfaces of integrated network card - Google Patents

A kind of bonding test method of the double network interfaces of integrated network card Download PDF

Info

Publication number
CN109450726A
CN109450726A CN201811292799.0A CN201811292799A CN109450726A CN 109450726 A CN109450726 A CN 109450726A CN 201811292799 A CN201811292799 A CN 201811292799A CN 109450726 A CN109450726 A CN 109450726A
Authority
CN
China
Prior art keywords
measured
network interfaces
network
double
node
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
CN201811292799.0A
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.)
Zhengzhou Yunhai Information Technology Co Ltd
Original Assignee
Zhengzhou Yunhai Information Technology 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 Zhengzhou Yunhai Information Technology Co Ltd filed Critical Zhengzhou Yunhai Information Technology Co Ltd
Priority to CN201811292799.0A priority Critical patent/CN109450726A/en
Publication of CN109450726A publication Critical patent/CN109450726A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/50Testing arrangements

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer And Data Communications (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The invention proposes a kind of bonding test methods of the double network interfaces of integrated network card, double network interfaces on two nodes to be measured are successfully configured to dynamic link mode by interchanger, in this mode, when extracting single network interface cable of a node to be measured, second node to be measured can lead to this node still with ping, and SSH remote access will not disconnect.If thus can verify that out on node to be measured that one of network interface damages another network interface can directly substitute its function, it is not necessary to do extra configuration, improve the stability of server, provide load balance and fault-tolerant ability for network transmission.

Description

A kind of bonding test method of the double network interfaces of integrated network card
Technical field
The present invention relates to network equipment detection technical field, the double network interfaces of more particularly to a kind of integrated network card Bonding test method.
Background technique
With the continuous development and growth of tide server industry, as the server provider of largest domestic, server Every field has been included in market, especially the mainstreams field such as finance, internet, the high speed development of internet, the Gao An of information The high reliability of full property and system increasingly becomes company and enterprise, the thing that government pays close attention to the most.
Long-term important affiliate of the Baidu as tide, performance and stability requirement to tide server are the most Strictly.Baidu Xueye Rack project, requires more to come higher to network stabilization, not only needs for single network port performance pressure Power needs are up to standard, also very strict for double network interface bonding test requests, and Rack background server stablizes network interface Property requires high, if there is problem, may cause data access interaction and goes wrong or even occur loss of data.
Summary of the invention
In view of the above problems, the purpose of the present invention is to provide a kind of bonding test method of the double network interfaces of integrated network card, It is capable of the Stability and dependability of the double network interface bonding of validity test network interface card, guarantees the stability of server network interface.
The present invention to achieve the above object, is achieved through the following technical solutions: a kind of bonding of the double network interfaces of integrated network card Test method includes the following steps:
Step 1: two nodes to be measured are established into connection by interchanger;
Step 2: bonding setting being carried out to double network interfaces of each node to be measured respectively;
Step 3: successively four network interfaces on two nodes to be measured carry out network-in-dialing test;If can be logical with ping and can be with SSH remote access, then go to step 4;
Step 4: if the cable of any network interface disconnected, two nodes to be measured still are able to ping and lead to, and can be with SSH Remote access, then be successfully tested.
Further, the step 1 includes:
Step 11: for the network card configuration dynamic link being connect on interchanger with node to be measured;
Step 12: two network interfaces corresponding with double network interfaces of node to be measured on interchanger are set as a group.
Further, the step 11 further include: order cat/etc/net/bonding/bond0 is executed, if display " Dynamic ", then dynamic link configuration successful.
Further, the step 2 includes:
Step 21: editor ifcfg-eth0, ifcfg-eth1 file;
Step 22: creation ifcfg-bond0 file, and ifcfg-bond0 is copied to
Under the path /etc/sysconfig/network-script/;
Step 23: editor modprobe.conf, and modprobe.conf copied to/path etc/ under.
Further, after the step 2 further include: close firewall.
Further, after the step 23 further include: by ordering the service network restart service of restarting.
Further, double network interfaces on the node to be measured use same MAC Address.
The prior art is compared, the beneficial effects of the invention are that: a kind of double network interfaces of integrated network card proposed by the present invention Bonding test method, double network interfaces on two nodes to be measured are successfully configured to dynamic link mode by interchanger, herein Under kind mode, when extracting single network interface cable of a node to be measured, second node to be measured can lead to this section still with ping Point, SSH remote access will not disconnect.If thus can verify that out that one of network interface damages another on node to be measured Network interface can directly substitute its function, it is not necessary to do extra configuration, improve the stability of server, be network transmission Load balance and fault-tolerant ability are provided.
It can be seen that compared with prior art, the present invention implementing with substantive distinguishing features outstanding and significant progress Beneficial effect be also obvious.
Detailed description of the invention
Attached drawing 1 is the method flow diagram of the embodiment of the present invention one.
Attached drawing 2 is the method flow diagram of the embodiment of the present invention two.
Specific embodiment
It explains with reference to the accompanying drawing to a specific embodiment of the invention.
Embodiment one:
A kind of bonding test method of the double network interfaces of integrated network card as shown in Figure 1, includes the following steps:
Step 1: two nodes to be measured are established into connection by interchanger;
Step 2: bonding setting being carried out to double network interfaces of each node to be measured respectively;
Step 3: successively four network interfaces on two nodes to be measured carry out network-in-dialing test;If can be logical with ping and can be with SSH remote access, then go to step 4;
Step 4: the cable of any network interface being disconnected, if two nodes to be measured still are able to ping and lead to, and can be with SSH Remote access, then be successfully tested.
Long-term important affiliate of the Baidu as tide, performance and stability requirement to tide server are the most Strictly.Baidu Xueye Rack project, requires more to come higher to network stabilization, not only needs for single network port performance pressure Power needs are up to standard, also very strict for double network interface bonding test requests, and Rack background server stablizes network interface Property requires high, if there is problem, may cause data access interaction and goes wrong or even occur loss of data.Pass through this Embodiment is able to verify that the server under double network interface configurations, if one of network interface damages another network interface and can directly replace For its function, it is not necessary to extra configuration is done, and in two network interfaces simultaneously use process, if one of network interface Loading is excessively high, another network interface can go to share pressure, if loading very little, can automatically switch to 2 network interface fortune Row, improves the stability of server, rationally utilizes resource, provides load balance and fault-tolerant ability for network transmission.
Embodiment one:
A kind of bonding test method of the double network interfaces of integrated network card as shown in Figure 2, includes the following steps:
Step 1: two nodes to be measured being established into connection by interchanger, for the network card configuration connecting on interchanger with node to be measured Dynamic link.
Configuration method is as follows:
Enable
Configure terminal
Interface range gigabitEthernet 0/1-2
Port-group 1 mode active
Exit
Interface aggregateport 1
Switchport mode trunk
Exit
Wr
Order cat/etc/net/bonding/bond0 is executed, if display " Dynamic ", dynamic link configuration successful.
Step 2: two network interfaces corresponding with double network interfaces of node to be measured on interchanger are set as a group.
Step 3: bonding setting being carried out to double network interfaces of each node to be measured respectively.
The configuration method and configuration file of this step are as follows:
1. ifcfg-eth0 is edited, ifcfg-eth1 file, by taking ifcfg-eth0 as an example:
DEVICE=xgbe0
BOOTPROTO=static
ONBOOT=yes
MASTER=bond0
SLAVE=yes
2. creating ifcfg-bond0 file:
DEVICE=bond0
ONBOOT=yes
BOOTPROTO=static
IPADDR=192.168.12.30
NETMASK=255.255.255.0
GATEWAY=192.168.12.254
Ifcfg-bond0 is copied to/path etc/sysconfig/network-script/ under;
3. it is as follows to edit modprobe.conf file:
alias bond0 bonding
options bond0 miimon=100 mode=4 xmit_hash_policy=layer3+4
Modprobe.conf is copied to/path etc/ under;
4. by ordering the service network restart service of restarting;
5. closing firewall iptables-F.
Step 4: successively four network interfaces on two nodes to be measured carry out network-in-dialing test;If can it is logical with ping and It can be remotely accessed with SSH, then go to step 5.
By this step ensure two nodes 4 network interfaces can ping it is logical, and can be remotely accessed with SSH.
Step 5: the cable of any network interface being disconnected, if two nodes to be measured still are able to ping and lead to, and can It is remotely accessed, is then successfully tested with SSH.
Specifically: first disconnecting the cable of first one of network interface of node to be measured, second node to be measured is still So can ping it is logical, and can be remotely accessed with SSH, then disconnect the cable of second one of network interface of node to be measured, It is logical that first node to be measured still is able to ping, and can be remotely accessed with SSH, then is successfully tested
In addition, in the present embodiment, double network interfaces on node to be measured use same MAC Address.Interchanger is handed over using the StarNet 10,000,000,000 It changes planes.
A kind of bonding test method of the double network interfaces of integrated network card that the present embodiment proposes, is effectively verified on two nodes Double network interfaces by interchanger success under dynamic link mode can configuration successful, also demonstrate in this mode, when pulling out Out when single network interface cable of a node, second node can lead to this node still with ping, and SSH remote access will not break It opens.And node can distribute by several network interfaces automatically according to current network load size and execute task, if wherein one A network interface loading is excessively high, another network interface can go to share pressure, if loading very little, can automatically switch to 2 Network interface operation, if one of network interface damages another network interface and can directly substitute its function, it is not necessary to which it is extra to do Configuration, improves the stability of server, provides load balance and fault-tolerant ability for network transmission.
With reference to the drawings and specific embodiments, the invention will be further described.It should be understood that these embodiments are merely to illustrate The present invention rather than limit the scope of the invention.In addition, it should also be understood that, after reading the content taught by the present invention, this field Technical staff can make various changes or modifications the present invention, and such equivalent forms equally fall within range defined herein.

Claims (7)

1. a kind of bonding test method of the double network interfaces of integrated network card, which comprises the steps of:
Step 1: two nodes to be measured are established into connection by interchanger;
Step 2: bonding setting being carried out to double network interfaces of each node to be measured respectively;
Step 3: successively four network interfaces on two nodes to be measured carry out network-in-dialing test;If can be logical with ping and can be with SSH remote access, then go to step 4;
Step 4: the cable of any network interface being disconnected, if two nodes to be measured still are able to ping and lead to, and can be with SSH Remote access, then be successfully tested.
2. the bonding test method of the double network interfaces of integrated network card according to claim 1, which is characterized in that
The step 1 includes:
Step 11: for the network card configuration dynamic link being connect on interchanger with node to be measured;
Step 12: two network interfaces corresponding with double network interfaces of node to be measured on interchanger are set as a group.
3. the bonding test method of the double network interfaces of integrated network card according to claim 2, which is characterized in that the step 11 further include: order cat/etc/net/bonding/bond0 is executed, if display " Dynamic ", dynamic link configuration Success.
4. the bonding test method of the double network interfaces of integrated network card according to claim 1, which is characterized in that the step 2 Include:
Step 21: editor ifcfg-eth0, ifcfg-eth1 file;
Step 22: creation ifcfg-bond0 file, and ifcfg-bond0 is copied to
Under the path /etc/sysconfig/network-script/;
Step 23: editor modprobe.conf, and modprobe.conf copied to/path etc/ under.
5. the bonding test method of the double network interfaces of integrated network card according to claim 1, which is characterized in that the step 2 Later further include: close firewall.
6. the bonding test method of the double network interfaces of integrated network card according to claim 4, which is characterized in that the step After 23 further include: by ordering the service network restart service of restarting.
7. the bonding test method of the double network interfaces of integrated network card according to claim 1, it is characterised in that: described to be measured Double network interfaces on node use same MAC Address.
CN201811292799.0A 2018-11-01 2018-11-01 A kind of bonding test method of the double network interfaces of integrated network card Pending CN109450726A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811292799.0A CN109450726A (en) 2018-11-01 2018-11-01 A kind of bonding test method of the double network interfaces of integrated network card

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811292799.0A CN109450726A (en) 2018-11-01 2018-11-01 A kind of bonding test method of the double network interfaces of integrated network card

Publications (1)

Publication Number Publication Date
CN109450726A true CN109450726A (en) 2019-03-08

Family

ID=65549575

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811292799.0A Pending CN109450726A (en) 2018-11-01 2018-11-01 A kind of bonding test method of the double network interfaces of integrated network card

Country Status (1)

Country Link
CN (1) CN109450726A (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103036728A (en) * 2012-12-27 2013-04-10 中国船舶重工集团公司第七二二研究所 Multi- redundancy ethernet data transmission system and transmission method
US20130308471A1 (en) * 2012-05-21 2013-11-21 Verizon Patent And Licensing Inc. Detecting error conditions in standby links
CN104468388A (en) * 2014-11-04 2015-03-25 浪潮电子信息产业股份有限公司 Linux system based test method for network card load balancing
CN105049284A (en) * 2015-07-09 2015-11-11 浪潮电子信息产业股份有限公司 Linux system-based network redundancy testing method and device
CN106209449A (en) * 2016-07-06 2016-12-07 天脉聚源(北京)传媒科技有限公司 A kind of method and device binding network interface card

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20130308471A1 (en) * 2012-05-21 2013-11-21 Verizon Patent And Licensing Inc. Detecting error conditions in standby links
CN103036728A (en) * 2012-12-27 2013-04-10 中国船舶重工集团公司第七二二研究所 Multi- redundancy ethernet data transmission system and transmission method
CN104468388A (en) * 2014-11-04 2015-03-25 浪潮电子信息产业股份有限公司 Linux system based test method for network card load balancing
CN105049284A (en) * 2015-07-09 2015-11-11 浪潮电子信息产业股份有限公司 Linux system-based network redundancy testing method and device
CN106209449A (en) * 2016-07-06 2016-12-07 天脉聚源(北京)传媒科技有限公司 A kind of method and device binding network interface card

Non-Patent Citations (5)

* Cited by examiner, † Cited by third party
Title
刘天颖等: "Redhat Linux网卡的增强配置方案", 《科技信息(科学教研)》 *
姚青: "服务器多网卡高可用技术的应用研究", 《微型电脑应用》 *
宁娟 等: "基于链路聚合控制协议的堆叠网络设计与应用", 《航天器环境工程》 *
王明: "Bonding技术在空管Skynet-X自动化系统中的应用", 《电子技术与软件工程》 *
王石: "多出口校园网类键技术研究", 《中国博士学位论文全文数据库 信息科技辑》 *

Similar Documents

Publication Publication Date Title
US11323307B2 (en) Method and system of a dynamic high-availability mode based on current wide area network connectivity
EP4032207B1 (en) State machine handling at a proxy node in an ethernet-based fronthaul network
CN109088820B (en) Cross-device link aggregation method and device, computing device and storage medium
CN108712457A (en) Back-end server dynamic load method of adjustment and device based on Nginx reverse proxys
CN107070752B (en) Testing method and testing system for long connection capacity
CN109787864A (en) A kind of network automatic test approach, device, terminal and storage medium based on Netperf
CN111966465A (en) Method, system, equipment and medium for modifying configuration parameters of host machine in real time
CN114064206A (en) Pod method, system, equipment and storage medium for accessing edge node
WO2023050667A1 (en) Method and system for implementing bare metal inspection process, device, and storage medium
CN104636441A (en) Network file system realization method and device
CN109600278A (en) A kind of data communications method, device, equipment and medium
CN107547341B (en) Access method and device of virtual extensible local area network VXLAN
CN107666401A (en) A kind of configuration information obtaining method and terminal
CN105871676B (en) The method for connecting network and system of distal end virtual machine in a kind of desktop cloud
CN108089968A (en) A kind of method of host's machine monitoring virtual-machine data storehouse state
CN109450726A (en) A kind of bonding test method of the double network interfaces of integrated network card
US20190207805A1 (en) Node fault isolation
CN115442285A (en) Network testing method, device, equipment and medium based on virtualization configuration
CN113364681B (en) Network path determination method, network path determination device, electronic apparatus, network path determination medium, and program product
CN106972963A (en) Enabling for business module enables control method after control method, collapse are restarted
CN104980352A (en) Routing method and device for multiline computer room
Cisco Troubleshooting LAN Switching Environments
CN107592340A (en) The method and apparatus of remote operation management server
US10860409B2 (en) Tracelog isolation of failed sessions at scale
CN112003731B (en) Configuration method and 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
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20190308