CN108347351A - The method, apparatus and system of equipment Dual-Ethernet card compatibility - Google Patents

The method, apparatus and system of equipment Dual-Ethernet card compatibility Download PDF

Info

Publication number
CN108347351A
CN108347351A CN201810079145.3A CN201810079145A CN108347351A CN 108347351 A CN108347351 A CN 108347351A CN 201810079145 A CN201810079145 A CN 201810079145A CN 108347351 A CN108347351 A CN 108347351A
Authority
CN
China
Prior art keywords
ethernet card
card
ethernet
equipment
address
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
CN201810079145.3A
Other languages
Chinese (zh)
Other versions
CN108347351B (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.)
Guangzhou Shiyuan Electronics Thecnology Co Ltd
Original Assignee
Shenzhen Open View Electronic Technology Co Ltd
Guangzhou Shiyuan Electronics Thecnology 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 Shenzhen Open View Electronic Technology Co Ltd, Guangzhou Shiyuan Electronics Thecnology Co Ltd filed Critical Shenzhen Open View Electronic Technology Co Ltd
Priority to CN201810079145.3A priority Critical patent/CN108347351B/en
Publication of CN108347351A publication Critical patent/CN108347351A/en
Application granted granted Critical
Publication of CN108347351B publication Critical patent/CN108347351B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/0803Configuration setting
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/14Routing performance; Theoretical aspects

Abstract

The present invention relates to the method, apparatus and system of equipment Dual-Ethernet card compatibility, are suitable for network technique field.The method includes:When the system of equipment starts, while the first Ethernet card and the corresponding Ethernet card service of the second Ethernet card is respectively started;If the Ethernet card of the first Ethernet card of Android device/second has cable access, the TCP window size and network priority of the Dual-Ethernet card are set;Keep both described network priority consistent;The corresponding IP address of Dual-Ethernet card is obtained respectively, and the routing rule of Dual-Ethernet card is respectively set according to the IP address.The present invention, which can realize, solves the problems, such as that the Dual-Ethernet card of existing equipment cannot work at the same time, and realizes that equipment Dual-Ethernet card works at the same time, convenience and the network data exchange for the terminal room being connected.

Description

The method, apparatus and system of equipment Dual-Ethernet card compatibility
Technical field
The present invention relates to network technique fields, more particularly to the method, apparatus and system of equipment Dual-Ethernet card compatibility.
Background technology
Network interface card is one of component most basic in LAN, it is the hardware device for connecting computer and network.It is daily to make Network interface card is all Ethernet card mostly.Existing Software for Design only uses an Ethernet when equipment carries out network connection Card finds Ethernet card and just directly uses, without judging whether other network interface cards can use again, therefore even if in equipment There are two Ethernet cards, also using two Ethernet cards and can not carry out data transmission exchanging simultaneously.Such network connection side Although method can guarantee the connection of equipment and network, still, two Ethernet cards can not be carried out at the same time data transmission exchange and will produce Many problems.For example, certain EM equipment module is intended to carry out network data exchange with certain tablet device, and EM equipment module is not connected with cable, The network data exchange between EM equipment module and tablet device can not just carry out at this time.
Invention content
Based on this, the present invention provides the method, apparatus and system of a kind of equipment Dual-Ethernet card compatibility, can realize equipment In two Ethernet cards compatibility, you can work at the same time.
The embodiment of the present invention includes:
A kind of method of equipment Dual-Ethernet card compatibility, which is characterized in that including:
When the system of equipment starts, while starting the corresponding Ethernet card service of the first Ethernet card and the second ether The corresponding Ethernet card service of network interface card;Wherein, the equipment is provided with the first Ethernet card and the second Ethernet card;
When detecting that the Ethernet card of the first Ethernet card/second has cable access, first Ethernet card/the is set The corresponding TCP window size of two Ethernet cards and network priority;The network priority and second of first Ethernet card The network priority of Ethernet card is consistent;
Start the corresponding DHCP CLIENT PROGRAMs of the Ethernet card of first Ethernet card/second, obtains first ether Corresponding first IP address of network interface card/corresponding second IP address of the second Ethernet card;
Respectively according to first IP address, the second IP address be arranged first Ethernet card the first routing rule, The secondary route rule of second Ethernet card.
A kind of device of equipment Dual-Ethernet card compatibility, including:
Network interface card service starting module, for equipment system start when, while start the first Ethernet card it is corresponding with The too corresponding Ethernet card service of network interface card service and the second Ethernet card;Wherein, the equipment is provided with the first Ethernet card With the second Ethernet card;
Network interface card parameter setting module, for when detecting that the Ethernet card of the first Ethernet card/second has cable access, if Set the corresponding TCP window size of the Ethernet card of first Ethernet card/second and network priority;First Ethernet The network priority of card is consistent with the network priority of the second Ethernet card;
IP address acquisition module, for starting the corresponding DHCP client's journey of the Ethernet card of first Ethernet card/second Sequence obtains corresponding second IP address of corresponding first IP address/second Ethernet card of first Ethernet card;
And routing rule setup module, for respectively according to first IP address, the second IP address setting described the First routing rule of one Ethernet card, the secondary route rule of the second Ethernet card.
A kind of system of equipment Dual-Ethernet card compatibility, including:The corresponding equipment in interactive terminal and the interactive terminal, The interactive terminal is provided with switch or router, and the equipment is provided with the first Ethernet card and the second Ethernet card;Institute It states equipment to connect with the interactive terminal by pre-defined interface so that first Ethernet card is connected by the interface Connect the switch or router;
Wherein, the equipment includes:
Network interface card service starting module, for equipment system start when, while start the first Ethernet card it is corresponding with The too corresponding Ethernet card service of network interface card service and the second Ethernet card;
Network interface card parameter setting module, for when detecting that the Ethernet card of the first Ethernet card/second has cable access, if Set the corresponding TCP window size of the Ethernet card of first Ethernet card/second and network priority;First Ethernet The network priority of card is consistent with the network priority of the second Ethernet card;
IP address acquisition module, for starting the corresponding DHCP client's journey of the Ethernet card of first Ethernet card/second Sequence obtains corresponding second IP address of corresponding first IP address/second Ethernet card of the first Ethernet card;
And routing rule setup module, for respectively according to first IP address, the second IP address setting described the First routing rule of one Ethernet card, the secondary route rule of the second Ethernet card.
A kind of computer readable storage medium, is stored thereon with computer program, which realizes when being executed by processor The step of method described above.
A kind of computer equipment, including memory, processor and storage can be run on a memory and on a processor The step of computer program, the processor realizes method described above when executing described program.
Above-mentioned technical proposal by equipment system startup when, while starting device two Ethernet cards it is corresponding with Too network interface card service, when the Ethernet card of the first Ethernet card/second has cable access, to the Ethernet card of the first Ethernet card/second Corresponding TCP window size and network priority are configured, and keep the network priority of two Ethernet cards consistent;Further , obtain the corresponding IP address of Ethernet card, and according to the corresponding IP address setting of two Ethernet cards it is described two with The too routing rule of network interface card.The technical solution can make two Ethernet cards of Android device all in working condition, and then can be real The compatibility of the Dual-Ethernet card of existing Android device with work at the same time.
Description of the drawings
Fig. 1 is the applied environment figure for the method that equipment Dual-Ethernet card is compatible in an embodiment;
Fig. 2 is the schematic flow chart for the method that equipment Dual-Ethernet card is compatible in an embodiment;
Fig. 3 is the schematic flow chart for the method for starting Ethernet card service in an embodiment;
Fig. 4 is the structural schematic diagram that Android device is connect with interactive terminal in an embodiment;
Fig. 5 is the schematic flow chart for the method that equipment Dual-Ethernet card is compatible in another embodiment;
Fig. 6 is the structural schematic diagram for the device that equipment Dual-Ethernet card is compatible in an embodiment.
Specific implementation mode
In order to make the purpose , technical scheme and advantage of the present invention be clearer, with reference to the accompanying drawings and embodiments, right The present invention is further elaborated.It should be appreciated that the specific embodiments described herein are merely illustrative of the present invention, and It is not used in the restriction present invention.
Although the step in the present invention is arranged with label, it is not used to limit the precedence of step, unless Based on the execution of the order or certain step that specify step needs other steps, otherwise the relative rank of step is It is adjustable.
The method of equipment Dual-Ethernet card compatibility provided by the embodiments of the present application, can be applied to application as shown in Figure 1 In environment.Wherein, it is communicated by network between first terminal 110 and second terminal 120.It is provided on first terminal 110 First network interface card and the second network interface card.First terminal 110 and 130 network connection of server, server 130 can be first terminal 110 The first network interface card and the second network interface card distribute IP address respectively.First terminal 110 and the end that second terminal 120 can be same type End, or different types of terminal.Terminal can be, but not limited to be various personal computers, laptop, intelligent hand Machine, tablet computer and portable wearable device.Server 130 can be formed with the either multiple servers of independent server Server cluster realize.This method can make two Ethernet cards of first terminal 110 all in working condition, convenience and phase The interaction of network data is carried out between the second terminal 120 of connection.
The embodiment of the present invention provides a kind of method of equipment Dual-Ethernet card compatibility, the method includes the steps:In equipment System when starting, while starting the corresponding Ethernet card service of the first Ethernet card and the corresponding ether of the second Ethernet card Network interface card service;Wherein, the equipment is provided with the first Ethernet card and the second Ethernet card;Detect the first Ethernet card/ When second Ethernet card has cable access, be arranged the corresponding TCP window size of the Ethernet card of first Ethernet card/second with And network priority;The network priority of first Ethernet card is consistent with the network priority of the second Ethernet card;Start The corresponding DHCP CLIENT PROGRAMs of the Ethernet card of first Ethernet card/second obtain first Ethernet card corresponding the Corresponding second IP address of one IP address/second Ethernet card;Institute is arranged according to first IP address, the second IP address respectively State the first routing rule of the first Ethernet card, the secondary route rule of the second Ethernet card.The embodiment of the present invention also provides phase The device and system for the equipment Dual-Ethernet card compatibility answered.It is described in detail separately below.
As shown in Fig. 2, the schematic flow chart for the method that the equipment Dual-Ethernet card that Fig. 2 is an embodiment is compatible with.It is described The method for the equipment Dual-Ethernet card compatibility that embodiment provides is mainly including step S110 to step S140, and detailed description are as follows:
S110, when the system of equipment starts, while starting the corresponding Ethernet card service of the first Ethernet card and the The corresponding Ethernet card service of two Ethernet cards;Wherein, the equipment is provided with the first Ethernet card and the second Ethernet card.
OPS (Open Pluggable Specification, open pluggable specification) product is Intel Company and shows The standardized digital label interface specification that Shi Qi manufacturers formulate jointly, can be inserted into media player terminal, and can very easily with Other equipment carries out network connection.This open pluggable specification can effectively improve the operational efficiency of the equipment of its connection, more The performance of the equipment is promoted well.The equipment can be a kind of product similar with OPS, can also be a kind of and other products The system module being used in combination.When certain terminal-pair performance requirement is higher, the system module is passed through into pluggable mode Network connection is carried out with the terminal, which will need the operation for handling analysis to be sent to the system module, and the system module is again Corresponding operating is carried out, such mode can effectively improve the execution efficiency of the terminal, promote its performance.
In the embodiment of the present invention, the system module and OPS products the difference is that, the system of OPS products is Windows System, and the system module is the equipment based on Android (Android) platform or setting based on other Mobile operating platforms It is standby.
Optionally, two or more Ethernet cards are provided in the equipment, including the first above-mentioned Ethernet card With the second Ethernet card.First Ethernet card be Ethernet card corresponding with internal network interface in the equipment, described second Ethernet card is Ethernet card corresponding with the external network interface of the equipment.
As shown in figure 3, Fig. 3 is the schematic flow chart for the method for starting Ethernet card service in an embodiment.This step When the system of equipment starts,
S111, registration simultaneously start the corresponding Ethernet card service (EthernetService) of the first Ethernet card.
S112, registration simultaneously start the corresponding Ethernet card service (Ethernet2Service) of the second Ethernet card.
Traditional network connection process often only starts a set of Ethernet card service, this set of Ethernet card service can only be controlled Make an Ethernet card.During network connection, after detecting that a certain Ethernet card drives successfully, the Ethernet card service Just directly using that Ethernet card being successfully driven, and no longer judge whether there is whether other Ethernet cards can make With.When two electronic equipments are connected with each other, both must connect cable network by cable could realize the two equipment Network data transmission.This step starts two sets of Ethernet card services simultaneously, can guarantee corresponding internal network interface and external network interface Corresponding service is worked normally and is provided, and the first Ethernet card can be controlled respectively and the second Ethernet card enters working condition, Ensure Dual-Ethernet card all in work clothes he, and be no longer that can only use wherein one when using Ethernet card, Jin Erneng It works while realizing Dual-Ethernet card.
S120, when detecting that the first Ethernet card has cable access, the corresponding TCP of first Ethernet card is set (Transmission Control Protocol, transmission control protocol) window size and network priority;Detecting When two Ethernet cards have cable access, the corresponding TCP window size of second Ethernet card and network priority are set.
Wherein, the network priority of first Ethernet card and the network priority of the second Ethernet card need to be set as one It causes.
Optionally, further include before this step detect first Ethernet card respectively, whether the second Ethernet card has net The step of line accesses.For the equipment of corresponding Android system, specific implementation procedure is:Reading/sys/class/net/eth0/ Carrier files (wherein, eth0 be pre-set device nodes corresponding with first Ethernet card), judge first with Too whether network interface card has cable access, if the value read is 1, indicates the cable access of the first Ethernet card;If the value read It is 0, then it represents that the cable of the first Ethernet card does not access.Reading/sys/class/net/eth1/carrier files are (wherein, Eth1 is pre-set device nodes corresponding with second Ethernet card), judge whether the second Ethernet card has cable Access indicates the cable access of the second Ethernet card if the value read is 1;If read value be 0, then it represents that second with The cable of too network interface card does not access.If cable accesses, subsequent operation is executed;If cable does not access, continue waiting for detecting Cable accesses.
First Ethernet card can connect network interface signal line by 120PIN interfaces, and the second Ethernet card can be by common Cable is connect with cable network.By detecting whether the Ethernet card of the first Ethernet card/second has cable access, first can be judged Whether the Ethernet card of Ethernet card/second is in the state that can be worked.
This step is when detecting that the first Ethernet card has cable access, the setting Ethernet card of the first Ethernet card/second The TCP window size used, the TCP window size are mainly used for controlling maximum capacity when certain TCP data transmission. Meanwhile the network priority of the Ethernet card of the first Ethernet card/second is set, since two Ethernet cards will be made simultaneously With, so set identical (size of i.e. two Ethernet card Score is the same) network priority of two Ethernet cards to.
S130, start corresponding DHCP (the Dynamic Host of the Ethernet card of first Ethernet card/second Configuration Protocol, dynamic host configuration protocol) CLIENT PROGRAM, obtain first Ethernet card corresponding the Corresponding 2nd IP of one IP address (Internet Protocol Address, Internet protocol address)/the second Ethernet card Location.
DHCP CLIENT PROGRAMs are a stand-alone programs, for being carried out with the DHCP service program (server-side) in router Interaction and then acquisition IP address.This step makes Ethernet card connect with cable by calling the orders such as udhcpc or dhclient The corresponding DHCP service interaction of router connect, obtains corresponding IP address, subnet mask and DNS (Domain Name System, domain name system) etc. information.
S140, be arranged respectively according to first IP address, the second IP address the first via of first Ethernet card by Rule, the secondary route rule of the second Ethernet card.
First routing rule make the data that the first IP address is operated pass through the first Ethernet card transmission, described second Routing rule makes the data operated to the second IP address pass through the transmission of the second Ethernet card.
The specific implementation procedure of one of this step is:For example, it is assumed that the first IP address that the first Ethernet card obtains is 172.18.220.123, subnet mask 255.255.255.0 then executes route add- Net172.18.220.123netmask 255.255.255.0dev eth0 orders, the corresponding routing of the first Ethernet card of addition Rule;Assuming that the second IP address that the second Ethernet card obtains is 172.18.220.224, subnet mask is 255.255.255.0 then executing route add-net 172.18.220.224netmask 255.255.255.0deveth1 Order, the corresponding routing rule of the second Ethernet card of addition.
The present embodiment starts two Ethernet cards corresponding Ethernet card clothes by the system startup of equipment Business, when the Ethernet card of the first Ethernet card/second has cable access, TCP corresponding to the Ethernet card of the first Ethernet card/second Window size and network priority are configured, and keep the network priority of two Ethernet cards consistent;Further, two are obtained A corresponding IP address of Ethernet card, and according to the routing rule of corresponding IP address two Ethernet cards of setting. The technical solution can make two Ethernet cards of equipment all in working condition, so can realize equipment Dual-Ethernet card it is simultaneous Hold and work at the same time, the interaction of network data is carried out between the equipment being conveniently connected.
In one embodiment, further include before step S120 after step silo:First Ethernet is detected respectively Whether card, the second Ethernet card are successfully driven;If the first Ethernet card drives not successfully, first Ethernet card is restarted, and Again detect whether first Ethernet card is successfully driven again, until first Ethernet card is successfully driven;Described The driving detection of two Ethernet cards is similarly.If the first Ethernet card and the second Ethernet card are successfully driven, start detection Whether one Ethernet card, the second Ethernet card have cable access respectively.
Further, described to detect first Ethernet card, the second Ethernet card for the equipment of corresponding Android system The mode whether being successfully driven includes:Detection path/sys/class/net/eth0 whether there is, and if it exists, then described first Ethernet card is successfully driven;Wherein, the eth0 is pre-set device nodes corresponding with first Ethernet card;Inspection Path/sys/class/net/eth1 is surveyed to whether there is;If in the presence of second Ethernet card is successfully driven;Wherein, described Eth1 is pre-set device nodes corresponding with second Ethernet card.
Judge that the process whether Ethernet card of the first Ethernet card/second is successfully driven is to sentence in above-mentioned two embodiment The Ethernet card of disconnected first Ethernet card/second whether there is the process of device nodes.Device nodes be for software view, That is after the Ethernet card of the first Ethernet card/second drives successfully, device systems can create the device nodes of eth0/eth1, this sets Standby node is mark of the corresponding Ethernet card in system software.For the equipment of corresponding Android system, the first Ethernet is judged The/the second Ethernet card of card can generally judge with the presence or absence of device nodes/sys/class/net/eth0 and/sys/class/ The path of net/eth1 whether there is.If device nodes exist, then it represents that corresponding Ethernet card power supply is normal and is identified, If it does not exist, then needing to restart the network interface card, so that network enters normal working condition.Above-mentioned two embodiment energy Judged by the driving condition to Ethernet card, again to it after the Ethernet card of the first Ethernet card/second is successfully driven It is operated.
In one embodiment, the method for equipment Dual-Ethernet card compatibility further includes:Detect first Ethernet Whether the cable of card the/the second Ethernet card access is extracted;If the cable of first Ethernet card access is extracted, described the is removed Corresponding first IP address of one Ethernet card and the first routing rule;If the cable of the second Ethernet card access is extracted, Remove corresponding second IP address of second Ethernet card and secondary route rule.
The mode and judge the side whether Ethernet card has cable to access whether the cable of Ethernet card access is extracted judged Formula is the same:For the first Ethernet card, reading/sys/class/net/eth0/carrier files judges the first Ethernet card Whether the cable of access is extracted, if the value read is 1, indicates that the cable of the first Ethernet card access is not extracted;If read Value be 0, then it represents that the first Ethernet card access cable extracted.For the second Ethernet card, reading/sys/class/ Net/eth1/carrier files, judge whether the cable of the second Ethernet card access is extracted, if the value read is 1, indicate The cable of second Ethernet card access is not extracted;If the value read is 0, then it represents that the cable of the second Ethernet card access pulls out Go out.
In use, it if cable is pulled out, needs to remove the IP address obtained and the routing being arranged rule Then.If the cable of the first Ethernet card access is pulled out, route del-net172.18.220.123netmask are executed 255.255.255.0dev the first routing rule is removed in eth0 orders, executes ipaddress flush eth0 orders removing the One IP address continues waiting for detection cable state if the cable of the first Ethernet card access is not pulled out;If second with The cable of too network interface card access is pulled out, and executes route del-net 172.18.220.224netmask 255.255.255.0dev secondary route rule is removed in eth1 orders, executes ip address flush eth1 orders removing the Two IP address.After cable is extracted, rejudge whether the Ethernet card of the first Ethernet card/second has cable access, if so, then after It is continuous to execute subsequent operation.
In one embodiment, the equipment is Android device, as shown in figure 4, Fig. 4 is Android device and friendship in an embodiment The structural schematic diagram of mutual terminal connection.The Android device 310 passes through pre-defined 120PIN interfaces 320 and interactive terminal 330 connections, wherein the interactive terminal 330 may be based on the interaction tablet of Android system;The 120PIN interfaces 320 include Power cord, display signal line, usb signal line and internal network interface signal line;First Ethernet card passes through the 120PIN The internal network interface signal line switch or router connection corresponding with interactive terminal 330 of interface 320;Second Ethernet card For being connect with external network.
Optionally, the 120PIN interfaces 320 are customized interface, and the interactive terminal 330 is 120PIN interfaces 320 Socket, the Android device 310 be 120PIN interfaces 320 plug.The interactive terminal 330 can be intelligent interaction tablet Or other complete machines such as smart mobile phone.The Android device 310 can refer to an Android module.
Also include internal network interface signal line in addition to power supply, display signal, usb signal in 120PIN interfaces 320.Android Internal network interface 340 and external network interface 350 are provided in equipment 310, which passes through the internal of 120PIN interfaces 320 Network interface signal line is connected with interactive terminal 330, and then realizes and be connected simultaneously with the switch or router being arranged in interactive terminal 330 Realize communication;The external network interface 350 is connected by common cable with cable network using the RJ45 network interfaces of standard.Wherein, it hands over Mutual terminal 330 can be connect by its network interface with cable network, in addition, the interchanger being arranged in interactive terminal 330 or road The network equipment can also be connected by device.
Android device 310 is connect by the present embodiment by 120PIN interfaces 320 with interactive terminal 330, wherein Android device The first Ethernet card being arranged on 310 is connected by the switch or router on the pre-defined interface and interactive terminal 330 It connects, in addition, Android device 310 and interactive terminal 330 can be connect by cable with cable network respectively.The present embodiment can be effective It realizes that the Dual-Ethernet card in Android device 310 works at the same time, and is not connected in interactive terminal 330 or Android device 310 Also the transmission of network data can be realized when gauze network.For example, if 350 connected with network cable of external network interface, interactive terminal 330 can Data to be forwarded to by external network interface 350 in outer net by the internal network interface 340 of Android device 310;Equally, if it is friendship Interchanger connected with network cable built in mutual terminal 330, then the internal network interface 340 of Android device 310 can also be visited by the interchanger Ask outer net;In addition, if the network interface of interactive terminal 330 does not connect cable network, built-in interchanger is connected with network and sets It is standby, and the external network interface 350 in Android device 310 does not have connected with network cable yet, if at this point, presence without internal network interface 340, is handed over Data interaction mutually can not be just carried out between terminal 330 and Android device 310 by network, and internally network interface 340 can be fine Ground handles the problem of usage scenario:There is a network equipment being connected with built-in interchanger in interactive terminal 330, and Android device 310 Then it is connected by the built-in interchanger that internal network interface 340 is connect with interactive terminal 330, such interactive terminal 330 is set with Android Network between standby 310 can form LAN in the case where not needing outer net and carry out network communication with regard to successful connection.
In one embodiment, the method for the equipment Dual-Ethernet card compatibility further includes:Working state control instruction is executed, It controls the Ethernet card of first Ethernet card/second and enters working condition.
Further, execution working state control instruction, control the Ethernet card of first Ethernet card/second into Enter working condition, including:Ifconfig eth0up orders are executed, set the state of first Ethernet card to UP states, First Ethernet card is set to enter working condition;Wherein, the eth0 is pre-set and first Ethernet card pair The device nodes answered;Ifconfig eth1up orders are executed, the state of second Ethernet card is set to UP states, makes Second Ethernet card enters working condition;Wherein, the eth1 is pre-set corresponding with second Ethernet card Device nodes.
The state of Ethernet card is defaulted as DOWN states, and when only setting (switching) is UP states, just the network interface card is just in Working condition could carry out subsequent setting, make to be arranged accordingly and come into force.Therefore, the present embodiment is obtaining the first Ethernet card Before the step of Ethernet card of corresponding first IP address/second corresponding second IP address, first by the first Ethernet card/the second Ethernet card is set as UP states, ensures the orderly progress of subsequent operation.
The above method in order to better understand, the application of present device Dual-Ethernet card compatibility detailed below Example.For the application example as shown in figure 5, in the application example, the equipment is Android device, and Fig. 5 is to pacify in an embodiment The schematic flow chart of the method for tall and erect equipment Dual-Ethernet card compatibility, detailed description are as follows:
S401, judge device nodes:Whether judge internal network interface/external corresponding device nodes of network interface (eth0/eth1) In the presence of if it is present indicating that the corresponding Ethernet card power supply of the network interface is normal and can recognize.
S402, restart Ethernet card:If corresponding device nodes are not present, to the corresponding Ethernet card of the network interface into Row reboot operation, so that network enters normal operating conditions, specially:Power down upper electric treatment again is carried out to Ethernet card, allows peace The device drives of tall and erect equipment normally recognize network interface card and register corresponding device nodes, when corresponding Ethernet card is successfully driven Afterwards, subsequent operation is executed.
Whether S403, cable access:Reading/sys/class/net/eth0/carrier files, judges internal Ethernet Whether card has cable access, if the value read is 1, indicates the cable access of internal Ethernet card;If the value read is 0, Then indicate that the cable of internal Ethernet card does not access.Reading/sys/class/net/eth1/carrier files, judge externally with Too whether network interface card has cable access, if the value read is 1, indicates the cable access of external Ethernet card;If the value read It is 0, then it represents that the cable of external Ethernet card does not access.If cable does not access, continue whether to judge corresponding Ethernet card There is cable access.
S404, setting TCP window size and network priority:Internal Ethernet card/external Ethernet card is arranged to be used The network priority of internal Ethernet card/external Ethernet card is set as same by the TCP window size and network priority arrived One network priority.
S405, start DHCP CLIENT PROGRAMs acquisition IP address:Using ifconfig eth0up orders by internal Ethernet card State is set as UP states, and external Ethernet card state is set to UP states using ifconfig eth1up orders;Then it adjusts IP address, subnet are obtained with the orders such as udhcpc or dhclient DHCP service interaction corresponding with the router that cable is connected The information such as mask and DNS.
S406, setting routing rule:Assuming that the IP address that externally Ethernet card is got is 172.18.220.123, subnet Mask is 255.255.255.0, needs to execute route add-net 172.18.220.123netmask255.255.255.0dev corresponding first routing rule is added in eth0 orders;If internally The IP address that Ethernet card is got is 172.18.220.224, subnet mask 255.255.255.0, needs to execute route Corresponding secondary route rule is added in add-net172.18.220.224netmask 255.255.255.0dev eth1 orders.
Whether S407, cable are extracted:It is identical as judgement " whether cable accesses ", that is, judge internal Ethernet card/externally with The mode whether extracted of cable of too network interface card access is:Reading/sys/class/net/eth0/carrier files judges internal Whether the cable of Ethernet card access is extracted, if the value read is 1, indicates that the cable of internal Ethernet card access is not extracted; If the value read is 0, then it represents that the cable of internal Ethernet card access has been extracted.Reading/sys/class/net/eth1/ Carrier files, judge whether the cable of external Ethernet card access is extracted, if the value read is 1, indicate external Ethernet Be clamped into cable do not extract;If the value read is 0, then it represents that the cable of external Ethernet card access is extracted.
S408, IP address and routing rule are removed:If the cable of internal Ethernet card is pulled out, route is executed It is corresponding that internal Ethernet card is removed in del-net 172.18.220.123netmask 255.255.255.0dev eth0 orders Routing rule executes ip address flush eth0 orders and removes the corresponding IP address of internal Ethernet card, if do not pulled out Go out, continues waiting for detection cable state;If the cable of external Ethernet card is pulled out, route del-net are executed 172.18.220.224netmask the corresponding routing rule of external Ethernet card are removed in 255.255.255.0dev eth1 orders Then, ip address flush eth1 orders are executed and remove the corresponding IP address of external Ethernet card.After cable is extracted, again Judge whether the Ethernet card of the first Ethernet card/second has cable access, if so, then continuing to execute subsequent operation.
It should be noted that for each method embodiment above-mentioned, describes, be all expressed as a series of for simplicity Combination of actions, but those skilled in the art should understand that, the present invention is not limited by the described action sequence, because according to According to the present invention, certain steps may be used other sequences or be carried out at the same time.
Based on the method identical thought compatible with the equipment Dual-Ethernet card in above-described embodiment, the present invention also provides set The device of standby Dual-Ethernet card compatibility, the method which can be used for executing above equipment Dual-Ethernet card compatibility.For the ease of Illustrate, in the structural schematic diagram of the device embodiment of equipment Dual-Ethernet card compatibility, illustrate only and phase of the embodiment of the present invention The part of pass, it will be understood by those skilled in the art that the restriction of schematic structure not structure twin installation, may include than illustrating more More or less component either combines certain components or different components arrangement.
Fig. 6 is the structural schematic diagram for the device that equipment Dual-Ethernet card is compatible in an embodiment, and as described in Figure 6, equipment is double The device of Ethernet card compatibility includes network interface card service starting module 510, network interface card parameter setting module 520, IP address acquisition module 530 and with routing rule setup module 540, detailed description are as follows:
Network interface card services starting module 510, is used for when the system of equipment starts, while it is corresponding to start the first Ethernet card Ethernet card service and the corresponding Ethernet card service of the second Ethernet card;Wherein, the equipment is provided with the first Ethernet Card and the second Ethernet card.
Network interface card parameter setting module 520, for detecting that the Ethernet card of the first Ethernet card/second has cable access When, the corresponding TCP window size of the Ethernet card of first Ethernet card/second and network priority are set;Described first The network priority of Ethernet card is consistent with the network priority of the second Ethernet card.
IP address acquisition module 530, for starting the corresponding DHCP client of the Ethernet card of first Ethernet card/second Program obtains corresponding second IP address of corresponding first IP address/second Ethernet card of first Ethernet card.
And routing rule setup module 540, for institute to be arranged according to first IP address, the second IP address respectively State the first routing rule of the first Ethernet card, the secondary route rule of the second Ethernet card.
In one embodiment, the device of the equipment Dual-Ethernet card compatibility further includes:Network interface card detects and restarts module, uses In detect first Ethernet card respectively, whether the second Ethernet card is successfully driven;Network interface card restarts module, is used for if it is not, weight Open the Ethernet card of first Ethernet card/second, and detect first Ethernet card respectively again, the second Ethernet card is It is no to be successfully driven, until the Ethernet card of first Ethernet card/second is successfully driven.
In one embodiment, the network interface card detects and restarts module, including:First path detection sub-module, for detecting Path/sys/class/net/eth0 whether there is, and if it exists, then first Ethernet card is successfully driven;Wherein, described Eth0 is pre-set device nodes corresponding with first Ethernet card;Second path detection submodule, for detecting Path/sys/class/net/eth1 whether there is;If in the presence of second Ethernet card is successfully driven;Wherein, described Eth1 is pre-set device nodes corresponding with second Ethernet card.
In one embodiment, the device of equipment Dual-Ethernet card compatibility further includes:Cable detection module, if for Detect that the cable of first Ethernet card access is extracted, remove corresponding first IP address of first Ethernet card and First routing rule;Second removes module, if for detecting that the cable of the second Ethernet card access is extracted, described in removing Corresponding second IP address of second Ethernet card and secondary route rule.
In one embodiment, the equipment is Android device;The Android device passes through pre-defined 120PIN interfaces It is connect with interactive terminal, wherein the 120PIN interfaces include power cord, display signal line, usb signal line and internal network interface Signal wire;The internal network interface signal line exchange corresponding with interactive terminal that first Ethernet card passes through the 120PIN interfaces Machine or router connection;Second Ethernet card with external network for connecting.
In one embodiment, the device of equipment Dual-Ethernet card compatibility further includes:Working state control module is used Enter working condition in controlling the Ethernet card of first Ethernet card/second.
Further, the working state control module, including:First state control submodule, for executing Ifconfig eth0up orders set the state of first Ethernet card to UP, first Ethernet card are made to enter work Make state;Wherein, the eth0 is pre-set device nodes corresponding with first Ethernet card;Second state controls Submodule sets the state of second Ethernet card to UP for executing ifconfig eth1up orders, makes described Two Ethernet cards enter working condition;Wherein, the eth1 is pre-set equipment corresponding with second Ethernet card Node.
The embodiment of the present invention also provides a kind of system of equipment Dual-Ethernet card compatibility, including:Interactive terminal and described The corresponding equipment in interactive terminal, the interactive terminal are provided with switch or router, and the equipment is provided with the first Ethernet Card and the second Ethernet card;The equipment is connect by pre-defined interface with the interactive terminal so that described first with Too network interface card connects the switch or router by the interface;Wherein, the equipment includes:
Network interface card service starting module, for equipment system start when, while start the first Ethernet card it is corresponding with The too corresponding Ethernet card service of network interface card service and the second Ethernet card;Network interface card parameter setting module, for detecting When the Ethernet card of one Ethernet card/second has cable access, it is corresponding that the first Ethernet card/second Ethernet card is set TCP window size and network priority;The network of the network priority and the second Ethernet card of first Ethernet card is excellent First grade is consistent;IP address acquisition module, for starting the corresponding DHCP client's journey of the Ethernet card of first Ethernet card/second Sequence obtains corresponding second IP address of corresponding first IP address/second Ethernet card of the first Ethernet card;And routing rule Then setup module, the first via for first Ethernet card to be arranged according to first IP address, the second IP address respectively By rule, the secondary route rule of the second Ethernet card.
Equipment is connect by the system of the present embodiment by pre-defined interface with interactive terminal, is wherein arranged in equipment First Ethernet card is connected by the switch or router of the pre-defined interface and interactive terminal, in addition, equipment and friendship Mutual terminal can be connect by cable with cable network respectively.The present embodiment can effectively realize the Dual-Ethernet card in equipment simultaneously It works, and can also realize the transmission of network data when interactive terminal or equipment do not connect cable network.For example, if externally Network interface connection cable, then interactive terminal can be passed through data to outer net by the internal network interface of Android modules (equipment) Mouth is forwarded in outer net;Likewise, if it is the built-in interchanger connected with network cable in interaction, then Android modules is internal Network interface can also pass through the switch-access outer net;In addition, if the network interface of interactive terminal does not connect cable network, in It sets interchanger and is connected with the network equipment, and when Android moulds external network interface in the block does not connect cable yet, if without internal The presence of network interface, then can not just be deposited by network interaction data, internal network interface between interactive terminal and Android modules Mainly handling the usage scenario:There is the network equipment being connected with built-in interchanger in interactive terminal, and Android modules are then led to It crosses the built-in interchanger that internal network interface is connect with interactive terminal to be connected, the net between such interactive terminal and Android modules Network can form LAN in the case where not needing outer net and carry out network communication with regard to successful connection.
It should be noted that the equipment Dual-Ethernet card of the device and the present invention of the equipment Dual-Ethernet card compatibility of the present invention Compatible method corresponds, and the technical characteristic that is illustrated in the embodiment of the method for above equipment Dual-Ethernet card compatibility and its has For beneficial effect suitable for the embodiment of the device of equipment Dual-Ethernet card compatibility, particular content can be found in the method for the present invention implementation Narration in example, details are not described herein again, hereby give notice that.
In addition, in the embodiment of the device of the equipment Dual-Ethernet card compatibility of above-mentioned example, the logic of each program module Division is merely illustrative of, can be as needed in practical application, such as the configuration requirement or software of corresponding hardware The convenient of realization considers, above-mentioned function distribution is completed by different program modules, i.e., is compatible with the equipment Dual-Ethernet card The internal structure of device be divided into different program modules, to complete all or part of the functions described above.
In the above-described embodiments, it all emphasizes particularly on different fields to the description of each embodiment, there is no the portion being described in detail in some embodiment Point, it may refer to the associated description of other embodiments.It is appreciated that term " first ", " second " etc. are at this used in wherein For distinguishing object in text, but these objects should not be limited by these terms.
It will appreciated by the skilled person that realizing all or part of flow in above-described embodiment method, being can It is completed with instructing relevant hardware by computer program, the program can be stored in a computer-readable storage and be situated between In matter, sells or use as independent product.The more specific example (non-exhaustive list) of computer-readable medium includes Below:Electrical connection section (electronic device) with one or more wiring, portable computer diskette box (magnetic device), arbitrary access Memory (RAM), read-only memory (ROM), erasable edit read-only storage (EPROM or flash memory), optical fiber dress It sets and portable optic disk read-only storage (CDROM).It can be printed on it in addition, computer-readable medium can even is that The paper of described program or other suitable media, because can be for example by carrying out optical scanner to paper or other media, then It is handled electronically to obtain described program, then by it into edlin, interpretation or when necessary with other suitable methods Storage is in computer storage.
It should be appreciated that each section of the present invention can be realized with hardware, software, firmware or combination thereof.Above-mentioned In embodiment, software that multiple steps or method can in memory and by suitable instruction execution system be executed with storage Or firmware is realized.It, and in another embodiment, can be under well known in the art for example, if realized with hardware Any one of row technology or their combination are realized:With the logic gates for realizing logic function to data-signal Discrete logic, with suitable combinational logic gate circuit application-specific integrated circuit, programmable gate array (PGA), scene Programmable gate array (FPGA) etc..
In the description of this specification, reference term " one embodiment ", " some embodiments ", " example ", " specifically show The description of example " or " some examples " etc. means specific features, structure, material or spy described in conjunction with this embodiment or example Point is included at least one embodiment or example of the invention.In the present specification, schematic expression of the above terms are not Centainly refer to identical embodiment or example.Moreover, particular features, structures, materials, or characteristics described can be any One or more embodiments or example in can be combined in any suitable manner.
Each technical characteristic of embodiment described above can be combined arbitrarily, to keep description succinct, not to above-mentioned reality It applies all possible combination of each technical characteristic in example to be all described, as long as however, the combination of these technical characteristics is not deposited In contradiction, it is all considered to be the range of this specification record.
Several embodiments of the invention above described embodiment only expresses, should not be understood as to the scope of the claims of the present invention Limitation.It should be pointed out that for those of ordinary skill in the art, without departing from the inventive concept of the premise, Various modifications and improvements can be made, these are all within the scope of protection of the present invention.Therefore, the protection domain of patent of the present invention It should be determined by the appended claims.

Claims (11)

1. a kind of method of equipment Dual-Ethernet card compatibility, which is characterized in that including:
When the system of equipment starts, while starting the corresponding Ethernet card service of the first Ethernet card and the second Ethernet card Corresponding Ethernet card service;Wherein, the equipment is provided with the first Ethernet card and the second Ethernet card;
When detecting that the Ethernet card of the first Ethernet card/second has cable access, be arranged first Ethernet card/the second with The too corresponding TCP window size of network interface card and network priority;The network priority and the second ether of first Ethernet card The network priority of network interface card is consistent;
Start the corresponding DHCP CLIENT PROGRAMs of the Ethernet card of first Ethernet card/second, obtains first Ethernet card Corresponding second IP address of corresponding first IP address/second Ethernet card;
Respectively according to first IP address, the second IP address be arranged first Ethernet card the first routing rule, second The secondary route rule of Ethernet card.
2. the method for equipment Dual-Ethernet card compatibility according to claim 1, which is characterized in that described while startup first After the step of corresponding Ethernet card service of Ethernet card and the corresponding Ethernet card of the second Ethernet card service, detecting When having cable access to the Ethernet card of the first Ethernet card/second, the Ethernet card of first Ethernet card/second is set and is corresponded to TCP window size and the step of network priority before, further include:
First Ethernet card is detected respectively, whether the second Ethernet card is successfully driven;
If it is not, restarting the Ethernet card of first Ethernet card/second, and detect first Ethernet card, respectively again Whether two Ethernet cards are successfully driven, until the Ethernet card of first Ethernet card/second is successfully driven.
3. the method for equipment Dual-Ethernet card compatibility according to claim 2, which is characterized in that described in the detection respectively Whether the first Ethernet card, the second Ethernet card are successfully driven, including:
Detection path/sys/class/net/eth0 whether there is, and if it exists, then first Ethernet card is successfully driven;Its In, the eth0 is pre-set device nodes corresponding with first Ethernet card;
Detection path/sys/class/net/eth1 whether there is;If in the presence of second Ethernet card is successfully driven;Its In, the eth1 is pre-set device nodes corresponding with second Ethernet card.
4. the method for equipment Dual-Ethernet card compatibility according to claim 1, which is characterized in that described in the basis respectively The second tunnel of the first routing rule of first Ethernet card, the second Ethernet card is arranged in first IP address, the second IP address After step by rule, further include:
If detecting, the cable of the first Ethernet card access is extracted, with removing corresponding first IP of first Ethernet card Location and the first routing rule;
If detecting, the cable of the second Ethernet card access is extracted, with removing corresponding 2nd IP of second Ethernet card Location and secondary route rule.
5. the method for equipment Dual-Ethernet card compatibility according to any one of claims 1 to 4, which is characterized in that the equipment For Android device;The Android device is connect by pre-defined 120PIN interfaces with interactive terminal, wherein the 120PIN Interface includes power cord, display signal line, usb signal line and internal network interface signal line;
The internal network interface signal line interchanger corresponding with interactive terminal that first Ethernet card passes through the 120PIN interfaces Or router connection;
Second Ethernet card with external network for connecting.
6. the method for equipment Dual-Ethernet card compatibility according to claim 1, which is characterized in that described to start described first The corresponding DHCP CLIENT PROGRAMs of the Ethernet card of Ethernet card/second, obtain corresponding first IP address of first Ethernet card/ Before the step of second Ethernet card corresponding second IP address, further include:
It controls the Ethernet card of first Ethernet card/second and enters working condition.
7. the method for equipment Dual-Ethernet card compatibility according to claim 6, which is characterized in that the control described first The Ethernet card of Ethernet card/second enters working condition, including:
Ifconfig eth0 up orders are executed, the state of first Ethernet card is set to UP states, makes described first Ethernet card enters working condition;Wherein, the eth0 is pre-set equipment knot corresponding with first Ethernet card Point;
Ifconfig eth1 up orders are executed, the state of second Ethernet card is set to UP states, makes described second Ethernet card enters working condition;Wherein, the eth1 is pre-set equipment knot corresponding with second Ethernet card Point.
8. a kind of device of equipment Dual-Ethernet card compatibility, which is characterized in that including:
Network interface card services starting module, is used for when the system of equipment starts, while starting the corresponding Ethernet of the first Ethernet card Card service and the corresponding Ethernet card service of the second Ethernet card;Wherein, the equipment is provided with the first Ethernet card and Two Ethernet cards;
Network interface card parameter setting module, for when detecting that the Ethernet card of the first Ethernet card/second has cable access, institute to be arranged State the corresponding TCP window size of the Ethernet card of the first Ethernet card/second and network priority;First Ethernet card Network priority is consistent with the network priority of the second Ethernet card;
IP address acquisition module is obtained for starting the corresponding DHCP CLIENT PROGRAMs of the Ethernet card of first Ethernet card/second Take corresponding first IP address of first Ethernet card/corresponding second IP address of the second Ethernet card;
And routing rule setup module, for respectively according to first IP address, the second IP address setting described first with The too secondary route rule of the first routing rule of network interface card, the second Ethernet card.
9. a kind of system of equipment Dual-Ethernet card compatibility, which is characterized in that including:Interactive terminal and the interactive terminal pair The equipment answered, the interactive terminal are provided with switch or router, the equipment be provided with the first Ethernet card and second with Too network interface card;The equipment is connect by pre-defined interface with the interactive terminal so that first Ethernet card passes through The interface connects the switch or router;
Wherein, the equipment includes:
Network interface card services starting module, is used for when the system of equipment starts, while starting the corresponding Ethernet of the first Ethernet card Card service and the corresponding Ethernet card service of the second Ethernet card;
Network interface card parameter setting module, for when detecting that the Ethernet card of the first Ethernet card/second has cable access, institute to be arranged State the corresponding TCP window size of the Ethernet card of the first Ethernet card/second and network priority;First Ethernet card Network priority is consistent with the network priority of the second Ethernet card;
IP address acquisition module is obtained for starting the corresponding DHCP CLIENT PROGRAMs of the Ethernet card of first Ethernet card/second Take corresponding first IP address of the first Ethernet card/corresponding second IP address of the second Ethernet card;
And routing rule setup module, for respectively according to first IP address, the second IP address setting described first with The too secondary route rule of the first routing rule of network interface card, the second Ethernet card.
10. a kind of computer readable storage medium, is stored thereon with computer program, which is characterized in that the program is by processor The step of claim 1 to 7 any the method is realized when execution.
11. a kind of computer equipment, including memory, processor and storage are on a memory and the meter that can run on a processor Calculation machine program, which is characterized in that the processor realizes the step of claim 1 to 7 any the method when executing described program Suddenly.
CN201810079145.3A 2018-01-26 2018-01-26 Method, device and system for compatibility of dual Ethernet cards of equipment Active CN108347351B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810079145.3A CN108347351B (en) 2018-01-26 2018-01-26 Method, device and system for compatibility of dual Ethernet cards of equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810079145.3A CN108347351B (en) 2018-01-26 2018-01-26 Method, device and system for compatibility of dual Ethernet cards of equipment

Publications (2)

Publication Number Publication Date
CN108347351A true CN108347351A (en) 2018-07-31
CN108347351B CN108347351B (en) 2022-02-22

Family

ID=62960592

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810079145.3A Active CN108347351B (en) 2018-01-26 2018-01-26 Method, device and system for compatibility of dual Ethernet cards of equipment

Country Status (1)

Country Link
CN (1) CN108347351B (en)

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109639461A (en) * 2018-11-23 2019-04-16 中国船舶重工集团公司第七0七研究所 A kind of highly reliable dual redundant Ethernet real-time reversion method
CN110113211A (en) * 2019-05-10 2019-08-09 深圳市智微智能科技开发有限公司 Realize method, system, advertisement machine and the storage medium of the double network segments of Android advertisement machine
CN110493057A (en) * 2019-08-26 2019-11-22 迈普通信技术股份有限公司 A kind of radio reception device and its transmission control method
CN111600741A (en) * 2020-04-02 2020-08-28 怀来斯达铭数据有限公司 Method and system for setting network card IP address
CN111817962A (en) * 2020-07-01 2020-10-23 厦门立林科技有限公司 Android system multi-network-card intelligent routing method
CN112260947A (en) * 2020-10-21 2021-01-22 北京如影智能科技有限公司 Network configuration method and device
WO2023045389A1 (en) * 2021-09-26 2023-03-30 华为技术有限公司 Network card adaptation circuit, network card adaptation method, and related apparatus

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1925496B (en) * 2006-09-15 2011-06-29 杭州华三通信技术有限公司 System and method for load sharing of network layer with multiple network interface cards terminal equipment
CN103973800A (en) * 2014-05-19 2014-08-06 普天信息技术有限公司 Android-based double-network-card concurrence implementation method
WO2015096014A1 (en) * 2013-12-23 2015-07-02 西门子公司 Method for configuring ethernet device, and apparatus thereof
CN106302864A (en) * 2016-10-21 2017-01-04 用友网络科技股份有限公司 A kind of IP in order arranges system
US20170207958A1 (en) * 2011-08-26 2017-07-20 Microsoft Technology Licensing Llc Performance of Multi-Processor Computer Systems
CN107257291A (en) * 2017-05-26 2017-10-17 深圳市杉岩数据技术有限公司 A kind of network equipment data interactive method and system
CN107592209A (en) * 2016-07-08 2018-01-16 北京奇虎科技有限公司 A kind of multi-network card server automatically configures the method and system of IP address information

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1925496B (en) * 2006-09-15 2011-06-29 杭州华三通信技术有限公司 System and method for load sharing of network layer with multiple network interface cards terminal equipment
US20170207958A1 (en) * 2011-08-26 2017-07-20 Microsoft Technology Licensing Llc Performance of Multi-Processor Computer Systems
WO2015096014A1 (en) * 2013-12-23 2015-07-02 西门子公司 Method for configuring ethernet device, and apparatus thereof
CN103973800A (en) * 2014-05-19 2014-08-06 普天信息技术有限公司 Android-based double-network-card concurrence implementation method
CN107592209A (en) * 2016-07-08 2018-01-16 北京奇虎科技有限公司 A kind of multi-network card server automatically configures the method and system of IP address information
CN106302864A (en) * 2016-10-21 2017-01-04 用友网络科技股份有限公司 A kind of IP in order arranges system
CN107257291A (en) * 2017-05-26 2017-10-17 深圳市杉岩数据技术有限公司 A kind of network equipment data interactive method and system

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
写啊写啊写代码的小萌: "android6.0实现双网卡上网", 《HTTPS://WWW.JIANSHU.COM/P/42E0DCA8A0F2》 *
百度经验: "双网卡不用切换IP同时访问内外网", 《HTTPS://JINGYAN.BAIDU.COM/ARTICLE/3C48DD34668E6AE10BE35825.HTML》 *

Cited By (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109639461A (en) * 2018-11-23 2019-04-16 中国船舶重工集团公司第七0七研究所 A kind of highly reliable dual redundant Ethernet real-time reversion method
CN110113211A (en) * 2019-05-10 2019-08-09 深圳市智微智能科技开发有限公司 Realize method, system, advertisement machine and the storage medium of the double network segments of Android advertisement machine
CN110493057A (en) * 2019-08-26 2019-11-22 迈普通信技术股份有限公司 A kind of radio reception device and its transmission control method
CN110493057B (en) * 2019-08-26 2022-01-28 迈普通信技术股份有限公司 Wireless access equipment and forwarding control method thereof
CN111600741A (en) * 2020-04-02 2020-08-28 怀来斯达铭数据有限公司 Method and system for setting network card IP address
CN111817962A (en) * 2020-07-01 2020-10-23 厦门立林科技有限公司 Android system multi-network-card intelligent routing method
CN111817962B (en) * 2020-07-01 2022-06-14 厦门立林科技有限公司 Android system multi-network-card intelligent routing method
CN112260947A (en) * 2020-10-21 2021-01-22 北京如影智能科技有限公司 Network configuration method and device
CN112260947B (en) * 2020-10-21 2022-08-05 北京如影智能科技有限公司 Network configuration method and device
WO2023045389A1 (en) * 2021-09-26 2023-03-30 华为技术有限公司 Network card adaptation circuit, network card adaptation method, and related apparatus

Also Published As

Publication number Publication date
CN108347351B (en) 2022-02-22

Similar Documents

Publication Publication Date Title
CN108347351A (en) The method, apparatus and system of equipment Dual-Ethernet card compatibility
CN109298771A (en) Charging/discharging thereof and its system and non-transient computer readable storage medium
CN104780070B (en) Network system and network management
CN106155260B (en) The system and management method and computer readable storage medium of server
CN104753697B (en) A kind of method, equipment and system controlling the automatic beginning of the network equipment
CN106502335B (en) For configuring the machine frame system and its configuration method of one or more servomechanisms
CN104993947B (en) The method of batch upgrade firmware
CN104350467A (en) Elastic enforcement layer for cloud security using SDN
CN106878204B (en) Virtual machine creating method and device
CN109388213A (en) Server system, computer implemented method and non-transitory computer-readable medium
CN108900384A (en) Network flow monitoring method, apparatus and system, computer readable storage medium
CN106155264B (en) Manage the computer approach and computer system of the power consumption of storage subsystem
CN111901177B (en) Bare metal server network configuration method, system and related equipment
CN109039829A (en) A kind of network card performance testing method, apparatus, terminal and storage medium
CN109587005A (en) Connecting detection method, apparatus, computer equipment and readable storage medium storing program for executing
CN108984351A (en) System, method and the computer readable storage medium of voltage adjuster burn-in testing
CN110213121A (en) Test platform, test method and the test device of virtual communication product
CN104683428A (en) Network service processing method and device
CN106027396B (en) A kind of route control method, device and system
CN114650223A (en) Network configuration method and device of Kubernetes cluster and electronic equipment
CN207367004U (en) A kind of unmanned plane plug-in device recognition process unit
CN109379269A (en) Virtual swap device data forwarding method, device and computer equipment
CN108900441A (en) Method for switching network, the first electronic equipment and readable storage medium storing program for executing
CN102789388B (en) In MIPS IA frame serverPC, the method and system of network interface card function are increased based on BMC
CN104219240B (en) A kind of main frame learning 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
TA01 Transfer of patent application right

Effective date of registration: 20200318

Address after: 510530 Guangdong city of Guangzhou province YUNPU Whampoa district four Road No. 6

Applicant after: GUANGZHOU SHIYUAN ELECTRONICS Co.,Ltd.

Address before: 510530, No. four, 6, Po Pu Road, Whampoa District, Guangzhou, Guangdong, Guangzhou

Applicant before: GUANGZHOU SHIYUAN ELECTRONICS Co.,Ltd.

Applicant before: SHENZHEN KAISHI ELECTRONIC TECHNOLOGY Co.,Ltd.

TA01 Transfer of patent application right
GR01 Patent grant
GR01 Patent grant