CN109412830A - The cured method, apparatus of Adapter Name, computer equipment and storage medium - Google Patents

The cured method, apparatus of Adapter Name, computer equipment and storage medium Download PDF

Info

Publication number
CN109412830A
CN109412830A CN201811031779.8A CN201811031779A CN109412830A CN 109412830 A CN109412830 A CN 109412830A CN 201811031779 A CN201811031779 A CN 201811031779A CN 109412830 A CN109412830 A CN 109412830A
Authority
CN
China
Prior art keywords
name
network interface
interface card
card
registered
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
CN201811031779.8A
Other languages
Chinese (zh)
Other versions
CN109412830B (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
Guangzhou Shirui Electronics Co Ltd
Original Assignee
Guangzhou Shiyuan Electronics Thecnology Co Ltd
Guangzhou Shirui Electronics 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 Guangzhou Shiyuan Electronics Thecnology Co Ltd, Guangzhou Shirui Electronics Co Ltd filed Critical Guangzhou Shiyuan Electronics Thecnology Co Ltd
Priority to CN201811031779.8A priority Critical patent/CN109412830B/en
Publication of CN109412830A publication Critical patent/CN109412830A/en
Application granted granted Critical
Publication of CN109412830B publication Critical patent/CN109412830B/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/0889Techniques to speed-up the configuration process
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L61/00Network arrangements, protocols or services for addressing or naming
    • H04L61/30Managing network names, e.g. use of aliases or nicknames
    • H04L61/3005Mechanisms for avoiding name conflicts

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Stored Programmes (AREA)

Abstract

The present invention relates to the cured method, apparatus of Adapter Name, computer equipment and storage mediums, are applied to Network Connection.The described method includes: the unique identification of network interface card to be solidified in systems is obtained, as device identification;The first name of the network interface card to be solidified is obtained by preset mapping table;Described first is named as the corresponding solidification interface name of device identification described in mapping table;Determine that first name is not occupied by registered network interface card;First name is set by the network interface name of the network interface card to be solidified.The embodiment of the present invention solve the problems, such as existing way Adapter Name it is cured come into force low efficiency the problem of, and advantageously ensure that the network communication stability of system.

Description

The cured method, apparatus of Adapter Name, computer equipment and storage medium
Technical field
The present invention relates to Network Connection fields, more particularly to the cured method, apparatus of Adapter Name, computer equipment And storage medium.
Background technique
In embedded systems, it is the communication for meeting itself and external network, generally requires and one or more net is set Card, by being extended to network interface card, one or more local area network can be constructed so that embedded system meet it is more complicated Application scenarios.
In the implementation of the present invention, following problem exists in the prior art in inventor, is with Linux system Example, it includes network interface card network interface name there are randomness, and system is applied when executing communication, needs to preset its net Network interface, such as eth0 are connected for external network, and for communicating with internal communication local area network 1, eth2 is used for and inside eth1 Communication of local area network 2 etc. is communicated, if the network interface name of network interface card is not fixed, will lead to system using not corresponding net Card, leads to communication abnormality.In order to solve this problem, it is common practice in systems after all network interface card initialization, pass through Ip command mode modifies the entitled desired name of network interface of network interface card one by one, and which leads to the cured efficiency that comes into force of Adapter Name It is low.
Summary of the invention
Based on this, it is necessary to existing way Adapter Name it is cured come into force low efficiency aiming at the problem that, a kind of Adapter Name is provided Cured method, apparatus, computer equipment and storage medium.
According to the first aspect of the invention, a kind of cured method of Adapter Name is provided, comprising:
The unique identification of network interface card to be solidified in systems is obtained, as device identification;
The first name of the network interface card to be solidified is obtained by preset mapping table;Record has equipment in the mapping table Mark and the mapping relations for solidifying interface name, described first is named as the corresponding solidification interface of device identification described in mapping table Name;
Determine that first name is not occupied by registered network interface card;
First name is set by the network interface name of the network interface card to be solidified.
In one embodiment, the determination first name is not occupied by registered network interface card, before further include:
Traverse registered equipment chain for first name, judge network interface card in the equipment chain network interface name whether It is identical as first name;It include current registered network interface card and its network interface name in the equipment chain;
If the network interface name of any network interface card is not identical as first name in the equipment chain, it is determined as described the One name is not occupied by registered network interface card.
In one embodiment, the determination first name is not occupied by registered network interface card, before further include:
Preset variable is inquired for first name;The variable includes n bit, and the value of n, which is equal to system, to be connect The network interface card total amount entered;Each bit is for marking whether n network interface name is currently registered in the variable;
If the value of bit corresponding with the first name is the first setting value in the variable, it is determined that for first name It is not occupied by registered network interface card;
If the value of bit corresponding with the first name is the second setting value in the variable, it is determined that for first name It is occupied by registered network interface card.
In one embodiment, further includes:
Determine that first name is occupied by registered network interface card;
Obtain conflict network interface card;The conflict network interface card is registered network interface card, and its network interface name and described first is named It is identical;
The network interface name of the conflict network interface card is revised as the second name;
After the network interface name of the conflict network interface card to be revised as to the second name and is completed, by the network interface card to be solidified Network interface name be set as it is described first name.
In one embodiment, the network interface name by the conflict network interface card is revised as the second name, before also Include:
Obtain the second name;Second name meets condition: not being occupied by registered network interface card, and with described first It names not identical.
In one embodiment, the network interface name by the conflict network interface card is revised as the second name, comprising:
Grid state is changed to temporary state;
Invocation target function, when the objective function is called, for modifying the network interface name of the conflict network interface card It is named for second, and the conflict modified network interface name of network interface card is synchronized to each relating dot in system kernel space;
Recovery system network state.
In one embodiment, the network interface name by the network interface card to be solidified is set as first life Name, comprising:
It is first name by the network interface name variable assignments of the network interface card to be solidified.
In one embodiment, the system is the operating system based on linux kernel;Network interface card to be solidified is extension Network interface card;
It is described to obtain the unique identification of network interface card to be solidified in systems, comprising: obtaining network interface card to be solidified in operation is Busid mark in system.
In one embodiment, further includes:
Network interface card is set and solidifies the first mapping relations of interface name;
According to first mapping relations and the corresponding device identification of network interface card, obtains device identification and solidify interface name Second mapping relations;
Mapping table is established according to second mapping relations;
Save the mapping table.
According to the second aspect of the invention, a kind of cured device of Adapter Name is provided, comprising:
Identifier acquisition module, for obtaining the unique identification of network interface card to be solidified in systems, as device identification;
Name obtains module, for obtaining the first name of the network interface card to be solidified by preset mapping table;It is described Record has device identification and solidifies the mapping relations of interface name in mapping table, and described first is named as equipment mark described in mapping table Know corresponding solidification interface name;
First confirmation module, for determining that first name is not occupied by registered network interface card;
Curing module is named, for setting first name for the network interface name of the network interface card to be solidified.
In one embodiment, further includes:
Equipment chain checks module, for judging net in network card equipment chain for the first name traversal network card equipment chain Whether the network interface name of card is identical as first name;Include in the network card equipment chain current registered network interface card and Its network interface name;
First confirmation module, if specifically for the network interface name and described first of any network interface card in network card equipment chain Name is all different, and is determined as first name and is not occupied by registered network interface card.
In one embodiment, further includes:
Variable checks module, for inquiring preset variable for first name;The variable includes n bit, n Value be equal to system can access network interface card total amount;In the variable each bit for mark n network interface name currently whether It is registered;
Second confirmation module, if the value for bit corresponding with the first name in the variable is the second setting value, really It is set to first name to be occupied by registered network interface card;
First confirmation module, if the value specifically for bit corresponding with the first name in the variable sets for first Definite value, it is determined that do not occupied by registered network interface card for first name.
In one embodiment, further includes:
Second confirmation module, for determining that first name is occupied by registered network interface card;
Conflict obtains module, for obtaining conflict network interface card;The conflict network interface card is registered network interface card, and its network interface name It is identical as first name;
Modified module is named, for the network interface name of the conflict network interface card to be revised as the second name;
Wherein, the name curing module, specifically for the network interface name of the conflict network interface card is being revised as second After name is completed, first name is set by the network interface name of the network interface card to be solidified.
In one embodiment, further includes:
Name determining module is modified, for obtaining the second name;Second name meets condition: not by registered network interface card It occupies, and not identical as first name.
In one embodiment, the name modified module includes:
Temporary storage location, for grid state to be changed to temporary state;
Function calling cell is used for invocation target function, when the objective function is called, is used for the conflict network interface card Network interface name be revised as the second name, and the modified network interface name of conflict network interface card is synchronized to system kernel sky Between each relating dot;
Recovery unit is used for recovery system network state.
In one embodiment, further includes:
First mapping relations establish module, the first mapping relations for network interface card being arranged Yu solidifying interface name;
Second mapping relations establish module, are used for according to first mapping relations and the corresponding device identification of network interface card, It obtains device identification and solidifies the second mapping relations of interface name;
Mapping table establishes module, for establishing mapping table according to second mapping relations;
Mapping table preserving module, for saving the mapping table.
According to the third aspect of the invention we, a kind of computer equipment is provided, including memory, with the display of touch function Screen and processor;The memory, for storing computer program;When the computer program is executed by the processor When, so that the step of processor realizes the Adapter Name of any of the above-described embodiment cured method.
According to the fourth aspect of the invention, a kind of computer storage medium is provided, computer program is stored thereon with, the journey The step of method as cured such as the Adapter Name of above-mentioned any embodiment is realized when sequence is executed by processor.
Implement embodiment provided by the invention, using the unique identification of network interface card in systems as device identification, is based on equipment Mark inquires preset mapping table, obtains the target solidification interface name of the network interface card;It is possible to further determine that target solidification connects Whether mouth name is occupied by other network interface cards, if unoccupied, directly sets target solidification for the network interface name of the network interface card Interface name.Through the above technical solutions, based on kernel spacing realize network interface card network interface name solidification, different from it is traditional based on The technical solution of the network interface name modification of user's space, can be improved the efficiency that comes into force of network interface card.
Further, by some embodiments, if target solidification interface name is occupied by registered network interface card, without waiting until All network interface cards initially finish the network interface name that could modify network interface card, and the network interface name there are a period of time is avoided not correspond to, The problem of leading to communication abnormality.
Further, by some embodiments, by constructing reflecting comprising device identification-network interface name mapping relations Firing table, so that the cured configuration of Adapter Name is flexibly, the system that heterogeneous networks framework can be adapted to.
Detailed description of the invention
Fig. 1 is the system architecture diagram that the cured method of Adapter Name is applicable in one embodiment;
Fig. 2 is the schematic flow chart of the cured method of Adapter Name of an embodiment;
Fig. 3 is the schematic flow chart of the cured method of Adapter Name of another embodiment;
Fig. 4 is the schematic flow chart of the network interface name of the registered network interface card of modification of an embodiment;
Fig. 5 is the variable label result schematic diagram of an embodiment;
Fig. 6 is the application scenarios schematic diagram of the cured method of Adapter Name of an embodiment;
Fig. 7 is the schematic diagram of the cured device of Adapter Name of an embodiment;
Fig. 8 is the internal structure chart of computer equipment in one embodiment.
Specific embodiment
In order to make the objectives, technical solutions, and advantages of the present invention 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.
Referenced herein " embodiment " is it is meant that a particular feature, structure, or characteristic described can wrap in conjunction with the embodiments It is contained at least one embodiment of the application.Each position in the description occur the phrase might not each mean it is identical Embodiment, nor the independent or alternative embodiment with other embodiments mutual exclusion.Those skilled in the art explicitly and Implicitly understand, embodiment described herein can be combined with other embodiments.
The cured method of Adapter Name provided by the present application can be adapted for more network interface card access systems as shown in Figure 1, this is more It include a master controller in network interface card access system, the master controller is for accessing external network and/or building local area network;Into one Step ground, the master controller include a built-in network interface card 0 (generally Ethernet card), can access internet by network interface card 0;This Outside, external network interface cards that further include several extended by USB interface, for example including network interface card 1, network interface card 2, network interface card 3 ..., network interface card N, master controller can construct multiple local area networks by these external network interface cards.No matter built-in network interface card or network interface card is extended, is hardware Equipment.
Wherein, main operation controller has the operating system based on linux kernel, such as Android system.The operating system can It is divided into kernel spacing and user's space, wherein kernel spacing is the core of system, has many most basic functions, it It is responsible for process, memory, device driver, file and the network system of management system, is mainly used for operating system kernel code And the closely related code with hardware, decide the performance and stability of system.User's space is for running multiple user classes Application program, these application programs cannot use certain specific system functions, cannot direct access hardware devices, can not be straight Connect access kernel space, each application program or process can have oneself a specific address, private data space, between program It will not generally influence each other.Kernel spacing can be communicated by system call interfaces with user's space.It says, will use from security standpoint Family space and kernel spacing are placed under above-mentioned asymmetric access mechanism, can resist the snooping of malicious user, can also prevent quality The infringement of inferior user program, so that system be made to run more stable and reliable.
In embodiment, the kernel spacing of operating system can also be communicated by Kernel Driver with hardware device.
In addition, in embodiment, all hardware equipment can kernel spacing /road sys/bus/usb/devices Found under diameter, i.e., above-mentioned built-in network interface card and extension network interface card, can kernel spacing /road sys/bus/usb/devices It is found under diameter.
Further, above-mentioned more network interface card access systems can be embedded into substantive electronic equipment, which can be with It is laptop computer, cellular phone, camera phone, smart phone, personal digital assistant, media player, navigation equipment, electricity Sub- mail transmission/reception equipment, game console, interactive intelligent tablet computer, wearable device, intelligent locomotive, pilotless automobile, intelligence The combination of any several equipment in refrigerator, other smart home devices or these equipment.It can be equipped in electronic equipment Various application programs needed for user, such as text editing class application program, presentation class application program, instant messaging class application Program, picture editting's class application program, social category application program, electric business class application program, searching class application program, browser class Application program etc..Wherein, text editing class application program such as electronic whiteboard application, electronic blackboard application, presentation class is answered Screen application, instant messaging class application program such as video conference application are thrown with program is such as wireless.
In embodiment, it is described so that interactive intelligent tablet computer is electronic equipment as an example, wherein interactive intelligent tablet computer can be with It is the integration apparatus for the content being shown on display plate being manipulated and being realized by touch technology man-machine interactive operation, It is integrated with one or more functions such as projector, electronic whiteboard, curtain, sound equipment, television set and video conference terminal.
In one embodiment, it as shown in Fig. 2, providing a kind of cured method of Adapter Name, can apply in this way In more network interface card access systems shown in FIG. 1, specifically includes the following steps:
S110 obtains the unique identification of network interface card to be solidified in systems, as device identification.
Wherein, network interface card to be solidified can be understood as the network interface card that network interface name is not yet arranged;Specifically, net to be solidified Card can be built-in network interface card to be solidified, be also possible to extension network interface card to be solidified.
In the operating system based on linux kernel, there is a unique busid to identify each equipment;And In the case where physical circuit is fixed, the corresponding busid of equipment is uniquely fixed.Therefore, for Ethernet card and each Usb extends network interface card, has a unique busid to identify in systems, and corresponding busid is fixed.
In some embodiments, can by checking that system equipment gets the unique identification of network interface card in systems, such as Passage path :/sys/bus/usb/devices gets the busid of corresponding network interface card in systems, in this, as device identification.
S120 obtains the first name of the network interface card to be solidified by preset mapping table;It is recorded in the mapping table Have device identification and solidify the mapping relations of interface name, described first be named as in mapping table it is corresponding with the device identification solid Change interface name.
In embodiment, solidification interface name can be understood as user and it is expected the cured network interface name of certain network interface card.Based on net Network interface name, the accessible corresponding network interface card of the application program of user's space, to access external network or building local area network.
S130 determines that first name is not occupied by registered network interface card.
In embodiment, when the network interface name of some registered network interface card is identical as first name, it is determined that be First name is occupied by the registered network interface card, if the network interface name of any registered network interface card and this first name not phase Together, then it can determine that the first name is not occupied by registered network interface card.
The network interface name of the network interface card to be solidified is set first name by S140.
It in embodiment, can be by the network of network interface card to be solidified if the first name is not occupied by registered network interface card Interface name variable assignments is first name.Hereafter, the network interface card and its corresponding network interface name are set in the system of being registered to In nuclear space, the application program of user's space can access the network interface card by network interface name.
Through the foregoing embodiment, it using network interface card unique identification in systems as device identification, is inquired based on device identification Preset mapping table obtains the target solidification interface name of the network interface card;It is possible to further whether determine target solidification interface name It is occupied by other network interface cards, if unoccupied, directly sets target solidification interface name for the network interface name of the network interface card.It is logical Above-mentioned technical proposal is crossed, the network interface name solidification of network interface card is realized based on kernel spacing, different from traditional based on user's space Network interface name modification technical solution, can be improved the efficiency that comes into force of network interface card.
In addition, traditional carry out the cured side of network interface name modification by user's space (such as ip order of standard) Formula needs that all network interface cards is waited initially to finish, and then could modify the network interface name of network interface card one by one, there is a period of time in this way The network interface name situation not corresponding with network interface card, have an impact to the network communication stability of system.Through the foregoing embodiment The cured method of Adapter Name realizes Adapter Name solidification based on kernel spacing, and there is no network interface name and network interface cards in a period of time Not corresponding situation, therefore can guarantee the network communication stability of system.
With continued reference to more network interface card access systems shown in FIG. 1, below by a specific example to the net of above-described embodiment The cured method of card name is further remarked additionally.
In more network interface card access systems shown in Fig. 1, logic is applied according to actual, it is assumed that user it is expected the net of each network interface card Network interface name is solidified according to solidification interface name as shown in Table 1 (it is expected cured network interface name).
Table 1:
Network interface card Solidify interface name
Network interface card 1 eth3
Network interface card 2 eth1
Network interface card 3 eth0
Network interface card 4 eth2
…… ……
Network interface card n ethX
In embodiment, as shown in table 1, user it is expected cured network interface card include network interface card 1, network interface card 2 ..., network interface card n;And It is expected that the entitled eth3 of solidification interface of network interface card 1, it is expected that the entitled eth1 of solidification interface of network interface card 2, it is expected that the solidification interface name of network interface card 3 For eth0, referring specifically to table 1.
It should be noted that network interface card shown in table 1 and corresponding solidification interface name be as just a kind of citing, in other feelings Under condition, user can also construct other network interface cards and solidify the mapping relations of interface name, so that the corresponding other solidification interfaces of network interface card Name.
In the case where obtaining the unique and fixed device identification in systems of each network interface card, the net in conjunction with shown in above-mentioned table 1 Block and solidify the mapping relations of interface name, solidifies interface name and the mapping relations of busid shown in available table 2.
Table 2:
It should be noted that solidifying the mapping relations of interface name and busid shown in table 2 as just a kind of citing, at it In the case of him, the unique and fixed device identification of table 1 and network interface card based on user setting in systems can also be constructed Other forms solidify interface name and the mapping relations of busid.
After the mapping relations for determining table 2, trawl performance is loaded based on system kernel space, and then can be according to such as lower section Method carries out the network interface name solidification of network interface card.Shown in Figure 3, the cured method of network interface name of network interface card may include as follows Process:
Step S310, setting solidify interface name and the mapping relations of busid, construct mapping table with this.
The concrete form of mapping table can refer to above-mentioned table 2, save the mapping table of building.
In addition, in some embodiments, in system kernel space, also needing to drive in advance and the progress of corresponding equipment With binding, in the present embodiment, i.e., trawl performance and network interface card are subjected to matching binding.Specific implementation can refer to existing The matching binding method of the kernel-driven of android system and corresponding network card equipment.
In one embodiment, after trawl performance and network interface card are carried out matching binding, preset number can be passed through The information of group record mapping table, i.e., recorded in mapping table by array and solidify interface name and the mapping relations of busid.Such as:
5 are had recorded in array force_phy_table solidifies interface name and the mapping relations of busid, wherein " The mapping relations of RESERVED ", //eth0 expression reserved busid and " eth0 " that solidifies interface name, " 3-1.3:1.0 ", // Eth1 indicates the mapping relations of busid " 3-1.3:1.0 " with " eth1 " that solidifies interface name, and so on.
Furthermore, it is possible to indicate ethi with the subscript i of array force_phy_table.For example busid is 3-1.3:1.0, Array index is 1, can be expressed as force_phy_table [1], and the corresponding solidification interface name of the network interface card is just eth1;Such as Busid is 3-1.2:1.0, and array index 3 can be expressed as force_phy_table [3], the corresponding solidification of the network interface card Interface name is just eth3.It is of course also possible to which the interface name that solidifies to wireless network card is defined according to the rule of wlanX, such as busid For the network interface card of 3-1.3:1.0, corresponding solidification interface name can also be wlan1, and busid is the network interface card of 3-1.2:1.0, corresponding Solidifying interface name can also be wlan3.
Step S320 obtains the busid of network interface card to be solidified.
Can be with passage path :/sys/bus/usb/devices gets the busid of network interface card in systems.
Step S330 obtains the solidification interface name of network interface card to be solidified according to busid and mapping table.
Step S340, judges whether the solidification interface name is occupied by registered network interface card.
In one embodiment, the implementation of the process may include:
For the solidification interface name, current registered equipment chain is traversed, includes current registered in the equipment chain Network interface card and its network interface name.Equipment in the equipment chain is the network equipment having already registered in kernel, network Interface name: ethX, wlanX, lo etc..
By traversal, it whether there is such registered network interface card, the network of the registered network interface card in detection device chain Interface name is identical as the solidification interface name (such registered network interface card also in embodiment, is referred to as the network interface card that conflicts);Such as There is conflict network interface card in fruit, then enter step S350, if there is no conflict network interface card, then enter step S360.
Step S350: confirmation solidification interface name is occupied by other network interface cards, will occupy the registered of the solidification interface name The network interface name of network interface card (i.e. conflict network interface card) is revised as other network interface names, then executes step S360 again, setting is current The entitled solidification interface name of the network interface of network interface card to be solidified.
In embodiment, if the network interface name of any network interface card is all different with solidification interface name in equipment chain, determining should Solidification interface name is not occupied by registered network interface card, otherwise, it determines the solidification interface name is occupied by registered network interface card.
In some embodiments, whether confirmation solidification interface name has been occupied by other registered network interface cards, can also lead to The mode for crossing inquiry design variables obtains, and in system initialization, can be directed to n default name of n network interface card, generate n The variable of bit, the variable for recording whether current n default name has been registered in real time.Specifically can using it is following " time Go through label " method:
Firstly, initializing a n bit's for the n default name (eth0, eth1 ..., ethn-1) of n network interface card Variable.
Secondly, traversing current registered equipment chain, detection is for+1 default name ethk of kth in n network interface card Whether the network interface name of the network interface card of registration is identical as ethk, records the traversing result of ethk with kth+1 bit of variable, For kth+1 bit, it is occupied that 0 expression names ethk not have, and 1 indicates that name ethk is occupied.Such as 16 network interface cards 16 default names, generate the variable of a 16bitd, the traversal label result of variable record is as shown in figure 5, number i+1 The traversing result of i-th of default name (ethi) of bit records, such as the position bit of number 4 record the 3rd default name (eth3) traversing result shows that eth3 is named not occupied by other current network interface cards.
After the busid for obtaining network interface card to be solidified by step S320, can be obtained based on mapping table or array to Whether the solidification interface name for solidifying network interface card can get the solidification interface name by other by inquiring the variable of n above-mentioned bit Network interface card occupies.If such as the entitled eth3 of solidification interface of network interface card to be solidified, the 4th bit for inquiring the variable of the n bit, such as Fruit the bit is 0, then it represents that solidification interface name eth3 is not occupied by other network interface cards currently;If the bit is 1, then it represents that Gu Change interface name eth3 currently to be occupied by other network interface cards, in this case, needs first to modify the registered of the entitled eth3 of network interface Network interface card interface name.
By the way that design variables are arranged, and it is that record is corresponding in real time by each bit of design variables and names occupied feelings Condition can directly inquire design variables, can quickly obtain network interface card to be solidified after the busid for obtaining network interface card to be solidified Solidify the occupied situation of interface name, without interim traversal equipment chain, is conducive to improve the interface name solidification to network interface card to be solidified Efficiency.
In some embodiments, shown in Figure 4, step S350 may further include:
Step 51, locking protection first is carried out to system resource;Such as by RTNL_LOCK interface operation to system resource into Row protection.
Step 52, before the network interface name of modification conflict network interface card, the current network interface state of system is kept in, example Such as changing network interface state is " down ";
Step 53, the network interface name of modification conflict network interface card.
It should be noted that the network interface name of modification conflict network interface card is not simple modification name variable (for indicating The variable of network interface name) value, which can permeate in entire trawl performance, it is necessary to pass through the specific of system kernel Function is modified, and otherwise the network interface name after synchronous change is easy to cause exception to each relating dot of kernel.
Therefore, in some embodiments, the implementation of step 53 is the objective function of calling system kernel, the target When function is called, it can be used for for the network interface name for the network interface card that conflicts being revised as the second name, and after the network interface card modification that will conflict Network interface name be synchronized to each relating dot of trawl performance;Wherein, second name need to meet condition: not registered Network interface card occupy, and it is not identical as the solidification interface name of network interface card to be solidified.
Step 54, restore the original state of network Interface status, system resource is unlocked, such as is connect by UNLOCK Mouth operation unlocks system resource.
Wherein, the temporary and recovery of network interface state is completed in kernel-driven, change network interface state State value kernel is provided with standard interface, and transmitting the Interface status value by parameter can be realized.
Wherein, RTNL_LOCK/UNLOCK is that the movement for needing to add when standard interface operation is called in linux kernel space, Purpose is protected to resource.
In one embodiment, before step 53 further include: obtain the second name (available network interface), then execute Step 53, it is modified with network interface name of the available network interface name got to conflict network interface card.
In some embodiments, the mode for obtaining the second name can be by way of inquiring design variables described above Obtain, if such as network interface card to be solidified the entitled eth3 of solidification interface, the 4th bit for inquiring design variables, the bit is 1, Indicate that solidification interface name eth3 is currently occupied by other network interface cards, in this case, the bit for being 0 in acquisition design variables, such as the 2 bit, it can thus be appreciated that the 2nd bit corresponding name eth1 are not occupied by other network interface cards currently, therefore can be by eth1 As the second name, and modify the entitled eth1 of network interface of conflict network interface card.
The network interface name of network interface card to be solidified is named as solidification interface name by step S360.
In one embodiment, the network interface name variable assignments by network interface card to be solidified can be used for the solidification interface Name, is achieved in the solidification of the network interface of network interface card to be solidified.
Step S370: after step S360 is finished, which can be registered in system kernel.
In some embodiments, registration network interface card can be realized in system kernel by canonical function, such as by Linux The register_netdev function of core will have determined that cured network interface name copies in dev- > name memory.Network interface card Network interface name comes into force, and is after registering the network interface card to core system success.So far, in registered network card equipment chain It will can view the network interface card and its solidify the information of interface name.
Referring to the application scenarios of Fig. 6, the example of a cured method of Adapter Name, applied field are provided further below Scape are as follows: certain money contains the interactive intelligent tablet computer system there are two local area network, which includes master controller and meter Calculation machine module 1 and computer module 2, for main operation controller in android system, computer module 1, computer module 2 can be with Operate in android system or Windows system, master controller built-in ethernet network interface card, can be with for connecting external network Internet is accessed, for example default is to use eth0 as the network interface name of ethernet nic, to pass through network interface name Eth0 connection Internet, master controller are additionally provided with two extension network interface cards (extension network interface card 1 and extension network interface card 2), two extension nets The busid and solidification interface name of card are as shown in Figure 6.Application program in master controller is wished according to the solidification interface name and outside Computer module is communicated, and is constituted local area network (subnet 1 and subnet 2).
In interactive intelligent tablet computer system starting process, can the cured method of Adapter Name through the foregoing embodiment, will Extension network interface card 1, the network interface name for extending network interface card 2 are cured as eth2, eth1 respectively, finish in the starting of interactive intelligent tablet computer system Afterwards, master controller application program passes through network interface name eth2, eth1 access extension network interface card 1, extension network interface card 2, thus can be with Computer module 1 and computer module 2 are communicated.It does not need to carry out complexity in interactive intelligent tablet computer system starting process Network card identification and the movement of network interface card renaming, will not cause to lead to due to the network interface name of network interface card is not fixed when each starting up Letter failure, so that the stability and rapidity of network interface card are protected.
Different from the network interface name modification of the network interface card of user's space, the cured method of the Adapter Name of above-described embodiment is led to The network interface name that kernel spacing solidifies network interface card is crossed, the solidification of network interface name can be completed when trawl performance load, It is more efficient, and solidify by busid- the flexible configuration of interface name, the system that heterogeneous networks framework can be adapted to.
It should be understood that for the various method embodiments described above, although each step in flow chart is according to arrow Instruction is successively shown, but these steps are not that the inevitable sequence according to arrow instruction successively executes.Unless having herein bright True explanation, there is no stringent sequences to limit for the execution of these steps, these steps can execute in other order.And And at least part step in the flow chart of embodiment of the method may include multiple sub-steps or multiple stages, this is a little Step or stage are not necessarily to execute completion in synchronization, but can execute at different times, these sub-steps Perhaps the execution sequence in stage be also not necessarily successively carry out but can with the sub-step of other steps or other steps or At least part in person's stage executes in turn or alternately.
Based on thought identical with the cured method of the Adapter Name in above-described embodiment, it is cured that Adapter Name is also provided herein Device.
In one embodiment, as shown in fig. 7, the cured device of the Adapter Name of the present embodiment includes: identifier acquisition module 701, name obtains module 702, the first confirmation module 703 and name curing module 704, and details are as follows for each module:
Identifier acquisition module 701, for obtaining the unique identification of network interface card to be solidified in systems, as device identification;
Name obtains module 702, for obtaining the first name of the network interface card to be solidified by preset mapping table;Institute Stating record in mapping table has device identification and solidifies the mapping relations of interface name, and described first is named as equipment described in mapping table Identify corresponding solidification interface name;
First confirmation module 703, for determining that first name is not occupied by registered network interface card;
Curing module 704 is named, for setting first name for the network interface name of the network interface card to be solidified.
Further, in one embodiment, above-mentioned apparatus further include:
Equipment chain checks module, for judging net in network card equipment chain for the first name traversal network card equipment chain Whether the network interface name of card is identical as first name;Include in the network card equipment chain current registered network interface card and Its network interface name;
Wherein, first confirmation module, if network interface name and institute specifically for any network interface card in network card equipment chain It states the first name to be all different, is determined as first name and is not occupied by registered network interface card.
In another embodiment, above-mentioned apparatus further include: further include:
Variable checks module, for inquiring preset variable for first name;The variable includes n bit, n Value be equal to system can access network interface card total amount;In the variable each bit for mark n network interface name currently whether It is registered;
Second confirmation module, if the value for bit corresponding with the first name in the variable is the second setting value, really It is set to first name to be occupied by registered network interface card;
Wherein, above-mentioned first confirmation module, if the value specifically for bit corresponding with the first name in the variable is the One setting value, it is determined that do not occupied by registered network interface card for first name.
Further, in one embodiment, above-mentioned apparatus further include:
Second confirmation module, for determining that first name is occupied by registered network interface card;
Conflict obtains module, for obtaining conflict network interface card;The conflict network interface card is registered network interface card, and its network interface name It is identical as first name;
Modified module is named, for the network interface name of the conflict network interface card to be revised as the second name;
Wherein, the name curing module, specifically for the network interface name of the conflict network interface card is being revised as second After name is completed, first name is set by the network interface name of the network interface card to be solidified.
In one embodiment, above-mentioned apparatus further include:
Name determining module is modified, for obtaining the second name;Second name meets condition: not by registered network interface card It occupies, and not identical as first name.
In one embodiment, above-mentioned name modified module includes:
Temporary storage location, for grid state to be changed to temporary state;
Function calling cell is used for invocation target function, when the objective function is called, is used for the conflict network interface card Network interface name be revised as the second name, and the modified network interface name of conflict network interface card is synchronized to system kernel sky Between each relating dot;
Recovery unit is used for recovery system network state.
In one embodiment, above-mentioned name curing module 704, specifically for by the network interface of the network interface card to be solidified Name variable assignments is first name.
In one embodiment, above-mentioned apparatus further include:
First mapping relations establish module, the first mapping relations for network interface card being arranged Yu solidifying interface name;
Second mapping relations establish module, are used for according to first mapping relations and the corresponding device identification of network interface card, It obtains device identification and solidifies the second mapping relations of interface name;
Mapping table establishes module, for establishing mapping table according to second mapping relations;
Mapping table preserving module, for saving the mapping table.
Specific about the cured device of Adapter Name limits the limit that may refer to above for the cured method of Adapter Name Fixed, details are not described herein.Modules in the above-mentioned cured device of Adapter Name can fully or partially through software, hardware and its Combination is to realize.Above-mentioned each module can be embedded in the form of hardware or independently of in the processor in computer equipment, can also be with It is stored in the memory in computer equipment in a software form, in order to which processor calls the above modules of execution corresponding Operation.
In addition, in the embodiment of the cured device of the Adapter Name of above-mentioned example, the logical partitioning of each program module is only For example, can according to need in practical application, for example, for corresponding hardware configuration requirement or software realization just Benefit considers, above-mentioned function distribution is completed by different program modules, i.e., by the internal structure of the cured device of the Adapter Name It is divided into different program modules, to complete all or part of the functions described above.
In one embodiment, a kind of computer equipment is provided, internal structure chart can be as shown in Figure 8.The calculating Machine equipment includes processor, memory, network interface, display screen and the input unit connected by system bus.Wherein, it handles Device is for providing calculating and control ability;Memory includes non-volatile memory medium, built-in storage, which is situated between Matter is stored with operating system and computer program, which is operating system and computer in non-volatile memory medium The operation of program provides environment;Network interface is used to communicate with external terminal by network connection;The computer program is located It manages when device executes to realize a kind of cured method of Adapter Name;Display screen can be liquid crystal display or electric ink is shown Screen;Input unit can be the touch layer covered on display screen, be also possible to the key being arranged on computer equipment shell, track Ball or Trackpad can also be external keyboard, Trackpad or mouse etc..
In a particular embodiment, which can be interactive intelligent tablet computer.
It will be understood by those skilled in the art that structure shown in Fig. 8, only part relevant to application scheme is tied The block diagram of structure does not constitute the restriction for the computer equipment being applied thereon to application scheme, specific computer equipment It may include perhaps combining certain components or with different component layouts than more or fewer components as shown in the figure.
In one embodiment, provide a kind of computer equipment, including memory, the display screen with touch function with And processor;The memory, for storing computer program;When the computer program is executed by the processor, make The processor is obtained to perform the steps of
The unique identification of network interface card to be solidified in systems is obtained, as device identification;
The first name of the network interface card to be solidified is obtained by preset mapping table;Record has equipment in the mapping table Mark and the mapping relations for solidifying interface name, described first is named as the corresponding solidification interface of device identification described in mapping table Name;
Determine that first name is not occupied by registered network interface card;
First name is set by the network interface name of the network interface card to be solidified.
In one embodiment, when the computer program is executed by the processor, also make the processor real The step of cured method of Adapter Name of other existing above-mentioned any embodiments includes.
In one embodiment, a kind of computer readable storage medium is provided, computer program is stored thereon with, is calculated Machine program performs the steps of when being executed by processor
The unique identification of network interface card to be solidified in systems is obtained, as device identification;
The first name of the network interface card to be solidified is obtained by preset mapping table;Record has equipment in the mapping table Mark and the mapping relations for solidifying interface name, described first is named as the corresponding solidification interface of device identification described in mapping table Name;
Determine that first name is not occupied by registered network interface card;
First name is set by the network interface name of the network interface card to be solidified.
Other above-mentioned any embodiments are also realized in some other embodiment, when which is executed by processor The cured method of Adapter Name the step of including.
Those of ordinary skill in the art will appreciate that realizing all or part of the process in above-described embodiment method, being can be with Relevant hardware is instructed to complete by computer program, the computer program can be stored in a non-volatile computer In read/write memory medium, the computer program is when being executed, it may include such as the process of the embodiment of above-mentioned each method.Wherein, To any reference of memory, storage, database or other media used in each embodiment provided herein, Including non-volatile and/or volatile memory.Nonvolatile memory may include read-only memory (ROM), programming ROM (PROM), electrically programmable ROM (EPROM), electrically erasable ROM (EEPROM) or flash memory.Volatile memory may include Random access memory (RAM) or external cache.By way of illustration and not limitation, RAM is available in many forms, Such as static state RAM (SRAM), dynamic ram (DRAM), synchronous dram (SDRAM), double data rate sdram (DDRSDRAM), enhancing Type SDRAM (ESDRAM), synchronization link (Synchlink) DRAM (SLDRAM), memory bus (Rambus) direct RAM (RDRAM), direct memory bus dynamic ram (DRDRAM) and memory bus dynamic ram (RDRAM) etc..
Each technical characteristic of above embodiments can be combined arbitrarily, for simplicity of description, not to above-described embodiment In each technical characteristic it is all possible combination be all described, as long as however, the combination of these technical characteristics be not present lance Shield all should be considered as described in this specification.The description of above-mentioned each embodiment all emphasizes particularly on different fields, in some embodiment The part not being described in detail may refer to the associated description of other embodiments.
Term " includes " and " having " and their any deformations in embodiment, it is intended that cover non-exclusive packet Contain.Such as contain series of steps or the process, method, system, product or equipment of (module) unit are not limited to arrange Out the step of or unit, but optionally further comprising the step of not listing or unit, or optionally further comprising for these mistakes The intrinsic other step or units of journey, method, product or equipment.
" multiple " referred in embodiment refer to two or more."and/or", the association for describing affiliated partner are closed System indicates may exist three kinds of relationships, for example, A and/or B, can indicate: individualism A exists simultaneously A and B, individualism These three situations of B.Character "/" typicallys represent the relationship that forward-backward correlation object is a kind of "or".
" first second " referred in embodiment be only be the similar object of difference, do not represent for the specific of object Sequence, it is possible to understand that specific sequence or precedence can be interchanged in ground, " first second " in the case where permission.It should manage The object that solution " first second " is distinguished is interchangeable under appropriate circumstances so that the embodiments described herein can in addition to Here the sequence other than those of diagram or description is implemented.
Only several embodiments of the present invention are expressed for above embodiments, and but it cannot be understood as to patent of invention The limitation of range.It should be pointed out that for those of ordinary skill in the art, in the premise for not departing from the application design Under, various modifications and improvements can be made, these belong to the protection scope of the application.Therefore, the protection of the application patent Range should be determined by the appended claims.

Claims (19)

1. a kind of cured method of Adapter Name characterized by comprising
The unique identification of network interface card to be solidified in systems is obtained, as device identification;
The first name of the network interface card to be solidified is obtained by preset mapping table;Record has device identification in the mapping table The corresponding solidification interface name of device identification described in mapping table is named as with the mapping relations for solidifying interface name, described first;
Determine that first name is not occupied by registered network interface card;
First name is set by the network interface name of the network interface card to be solidified.
2. the method according to claim 1, wherein the determination first name is not by registered network interface card It occupies, before further include:
Traverse registered equipment chain for first name, judge network interface card in the equipment chain network interface name whether with institute It is identical to state the first name;It include current registered network interface card and its network interface name in the equipment chain;
If the network interface name of any network interface card is not identical as first name in the equipment chain, it is determined as first life Name is not occupied by registered network interface card.
3. the method according to claim 1, wherein determining that first name is not accounted for by registered network interface card With before further include:
Preset variable is inquired for first name;The variable includes n bit, and the value of n is equal to what system can access Network interface card total amount;Each bit is for marking whether n network interface name is currently registered in the variable;
If in the variable value of bit corresponding with the first name be the first setting value, it is determined that for it is described first name not by Registered network interface card occupies;
If the value of bit corresponding with the first name is the second setting value in the variable, it is determined that be first name by The network interface card of registration occupies.
4. the method according to claim 1, wherein further include:
Determine that first name is occupied by registered network interface card;
Obtain conflict network interface card;The conflict network interface card is registered network interface card, and its network interface name is identical as first name;
The network interface name of the conflict network interface card is revised as the second name;
After the network interface name of the conflict network interface card to be revised as to the second name and is completed, by the net of the network interface card to be solidified Network interface name is set as first name.
5. according to the method described in claim 4, it is characterized in that, the network interface name by the conflict network interface card is revised as Second name, before further include:
Obtain the second name;Second name meets condition: not being occupied by registered network interface card, and names with described first It is not identical.
6. according to the method described in claim 4, it is characterized in that, the network interface name by the conflict network interface card is revised as Second name, comprising:
Grid state is changed to temporary state;
Invocation target function, when the objective function is called, for the network interface name of the conflict network interface card to be revised as the Two name, and the conflict modified network interface name of network interface card is synchronized to each relating dot in system kernel space;
Recovery system network state.
7. according to the method described in claim 4, it is characterized in that, the network interface name by the network interface card to be solidified is set It is set to first name, comprising:
It is first name by the network interface name variable assignments of the network interface card to be solidified.
8. method according to any one of claims 1 to 7, which is characterized in that
The system is the operating system based on linux kernel;Network interface card to be solidified is usb expansion network interface card.
9. according to the method described in claim 8, it is characterized in that, described obtain the unique mark of network interface card to be solidified in systems Know, comprising:
Obtain the busid mark of network interface card to be solidified in an operating system.
10. method according to any one of claims 1 to 7, which is characterized in that further include:
Network interface card is set and solidifies the first mapping relations of interface name;
According to first mapping relations and the corresponding device identification of network interface card, obtains device identification and solidify the second of interface name Mapping relations;
Mapping table is established according to second mapping relations;
Save the mapping table.
11. a kind of cured device of Adapter Name characterized by comprising
Identifier acquisition module, for obtaining the unique identification of network interface card to be solidified in systems, as device identification;
Name obtains module, for obtaining the first name of the network interface card to be solidified by preset mapping table;The mapping Record has device identification and solidifies the mapping relations of interface name in table, and described first is named as device identification pair described in mapping table The solidification interface name answered;
First confirmation module, for determining that first name is not occupied by registered network interface card;
Curing module is named, for setting first name for the network interface name of the network interface card to be solidified.
12. device according to claim 11, which is characterized in that further include:
Equipment chain checks module, for judging network interface card in network card equipment chain for the first name traversal network card equipment chain Whether network interface name is identical as first name;It include current registered network interface card and its net in the network card equipment chain Network interface name;
Wherein, first confirmation module, if the network interface name specifically for any network interface card in network card equipment chain and described the One name is all different, and is determined as first name and is not occupied by registered network interface card.
13. device according to claim 11, which is characterized in that further include:
Variable checks module, for inquiring preset variable for first name;The variable includes n bit, and n's takes Value is equal to the network interface card total amount that system can access;Each bit is for marking whether n network interface name is currently infused in the variable Volume;
Second confirmation module, if the value for bit corresponding with the first name in the variable is the second setting value, it is determined that be First name is occupied by registered network interface card;
Wherein, first confirmation module, if the value specifically for bit corresponding with the first name in the variable sets for first Definite value, it is determined that do not occupied by registered network interface card for first name.
14. device according to claim 11, which is characterized in that further include:
Second confirmation module, for determining that first name is occupied by registered network interface card;
Conflict obtains module, for obtaining conflict network interface card;The conflict network interface card is registered network interface card, and its network interface name and institute It is identical to state the first name;
Modified module is named, for the network interface name of the conflict network interface card to be revised as the second name;
Wherein, the name curing module, specifically for the network interface name of the conflict network interface card is being revised as the second name After completion, first name is set by the network interface name of the network interface card to be solidified.
15. device according to claim 14, which is characterized in that further include:
Name determining module is modified, for obtaining the second name;Second name meets condition: not being accounted for by registered network interface card With, and it is not identical as first name.
16. device according to claim 14, which is characterized in that the name modified module includes:
Temporary storage location, for grid state to be changed to temporary state;
Function calling cell, be used for invocation target function, when the objective function be called, for by it is described conflict network interface card net Network interface name is revised as the second name, and the modified network interface name of the conflict network interface card is synchronized to system kernel space Each relating dot;
Recovery unit is used for recovery system network state.
17. 1 to 16 any device according to claim 1, which is characterized in that further include:
First mapping relations establish module, the first mapping relations for network interface card being arranged Yu solidifying interface name;
Second mapping relations establish module, for obtaining according to first mapping relations and the corresponding device identification of network interface card Device identification and the second mapping relations for solidifying interface name;
Mapping table establishes module, for establishing mapping table according to second mapping relations;
Mapping table preserving module, for saving the mapping table.
18. a kind of computer equipment, including memory and processor;
The memory is for storing computer program;It is characterized in that,
When the computer program is executed by the processor, so that the processor realizes any institute of claims 1 to 10 The step of stating method.
19. a kind of computer readable storage medium, is stored thereon with computer program, which is characterized in that when the computer journey When sequence is executed by the processor, so that the step of processor realizes claims 1 to 10 any the method.
CN201811031779.8A 2018-09-05 2018-09-05 Method and device for curing internet card name, computer equipment and storage medium Active CN109412830B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811031779.8A CN109412830B (en) 2018-09-05 2018-09-05 Method and device for curing internet card name, computer equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811031779.8A CN109412830B (en) 2018-09-05 2018-09-05 Method and device for curing internet card name, computer equipment and storage medium

Publications (2)

Publication Number Publication Date
CN109412830A true CN109412830A (en) 2019-03-01
CN109412830B CN109412830B (en) 2022-05-06

Family

ID=65463948

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811031779.8A Active CN109412830B (en) 2018-09-05 2018-09-05 Method and device for curing internet card name, computer equipment and storage medium

Country Status (1)

Country Link
CN (1) CN109412830B (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112003960A (en) * 2020-08-06 2020-11-27 杭州安恒信息技术股份有限公司 Network interface management method and device of industrial control equipment and electronic device
CN113835783A (en) * 2021-09-24 2021-12-24 青岛海信移动通信技术股份有限公司 Method and device for controlling start of Wi-Fi network card and terminal equipment
CN114265554A (en) * 2021-12-22 2022-04-01 苏州浪潮智能科技有限公司 NVME qualified name mapping method, computer equipment and storage medium
CN115277630A (en) * 2022-08-12 2022-11-01 东软集团股份有限公司 Method, device and equipment for renaming network adapter interface

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102801553A (en) * 2012-06-28 2012-11-28 南京智达康无线通信科技股份有限公司 Adaptation method for adaptive modulation and coding (AMC) daughter cards
CN102868568A (en) * 2011-07-06 2013-01-09 瑞昱半导体股份有限公司 Network unit replacing system and embedded system device
CN103186484A (en) * 2011-12-28 2013-07-03 鸿富锦精密工业(深圳)有限公司 Network card naming method and system
CN103533096A (en) * 2013-10-09 2014-01-22 杭州华三通信技术有限公司 Binding method and device of network card interface
CN105847053A (en) * 2016-03-23 2016-08-10 成都民航空管科技发展有限公司 Method and system for automatically setting arbitrary bonding for multi-network card and multi-network segment under LINUX system
CN107135280A (en) * 2016-02-29 2017-09-05 上海格尔软件股份有限公司 The method that many network card equipments based on (SuSE) Linux OS adjust network interface card order
US20180054357A1 (en) * 2016-08-17 2018-02-22 Red Hat Israel, Ltd. Discovering Changes of Network Interface Controller Names

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102868568A (en) * 2011-07-06 2013-01-09 瑞昱半导体股份有限公司 Network unit replacing system and embedded system device
CN103186484A (en) * 2011-12-28 2013-07-03 鸿富锦精密工业(深圳)有限公司 Network card naming method and system
CN102801553A (en) * 2012-06-28 2012-11-28 南京智达康无线通信科技股份有限公司 Adaptation method for adaptive modulation and coding (AMC) daughter cards
CN103533096A (en) * 2013-10-09 2014-01-22 杭州华三通信技术有限公司 Binding method and device of network card interface
CN107135280A (en) * 2016-02-29 2017-09-05 上海格尔软件股份有限公司 The method that many network card equipments based on (SuSE) Linux OS adjust network interface card order
CN105847053A (en) * 2016-03-23 2016-08-10 成都民航空管科技发展有限公司 Method and system for automatically setting arbitrary bonding for multi-network card and multi-network segment under LINUX system
US20180054357A1 (en) * 2016-08-17 2018-02-22 Red Hat Israel, Ltd. Discovering Changes of Network Interface Controller Names

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
肥而不腻: "插入外置网卡端口顺序混乱--linux系统", 《HTTPS://WWW.CNBLOGS.COM/YUZHAOXIN/P/4083760.HTML》 *

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112003960A (en) * 2020-08-06 2020-11-27 杭州安恒信息技术股份有限公司 Network interface management method and device of industrial control equipment and electronic device
CN112003960B (en) * 2020-08-06 2022-11-15 杭州安恒信息技术股份有限公司 Network interface management method and device of industrial control equipment and electronic device
CN113835783A (en) * 2021-09-24 2021-12-24 青岛海信移动通信技术股份有限公司 Method and device for controlling start of Wi-Fi network card and terminal equipment
CN114265554A (en) * 2021-12-22 2022-04-01 苏州浪潮智能科技有限公司 NVME qualified name mapping method, computer equipment and storage medium
CN114265554B (en) * 2021-12-22 2023-08-15 苏州浪潮智能科技有限公司 NVME (network video memory equipment) limit name mapping method, computer equipment and storage medium
CN115277630A (en) * 2022-08-12 2022-11-01 东软集团股份有限公司 Method, device and equipment for renaming network adapter interface
CN115277630B (en) * 2022-08-12 2024-05-17 东软集团股份有限公司 Method, device and equipment for renaming network adapter interface

Also Published As

Publication number Publication date
CN109412830B (en) 2022-05-06

Similar Documents

Publication Publication Date Title
CN109412830A (en) The cured method, apparatus of Adapter Name, computer equipment and storage medium
JP3853540B2 (en) Fiber channel-connected magnetic disk device and fiber channel-connected magnetic disk controller
CN102736945B (en) A kind of method and system of the Multi-instance running application
CN100489782C (en) Virtual machine system and accessing control method of hardware equipment
US9176713B2 (en) Method, apparatus and program storage device that provides a user mode device interface
CN106528269B (en) The virtual machine access control system and control method of lightweight
CN110399747A (en) A kind of user right correlating method, querying method and device
US20200175583A1 (en) Blockchain-based leasing
US20080005531A1 (en) Data Storage Device
CN110312994A (en) Using map instruction addresses around the memory access of load instruction
CN106716968A (en) Account management method, device and account management system
CN107544918A (en) A kind of page sharing method
CN104050424A (en) Method for achieving file access security authority management through smart card and file access method
US11385900B2 (en) Accessing queue data
CN204331878U (en) Control circuit in a kind of managing system of car parking
JP2010515128A (en) Method for managing data in non-volatile memory
CN105303114A (en) Windows based system service function calling method and apparatus
CN106598548A (en) Solution method and device for read-write conflict of storage unit
CN107391987A (en) Application guard method, device and electronic equipment based on living things feature recognition
CN110535962A (en) Method of data synchronization, device, equipment and storage medium based on authenticating device
CN103699855B (en) A kind of data processing method and device
CN106127092A (en) The smart card of a kind of COS system application stripping and method of work thereof
CN105930717A (en) Picture unlocking method and mobile terminal
CN110417579A (en) A kind of method, equipment and readable medium managing 10,000,000,000 networks using Gigabit Ethernet
CN108959403A (en) A kind of distributed transaction processing 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
GR01 Patent grant
GR01 Patent grant