CN106657433A - Method and device for naming physical network card in multi-network card environment - Google Patents
Method and device for naming physical network card in multi-network card environment Download PDFInfo
- Publication number
- CN106657433A CN106657433A CN201611024447.8A CN201611024447A CN106657433A CN 106657433 A CN106657433 A CN 106657433A CN 201611024447 A CN201611024447 A CN 201611024447A CN 106657433 A CN106657433 A CN 106657433A
- Authority
- CN
- China
- Prior art keywords
- network interface
- interface card
- original
- rule file
- mac 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
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L61/00—Network arrangements, protocols or services for addressing or naming
- H04L61/30—Managing network names, e.g. use of aliases or nicknames
- H04L61/3015—Name registration, generation or assignment
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L41/00—Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
- H04L41/08—Configuration management of networks or network elements
- H04L41/0803—Configuration setting
- H04L41/0813—Configuration setting characterised by the conditions triggering a change of settings
- H04L41/0816—Configuration setting characterised by the conditions triggering a change of settings the condition being an adaptation, e.g. in response to network events
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L2101/00—Indexing scheme associated with group H04L61/00
- H04L2101/60—Types of network addresses
- H04L2101/618—Details of network addresses
- H04L2101/622—Layer-2 addresses, e.g. medium access control [MAC] addresses
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Data Exchanges In Wide-Area Networks (AREA)
- Small-Scale Networks (AREA)
Abstract
The invention discloses a method and a device for naming a physical network card in a multi-network card environment. The method comprises the steps of: after an operating system is installed, generating an original rule file including a corresponding relation between MAC (Media Access Control) addresses and network card names, and placing an adaptive algorithm at a preset position; after the operating system is restarted, inquiring the original rule file, and returning to the network card name corresponding to the MAC address of the current network card; and for the network card having the MAC address not in the original rule file, calling the adaptive algorithm to obtain and return a network card name. The method and the device for naming the physical network card in the multi-network card environment can adaptively name network cards, so that the network card names are kept consistent after continual restart and facilitate user's understanding.
Description
Technical field
The invention belongs to technical field of the computer network, the name of physical network card under more particularly to a kind of many network interface card environment
Method and apparatus.
Background technology
With developing rapidly for computer technology, the computer system of high-performance high stability increasingly becomes economic society
The needs of development.This is just to need computer system to have a plurality of physical communication link, it is ensured that communication stability.At present for a plurality of
The situation of physical network card, has traditional naming method to be that MAC Address is mapped with network interface card name, can obtain after system reboot
With Adapter Name consistent before, but this kind of method can not successfully manage situation that is newly-increased and replacing network interface card;Also existed based on network interface card
Method of the position on mainboard to name Adapter Name, but the Adapter Name of this kind of method is hard to understand, it has not been convenient to user's understanding, and not
All network interface cards and computer motherboard can be widely used in.
The content of the invention
To solve the above problems, the invention provides under a kind of many network interface card environment physical network card naming method and device,
Adaptive network interface card can be named, Adapter Name is consistent after constantly restarting, and facilitate user to understand.
The naming method of physical network card under a kind of many network interface card environment that the present invention is provided, including:
After operating system installation, the original rule file comprising MAC Address with the corresponding relation of Adapter Name is generated,
And adaptive algorithm is placed on into predeterminated position;
After restarting the operating system, the original rule file is inquired about, returned relative with the MAC Address of current network interface card
The Adapter Name answered;
For MAC Address is not present in the network interface card in the original rule file, the adaptive algorithm is called to obtain simultaneously
Return Adapter Name.
Preferably, under above-mentioned many network interface card environment in the naming method of physical network card, the self adaptation is called to calculate described
Method is obtained and returned after Adapter Name, is also included:
The script for updating rule file is placed in the self-starting of operating system rule or self-starting file;
Restart after completing, call the script of the renewal rule file, the original rule file is updated.
Preferably, it is described for MAC Address is not present under above-mentioned many network interface card environment in the naming method of physical network card
Network interface card in the original rule file, calling the adaptive algorithm to obtain and returning Adapter Name includes:
The Adapter Name in the original rule file is traveled through using the adaptive algorithm;
The MAC Address of the default original network interface card inquired about in the original rule file whether there is in Current hardware environment
In, if it does not exist, then judging that network interface card that the MAC Address is not present in the original rule file, will as network interface card is replaced
The Adapter Name for presetting original network interface card gives the network interface card that the MAC Address is not present in the original rule file.
Preferably, it is described for MAC Address is not present under above-mentioned many network interface card environment in the naming method of physical network card
Network interface card in the original rule file, calling the adaptive algorithm to obtain and returning Adapter Name also includes:
Find that the MAC Address of all original network interface card in the original rule file is present in working as after traversal terminates
In front hardware environment, then network interface card that the MAC Address is not present in the original rule file is judged as newly-increased network interface card, by institute
State the network interface card that MAC Address is not present in the original rule file and be named as eth-N, wherein N is in Current hardware environment
The total number of network interface card.
Preferably, it is described to call the renewal rule text under above-mentioned many network interface card environment in the naming method of physical network card
The script of part, updating rule file includes:
Old regular and new rule is contrasted, if described old regular identical with the new rule, without modification;
If the newly-increased network interface card of the new rule is obtained, directly add the new rule;
If the new rule is replaced network interface card and obtained, add the new rule, delete corresponding old rule.
The name device of physical network card under a kind of many network interface card environment that the present invention is provided, including:
Signal generating unit, for after operating system installation, generating comprising MAC Address and the corresponding relation of Adapter Name
Original rule file, and adaptive algorithm is placed on into predeterminated position;
First returning unit, for restarting the operating system after, inquire about the original rule file, return with it is current
The corresponding Adapter Name of the MAC Address of network interface card;
Second returning unit, for the network interface card being not present in for MAC Address in the original rule file, calls described
Adaptive algorithm obtains and returns Adapter Name.
Preferably, also include in the name device of physical network card under above-mentioned many network interface card environment:
Placement unit, for the script for updating rule file to be placed on the self-starting rule of the operating system or is opened certainly
In dynamic file;
Updating block, for after restarting and completing, calling the script of the renewal rule file, to the original rule text
Part is updated.
Preferably, under above-mentioned many network interface card environment in the name device of physical network card, second returning unit is specifically used
In:
The Adapter Name in the original rule file is traveled through using the adaptive algorithm;
The MAC Address of the default original network interface card inquired about in the original rule file whether there is in Current hardware environment
In, if it does not exist, then judging that network interface card that the MAC Address is not present in the original rule file, will as network interface card is replaced
The Adapter Name for presetting original network interface card gives the network interface card that the MAC Address is not present in the original rule file.
Preferably, under above-mentioned many network interface card environment in the name device of physical network card, second returning unit is specifically used
In:
Find that the MAC Address of all original network interface card in the original rule file is present in working as after traversal terminates
In front hardware environment, then network interface card that the MAC Address is not present in the original rule file is judged as newly-increased network interface card, by institute
State the network interface card that MAC Address is not present in the original rule file and be named as eth-N, wherein N is in Current hardware environment
The total number of network interface card.
Preferably, under above-mentioned many network interface card environment in the name device of physical network card, the updating block includes:
Contrast part, for contrasting old regular and new rule, if described old regular identical with the new rule, does not do
Change;
First updates part, if obtained for the newly-increased network interface card of the new rule, directly adds the new rule;
Second updates part, if replace network interface card for the new rule obtained, adds the new rule, deletes
Corresponding old rule.
By the naming method and dress of physical network card under above-mentioned many network interface card environment that foregoing description, the present invention are provided
Put, because the method includes:After operating system installation, the original comprising MAC Address with the corresponding relation of Adapter Name is generated
Beginning rule file, and adaptive algorithm is placed on into predeterminated position;After restarting the operating system, the original rule is inquired about
File, returns the Adapter Name corresponding with the MAC Address of current network interface card;For MAC Address is not present in the original rule text
Network interface card in part, calls the adaptive algorithm to obtain and return Adapter Name, and network interface card is named therefore, it is possible to adaptive,
Adapter Name is consistent after constantly restarting, and facilitate user to understand.
Description of the drawings
In order to be illustrated more clearly that the embodiment of the present invention or technical scheme of the prior art, below will be to embodiment or existing
The accompanying drawing to be used needed for having technology description is briefly described, it should be apparent that, drawings in the following description are only this
Inventive embodiment, for those of ordinary skill in the art, on the premise of not paying creative work, can be with basis
The accompanying drawing of offer obtains other accompanying drawings.
Fig. 1 for the naming method of physical network card under the first many network interface card environment that the embodiment of the present application is provided schematic diagram;
Fig. 2 for the name device of physical network card under the first many network interface card environment that the embodiment of the present application is provided schematic diagram.
Specific embodiment
The core concept of the present invention is the naming method and device for providing physical network card under a kind of many network interface card environment, can
It is adaptive that network interface card is named, Adapter Name is consistent after constantly restarting, and facilitate user to understand.
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is carried out clear, complete
Site preparation is described, it is clear that described embodiment is only a part of embodiment of the invention, rather than the embodiment of whole.It is based on
Embodiment in the present invention, it is every other that those of ordinary skill in the art are obtained under the premise of creative work is not made
Embodiment, belongs to the scope of protection of the invention.
The naming method of physical network card is as shown in figure 1, Fig. 1 is under the first many network interface card environment that the embodiment of the present application is provided
The schematic diagram of the naming method of physical network card under the first many network interface card environment that the embodiment of the present application is provided.The method includes as follows
Step:
S1:After operating system installation, the original rule text with the corresponding relation of Adapter Name comprising MAC Address is generated
Part, and adaptive algorithm is placed on into predeterminated position;
Specifically, it is possible to use the Udev modules of linux system and rule file, a kind of reliable network interface card name rule are set up
Then, Adapter Name is obtained when replacing, increasing network interface card newly according to adaptive algorithm, is pacified by operating system after operating system installation
Dress programming automatic generation udev rule files, and adaptive algorithm is placed on into correct position, call for udev rule files.
S2:After restarting the operating system, the original rule file is inquired about, return the MAC Address with current network interface card
Corresponding Adapter Name;
Specifically, restarting back operation system can use the information such as udev rule files matching MAC Address of Network Card, carry out net
Card name.
S3:For MAC Address is not present in the network interface card in the original rule file, the adaptive algorithm is called to obtain
And return Adapter Name.
That is, in the case of newly-increased network interface card or replacement network interface card, calling adaptive algorithm to obtain Adapter Name.
Above-mentioned network interface card naming method, convenient user understands, and can preserve Adapter Name, Adapter Name is constantly being weighed
Still it is consistent after opening, can be with the adaptive system for carrying out network interface card name, keeping network interface card name in newly-increased and replacement network interface card
One.
By the name side of physical network card under the first many network interface card environment that foregoing description, the embodiment of the present application are provided
Method, due to including:After operating system installation, the original rule comprising MAC Address with the corresponding relation of Adapter Name is generated
File, and adaptive algorithm is placed on into predeterminated position;After restarting the operating system, the original rule file is inquired about,
Return the Adapter Name corresponding with the MAC Address of current network interface card;For MAC Address is not present in the original rule file
Network interface card, calls the adaptive algorithm to obtain and return Adapter Name, and network interface card is named therefore, it is possible to adaptive, makes network interface card
Name is consistent after constantly restarting, and facilitates user to understand.
The embodiment of the present application provide the environment of network interface card more than second under physical network card naming method, be it is above-mentioned the first
Under many network interface card environment on the basis of the naming method of physical network card, also including following technical characteristic:
It is described call the adaptive algorithm to obtain and return Adapter Name after, also include:
The script for updating rule file is placed in the self-starting of operating system rule or self-starting file;
Restart after completing, call the script of the renewal rule file, the original rule file is updated.
Specifically, network interface card title is solidified using the algorithm for updating rule file, Adapter Name is kept not when next time starts
Become.
The naming method of physical network card, is at above-mentioned second under the third many network interface card environment that the embodiment of the present application is provided
Under many network interface card environment on the basis of the naming method of physical network card, also including following technical characteristic:It is described for MAC Address is not deposited
It is the network interface card in the original rule file, calling the adaptive algorithm to obtain and returning Adapter Name includes:
The Adapter Name in the original rule file is traveled through using the adaptive algorithm;
The MAC Address of the default original network interface card inquired about in the original rule file whether there is in Current hardware environment
In, if it does not exist, then judging that network interface card that the MAC Address is not present in the original rule file, will as network interface card is replaced
The Adapter Name for presetting original network interface card gives the network interface card that the MAC Address is not present in the original rule file.
It should be noted that this adaptive algorithm can interpolate that out the situation that network interface card is replaced, and net will be replaced
The Adapter Name of card directly names the new network interface card after replacing, and this makes it possible to meet custom and phase that user is named for network interface card
Hope, also will not cause the user confusion.
The embodiment of the present application provide more than the 4th kind under network interface card environment physical network card naming method, be it is above-mentioned the third
Under many network interface card environment on the basis of the naming method of physical network card, also including following technical characteristic:It is described for MAC Address is not deposited
It is the network interface card in the original rule file, calling the adaptive algorithm to obtain and returning Adapter Name also includes:
Find that the MAC Address of all original network interface card in the original rule file is present in working as after traversal terminates
In front hardware environment, then network interface card that the MAC Address is not present in the original rule file is judged as newly-increased network interface card, by institute
State the network interface card that MAC Address is not present in the original rule file and be named as eth-N, wherein N is in Current hardware environment
The total number of network interface card.
It should be noted that in this case, all network interface cards originally are appointed so in all presence and hardware environment, are not subtracted
It is few, just illustrate that the network interface card that the MAC Address is not present in the original rule file is exactly newly-increased network interface card, just it is named as
Eth-N, had both ensured to repeat with the Adapter Name of other network interface cards, also more met the name custom of user, and naming method is simple,
Puzzlement would not be brought to user.
The embodiment of the present application provide more than the 5th kind under network interface card environment physical network card naming method, be at above-mentioned 4th kind
Under many network interface card environment on the basis of the naming method of physical network card, also including following technical characteristic:It is described to call described renewal to advise
The then script of file, updating rule file includes:
Old regular and new rule is contrasted, if described old regular identical with the new rule, without modification, here it is not having
Have and the situation that network interface card is replaced or increased newly occurs, without the need for making change;
If the newly-increased network interface card of the new rule is obtained, directly add the new rule, that is to say, that for newly-increased
Network interface card, there is new Adapter Name, it is necessary to be added this new corresponding relation, waits next time and restarts and just can after system
Identify this network interface card;
If the new rule is replaced network interface card and obtained, add the new rule, corresponding old rule is deleted, at this
In the case of kind, the corresponding relation of the MAC Address of network interface card before and Adapter Name is deleted, and by the MAC of the network interface card after replacing it
The corresponding relation of address and Adapter Name is added, and this makes it possible to ensure to restart next time identify this network interface card after system.
By taking CentOS7 systems as an example, but CentOS7 systems are not limited to, can also be that other (SuSE) Linux OS are implemented
Mode is as follows:
First, the installation file of CentOS7 systems to be changed, adds adaptive algorithm file, adaptive algorithm file is put into/
Under usr/bin/ catalogues;
Then, entry is added in rule file such as/etc/udev/rules.d/70-persistent-net.rules,
The corresponding relation of MAC Address and Adapter Name is contained in each entry, the operation of acquiescence is increased in last entry, protected
When the no MAC of card and Adapter Name corresponding relation, adaptive algorithm is called to obtain suitable Adapter Name
Finally, by update rule file algorithm be placed on/usr/bin/ catalogues under, it is ensured that system start success after is adjusted
With renewal rule file.
The name device of physical network card is as shown in Fig. 2 Fig. 2 is under the first many network interface card environment that the embodiment of the present application is provided
The schematic diagram of the name device of physical network card under the first many network interface card environment that the embodiment of the present application is provided, the device includes:
Signal generating unit 201, for after operating system installation, generating comprising MAC Address pass corresponding with Adapter Name
The original rule file of system, and adaptive algorithm is placed on into predeterminated position, specifically, it is possible to use the Udev of linux system
Module and rule file, set up a kind of reliable network interface card naming rule, are obtained when replacing, increasing network interface card newly according to adaptive algorithm
Adapter Name, udev rule files are automatically generated after operating system installation by operating system installation procedure, and by self adaptation
Algorithm is placed on correct position, calls for udev rule files;
First returning unit 202, for restarting the operating system after, inquire about the original rule file, return with
The corresponding Adapter Name of the MAC Address of current network interface card, specifically, restarting back operation system can be matched using udev rule files
The information such as MAC Address of Network Card, carry out network interface card name;
Second returning unit 203, for the network interface card being not present in for MAC Address in the original rule file, calls
The adaptive algorithm obtains and returns Adapter Name, that is to say, that in the case of newly-increased network interface card or replacement network interface card, call adaptive
Algorithm is answered to obtain Adapter Name.
The embodiment of the present application provide the environment of network interface card more than second under physical network card name device, be it is above-mentioned the first
Under many network interface card environment on the basis of the name device of physical network card, also including following technical characteristic:
Placement unit, for the script for updating rule file to be placed on the self-starting rule of the operating system or is opened certainly
In dynamic file;
Updating block, for after restarting and completing, calling the script of the renewal rule file, to the original rule text
Part is updated.
Specifically, network interface card title is solidified using the algorithm for updating rule file, Adapter Name is kept not when next time starts
Become.
The name device of physical network card, is at above-mentioned second under the third many network interface card environment that the embodiment of the present application is provided
Under many network interface card environment on the basis of the name device of physical network card, also including following technical characteristic:
Second returning unit specifically for:
The Adapter Name in the original rule file is traveled through using the adaptive algorithm;
The MAC Address of the default original network interface card inquired about in the original rule file whether there is in Current hardware environment
In, if it does not exist, then judging that network interface card that the MAC Address is not present in the original rule file, will as network interface card is replaced
The Adapter Name for presetting original network interface card gives the network interface card that the MAC Address is not present in the original rule file.
It should be noted that this adaptive algorithm can interpolate that out the situation that network interface card is replaced, and net will be replaced
The Adapter Name of card directly names the new network interface card after replacing, and this makes it possible to meet custom and phase that user is named for network interface card
Hope, also will not cause the user confusion.
The embodiment of the present application provide more than the 4th kind under network interface card environment physical network card name device, be it is above-mentioned the third
Under many network interface card environment on the basis of the name device of physical network card, also including following technical characteristic:
Second returning unit specifically for:
Find that the MAC Address of all original network interface card in the original rule file is present in working as after traversal terminates
In front hardware environment, then network interface card that the MAC Address is not present in the original rule file is judged as newly-increased network interface card, by institute
State the network interface card that MAC Address is not present in the original rule file and be named as eth-N, wherein N is in Current hardware environment
The total number of network interface card.
It should be noted that in this case, all network interface cards originally are appointed so in all presence and hardware environment, are not subtracted
It is few, just illustrate that the network interface card that the MAC Address is not present in the original rule file is exactly newly-increased network interface card, just it is named as
Eth-N, had both ensured to repeat with the Adapter Name of other network interface cards, also more met the name custom of user, and naming method is simple,
Puzzlement would not be brought to user.
The embodiment of the present application provide more than the 5th kind under network interface card environment physical network card name device, be at above-mentioned 4th kind
Under many network interface card environment on the basis of the name device of physical network card, also including following technical characteristic:
The updating block includes:
Contrast part, for contrasting old regular and new rule, if described old regular identical with the new rule, does not do
Change, here it is network interface card does not occur replace or newly-increased situation, without the need for making a change;
First updates part, if obtained for the newly-increased network interface card of the new rule, directly adds the new rule,
That is, for newly-increased network interface card, there is new Adapter Name, it is necessary to be added this new corresponding relation, wait next time
Restart and just can recognize that after system this network interface card;
Second updates part, if replace network interface card for the new rule obtained, adds the new rule, deletes
Corresponding old rule, in this case, the corresponding relation of the MAC Address of network interface card before and Adapter Name is deleted, and will be replaced
The MAC Address of the network interface card after alternatively and the corresponding relation of Adapter Name are added, this makes it possible to ensure to restart next time system it
After identify this network interface card.
The foregoing description of the disclosed embodiments, enables professional and technical personnel in the field to realize or using the present invention.
Various modifications to these embodiments will be apparent for those skilled in the art, as defined herein
General Principle can be realized in other embodiments without departing from the spirit or scope of the present invention.Therefore, the present invention
The embodiments shown herein is not intended to be limited to, and is to fit to and principles disclosed herein and features of novelty phase one
The most wide scope for causing.
Claims (10)
1. under a kind of many network interface card environment physical network card naming method, it is characterised in that include:
After operating system installation, the original rule file comprising MAC Address with the corresponding relation of Adapter Name is generated, and will
Adaptive algorithm is placed on predeterminated position;
After restarting the operating system, the original rule file is inquired about, returned corresponding with the MAC Address of current network interface card
Adapter Name;
For MAC Address is not present in the network interface card in the original rule file, the adaptive algorithm is called to obtain and return
Adapter Name.
2. under many network interface card environment according to claim 1 physical network card naming method, it is characterised in that call described
The adaptive algorithm is obtained and returned after Adapter Name, is also included:
The script for updating rule file is placed in the self-starting of operating system rule or self-starting file;
Restart after completing, call the script of the renewal rule file, the original rule file is updated.
3. under many network interface card environment according to claim 2 physical network card naming method, it is characterised in that it is described for
MAC Address is not present in the network interface card in the original rule file, calls the adaptive algorithm to obtain and returns Adapter Name bag
Include:
The Adapter Name in the original rule file is traveled through using the adaptive algorithm;
The MAC Address of the default original network interface card inquired about in the original rule file whether there is in Current hardware environment, such as
Fruit is not present, then judge that network interface card that the MAC Address is not present in the original rule file, will be described pre- as network interface card is replaced
If the Adapter Name of original network interface card gives the network interface card that the MAC Address is not present in the original rule file.
4. under many network interface card environment according to claim 3 physical network card naming method, it is characterised in that it is described for
MAC Address is not present in the network interface card in the original rule file, calls the adaptive algorithm to obtain and return Adapter Name also
Including:
The MAC Address that all original network interface card in the original rule file is found after traversal terminates is present in currently firmly
In part environment, then judge that network interface card that the MAC Address is not present in the original rule file, will be described as newly-increased network interface card
The network interface card that MAC Address is not present in the original rule file is named as eth-N, and wherein N is the net in Current hardware environment
The total number of card.
5. under many network interface card environment according to claim 4 physical network card naming method, it is characterised in that it is described to call institute
The script for updating rule file is stated, updating rule file includes:
Old regular and new rule is contrasted, if described old regular identical with the new rule, without modification;
If the newly-increased network interface card of the new rule is obtained, directly add the new rule;
If the new rule is replaced network interface card and obtained, add the new rule, delete corresponding old rule.
6. under a kind of many network interface card environment physical network card name device, it is characterised in that include:
Signal generating unit is original with the corresponding relation of Adapter Name comprising MAC Address for after operating system installation, generating
Rule file, and adaptive algorithm is placed on into predeterminated position;
First returning unit, for restarting the operating system after, inquire about the original rule file, return and current network interface card
The corresponding Adapter Name of MAC Address;
Second returning unit, for the network interface card being not present in for MAC Address in the original rule file, calls described adaptive
Answer algorithm to obtain and return Adapter Name.
7. under many network interface card environment according to claim 6 physical network card name device, it is characterised in that also include:
Placement unit, for the script for updating rule file to be placed on the self-starting rule or self-starting text of the operating system
In part folder;
Updating block, for after restarting and completing, calling the script of the renewal rule file, enters to the original rule file
Row updates.
8. under many network interface card environment according to claim 7 physical network card name device, it is characterised in that described second returns
Receipt unit specifically for:
The Adapter Name in the original rule file is traveled through using the adaptive algorithm;
The MAC Address of the default original network interface card inquired about in the original rule file whether there is in Current hardware environment, such as
Fruit is not present, then judge that network interface card that the MAC Address is not present in the original rule file, will be described pre- as network interface card is replaced
If the Adapter Name of original network interface card gives the network interface card that the MAC Address is not present in the original rule file.
9. under many network interface card environment according to claim 8 physical network card name device, it is characterised in that described second returns
Receipt unit specifically for:
The MAC Address that all original network interface card in the original rule file is found after traversal terminates is present in currently firmly
In part environment, then judge that network interface card that the MAC Address is not present in the original rule file, will be described as newly-increased network interface card
The network interface card that MAC Address is not present in the original rule file is named as eth-N, and wherein N is the net in Current hardware environment
The total number of card.
10. under many network interface card environment according to claim 9 physical network card name device, it is characterised in that the renewal
Unit includes:
Contrast part, for contrasting old regular and new rule, if described old regular identical with the new rule, do not do and changes
Become;
First updates part, if obtained for the newly-increased network interface card of the new rule, directly adds the new rule;
Second updates part, if replace network interface card for the new rule obtained, adds the new rule, deletes correspondence
Old rule.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201611024447.8A CN106657433B (en) | 2016-11-15 | 2016-11-15 | Naming method and device for physical network card in multi-network snap ring environment |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201611024447.8A CN106657433B (en) | 2016-11-15 | 2016-11-15 | Naming method and device for physical network card in multi-network snap ring environment |
Publications (2)
Publication Number | Publication Date |
---|---|
CN106657433A true CN106657433A (en) | 2017-05-10 |
CN106657433B CN106657433B (en) | 2020-03-10 |
Family
ID=58808401
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201611024447.8A Active CN106657433B (en) | 2016-11-15 | 2016-11-15 | Naming method and device for physical network card in multi-network snap ring environment |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN106657433B (en) |
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107508708A (en) * | 2017-08-30 | 2017-12-22 | 郑州云海信息技术有限公司 | Adapter Name method for customizing and system under a kind of linux system |
CN109117197A (en) * | 2018-08-28 | 2019-01-01 | 郑州云海信息技术有限公司 | A method of it is chaotic to solve the name of cluster network interface card |
CN109960678A (en) * | 2019-03-31 | 2019-07-02 | 联想(北京)有限公司 | A kind of name processing method and computer processor unit |
CN110262761A (en) * | 2019-06-20 | 2019-09-20 | 宜春宜联科技有限公司 | The processing method and system of printer group change printer |
CN112994907A (en) * | 2019-12-02 | 2021-06-18 | 中兴通讯股份有限公司 | Network configuration method and device of virtual machine, storage medium and equipment |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1556625A (en) * | 2004-01-05 | 2004-12-22 | 联想(北京)有限公司 | Data transmission method of network equipment based on multinetwork card and device |
CN102932174A (en) * | 2012-10-25 | 2013-02-13 | 华为技术有限公司 | Method, device and physical host for managing physical network card |
CN103327136A (en) * | 2013-07-01 | 2013-09-25 | 浪潮电子信息产业股份有限公司 | Method for managing ip address of server management network card under dhcp network |
CN103533096A (en) * | 2013-10-09 | 2014-01-22 | 杭州华三通信技术有限公司 | Binding method and device of network card interface |
CN105426748A (en) * | 2014-09-18 | 2016-03-23 | 腾讯科技(深圳)有限公司 | Rule file updating method and device |
-
2016
- 2016-11-15 CN CN201611024447.8A patent/CN106657433B/en active Active
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1556625A (en) * | 2004-01-05 | 2004-12-22 | 联想(北京)有限公司 | Data transmission method of network equipment based on multinetwork card and device |
CN102932174A (en) * | 2012-10-25 | 2013-02-13 | 华为技术有限公司 | Method, device and physical host for managing physical network card |
CN103327136A (en) * | 2013-07-01 | 2013-09-25 | 浪潮电子信息产业股份有限公司 | Method for managing ip address of server management network card under dhcp network |
CN103533096A (en) * | 2013-10-09 | 2014-01-22 | 杭州华三通信技术有限公司 | Binding method and device of network card interface |
CN105426748A (en) * | 2014-09-18 | 2016-03-23 | 腾讯科技(深圳)有限公司 | Rule file updating method and device |
Cited By (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107508708A (en) * | 2017-08-30 | 2017-12-22 | 郑州云海信息技术有限公司 | Adapter Name method for customizing and system under a kind of linux system |
CN109117197A (en) * | 2018-08-28 | 2019-01-01 | 郑州云海信息技术有限公司 | A method of it is chaotic to solve the name of cluster network interface card |
CN109960678A (en) * | 2019-03-31 | 2019-07-02 | 联想(北京)有限公司 | A kind of name processing method and computer processor unit |
CN109960678B (en) * | 2019-03-31 | 2021-08-17 | 联想(北京)有限公司 | Naming processing method and computer processing device |
CN110262761A (en) * | 2019-06-20 | 2019-09-20 | 宜春宜联科技有限公司 | The processing method and system of printer group change printer |
CN112994907A (en) * | 2019-12-02 | 2021-06-18 | 中兴通讯股份有限公司 | Network configuration method and device of virtual machine, storage medium and equipment |
Also Published As
Publication number | Publication date |
---|---|
CN106657433B (en) | 2020-03-10 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN106657433A (en) | Method and device for naming physical network card in multi-network card environment | |
CN106325933B (en) | Batch data synchronous method and device | |
CN104866391B (en) | A kind of end message backup method and device based on increment information system | |
US20170206079A1 (en) | Method and Device for Upgrading Software | |
KR19980076632A (en) | Version control method of portable information terminal | |
CN102833350A (en) | Processing method and processing device of WebApp updating | |
CN109660372B (en) | SDN service configuration method and device | |
CN106325879A (en) | Method and device for installing driver and electronic equipment | |
CN104932955A (en) | Method for backing up data during factory setting restoring of mobile terminal, and mobile terminal | |
CN104168309A (en) | Data backup and operation method based on cloud service | |
CN105681420A (en) | Method for realizing backup of switch operating system based on Docker | |
CN102238223B (en) | Networked personal data management method for mobile device | |
CN108268609A (en) | A kind of foundation of file path, access method and device | |
CN104216802B (en) | Memory database recovery method and device | |
CN104615662A (en) | Data processing method and device and terminal device | |
CN105593839A (en) | Distributed disaster recovery file sync server system | |
CN107332966A (en) | A kind of backup method of address list information | |
CN110865981A (en) | File access method for mobile terminal and mobile terminal thereof | |
CN111158957A (en) | Virtual machine file recovery method, system, device and storage medium | |
CN105760251A (en) | Data backup method and device | |
CN103067599A (en) | Mobile terminal wallpaper renewal method and system | |
CN111984293A (en) | Information processing method, device and storage medium | |
CN103902409B (en) | A kind of log backup method and device | |
CN105610936A (en) | Data sharing method and apparatus for intelligent box | |
CN104113621B (en) | A kind of method and terminal for realizing that memory is synchronous with Subscriber Identity Module data |
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 |