CN107135280A - The method that many network card equipments based on (SuSE) Linux OS adjust network interface card order - Google Patents
The method that many network card equipments based on (SuSE) Linux OS adjust network interface card order Download PDFInfo
- Publication number
- CN107135280A CN107135280A CN201610112640.0A CN201610112640A CN107135280A CN 107135280 A CN107135280 A CN 107135280A CN 201610112640 A CN201610112640 A CN 201610112640A CN 107135280 A CN107135280 A CN 107135280A
- Authority
- CN
- China
- Prior art keywords
- network card
- logical name
- physical network
- suse
- linux
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
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/45—Network directories; Name-to-address mapping
- H04L61/457—Network directories; Name-to-address mapping containing identifiers of data entities on a computer, e.g. file names
-
- 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
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Computer Hardware Design (AREA)
- Data Exchanges In Wide-Area Networks (AREA)
Abstract
The invention discloses the method that many network card equipments based on (SuSE) Linux OS adjust network interface card order, comprise the following steps:Step S1, obtains the mapping relations of original physical network card and its logical name;Step S2, is redefined so that physical network card and the mapping relations of its being consistent property of logical name;Step S3, according to the mapping relations redefined in step S2, adjusts the logical name of physical network card so that physical network card and its being consistent property of logical name.The present invention is independent of the equipment manager UDEV in (SuSE) Linux OS, identified by the PCI for obtaining physical network card, the corresponding logical name of physical network card can be found from physical layer, by reconfiguring the logical name of physical network card and the mapping relations of PCI marks, realize and cause physical network card and its being consistent property of logical name, so as to reach the purpose of convenient management.
Description
Technical field
The present invention relates to field of computer technology, more particularly to a kind of method that many network card equipments based on (SuSE) Linux OS adjust network interface card order.
Background technology
With the rapid development of information technology, as the infrastructure device of informatization, the hardware specification of server is continuous lifting, and the demand of its each subassembly resource is consequently increased.
Network adapter (network interface card), is also the base interface of network environment as one of basic subassembly of server, its specification more and more higher, the network interface quantity of an equipment is also more and more, double network interfaces, four network interfaces are even more more.In the equipment of many network interface cards, different network interface cards has different purposes, but the network interface order of the physical network card phenomenon inconsistent with the order of logical name occurs in the equipment of many network interface cards in the course of the work, often, is so made troubles to equipment control.
Therefore, the Chinese patent application of Application No. 201410196049.9 discloses a kind of network interface card order method of adjustment based on (SuSE) Linux OS, it implements process and is:
First, the MAC Address of each network interface is obtained, the MAC Address is the unique designation of each network interface;
Secondly, network card equipment configuration file is changed, MAC Address is added, realizes the binding of network interface card title and MAC Address;
Finally, the corresponding relation of network driver block is adjusted, drive module is mapped with network card chip model, it is ensured that system can correctly recognize network interface card when starting.
The network interface card order method of adjustment recognizes that the process of network interface card is started with from (SuSE) Linux OS, modification network card equipment configuration file and the corresponding relation for changing trawl performance module, the one-to-one binding of network interface card title and corresponding network interface is realized, the puzzlement that the network interface card " drift " in application process is brought is solved the problems, such as.But, the main deficiency of the above method is to rely on actual environment, is unfavorable for large scale deployment, and adjustment inconvenience is unfavorable for management.
The content of the invention
The technical problems to be solved by the invention:The order of network interface order and logical name for physical network card of the prior art it is inconsistent and the problem of cause to manage inconvenience, and the method that many network card equipments based on (SuSE) Linux OS for providing a kind of network interface order for being conveniently adjusted physical network card adjust network interface card order.
Technical problem solved by the invention can be realized using following technical scheme:
The method that many network card equipments based on (SuSE) Linux OS adjust network interface card order, comprises the following steps:
Step S1, obtains the mapping relations of original physical network card and its logical name;
Step S2, is redefined so that physical network card and the mapping relations of its being consistent property of logical name;
Step S3, according to the mapping relations redefined in step S2, adjusts the logical name of physical network card so that physical network card and its being consistent property of logical name.
In a preferred embodiment of the invention, the step S1 includes following sub-step:
SYSFS file system in step S11, carry (SuSE) Linux OS;
Step S12, the logical name of physical network card is obtained by SYSFS file system, while being identified according to the PCI of Symbolic Links acquisition of information physical network card.
In a preferred embodiment of the invention, in step s 2, redefine so that physical network card and the mapping relations of its being consistent property of logical name, refer to the mapping relations of PCI marks and the being consistent property of logical name of physical network card for being repositioned such that physical network card.
In a preferred embodiment of the invention, the step S3 is included below from sub-step:
Step S31, the form for the logical name prefixing being first changed to the logical name of original physical network card using the ip link orders in (SuSE) Linux OS in the mapping relations that are redefined in step S2, prevents from conflicting during renaming;
Step S32, using the ip link orders in (SuSE) Linux OS by the logical name in step S31
The form of prefixing is claimed to be revised as the actual logical name of physical network card.
As a result of technical scheme as above, the beneficial effects of the present invention are:The present invention is independent of the equipment manager UDEV in (SuSE) Linux OS, identified by the PCI for obtaining physical network card, the corresponding logical name of physical network card can be found from physical layer, by reconfiguring the logical name of physical network card and the mapping relations of PCI marks, realize and cause physical network card and its being consistent property of logical name, so as to reach the purpose of convenient management.
Embodiment
In order that the technical means, the inventive features, the objects and the advantages of the present invention are easy to understand, the present invention is further elucidated below.
The method that many network card equipments based on (SuSE) Linux OS adjust network interface card order, comprises the following steps:
Step S1, obtain the mapping relations of original physical network card and its logical name, specifically, SYSFS file system in first carry (SuSE) Linux OS, the logical name of physical network card is obtained by SYSFS file system, simultaneously according to the PCI of Symbolic Links acquisition of information physical network card identify, wherein, PCI mark can as physical network card unique mark;
Step S2, is repositioned such that the mapping relations of the PCI marks and the being consistent property of logical name of physical network card of physical network card;
Step S3, according to the mapping relations redefined in step S2, adjusts the logical name of physical network card so that physical network card and its being consistent property of logical name;Specifically, the form for the logical name prefixing being first changed to the logical name of original physical network card using the ip link orders in (SuSE) Linux OS in the mapping relations that are redefined in step S2, to prevent from conflicting during renaming;The form of logical name prefixing in step S31 is revised as the actual logical name of physical network card by the ip link orders reused in (SuSE) Linux OS.
The present invention is independent of the equipment manager UDEV in (SuSE) Linux OS, identified by the PCI for obtaining physical network card, the corresponding logical name of physical network card can be found from physical layer, by reconfiguring the logical name of physical network card and the mapping relations of PCI marks, realize and cause physical network card and its being consistent property of logical name, so as to reach the purpose of convenient management.
The general principle and principal character and advantages of the present invention of the present invention has been shown and described above.It should be understood by those skilled in the art that; the present invention is not limited to the above embodiments; merely illustrating the principles of the invention described in above-described embodiment and specification; without departing from the spirit and scope of the present invention; various changes and modifications of the present invention are possible, and these changes and improvements all fall within the protetion scope of the claimed invention.The scope of the present invention is defined by the appended claims and its equivalents.
Claims (4)
1. the method that many network card equipments based on (SuSE) Linux OS adjust network interface card order, it is characterised in that
Comprise the following steps:
Step S1, obtains the mapping relations of original physical network card and its logical name;
Step S2, is redefined so that physical network card and the mapping relations of its being consistent property of logical name;
Step S3, according to the mapping relations redefined in step S2, adjusts the logical name of physical network card,
So that physical network card and its being consistent property of logical name.
2. many network card equipments based on (SuSE) Linux OS adjust network interface card order as claimed in claim 1
Method, it is characterised in that the step S1 include following sub-step:
SYSFS file system in step S11, carry (SuSE) Linux OS;
Step S12, the logical name of physical network card is obtained by SYSFS file system, while according to symbol
Link information obtains the PCI marks of physical network card.
3. many network card equipments based on (SuSE) Linux OS adjust network interface card order as claimed in claim 2
Method, it is characterised in that in step s 2, redefine so that physical network card and its logical name are protected
The mapping relations of uniformity are held, refer to PCI marks and the physical network card for being repositioned such that physical network card
The mapping relations of being consistent property of logical name.
4. many network card equipments based on (SuSE) Linux OS adjust network interface card order as claimed in claim 3
Method, it is characterised in that the step S3 include below from sub-step:
Step S31, using the ip link orders in (SuSE) Linux OS first by original physical network card
Logical name is changed to the form of the logical name prefixing in the mapping relations that are redefined in step S2, prevents
Only conflict during renaming;
Step S32, using the ip link orders in (SuSE) Linux OS by the logical name in step S31
The form of prefixing is claimed to be revised as the actual logical name of physical network card.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610112640.0A CN107135280A (en) | 2016-02-29 | 2016-02-29 | The method that many network card equipments based on (SuSE) Linux OS adjust network interface card order |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610112640.0A CN107135280A (en) | 2016-02-29 | 2016-02-29 | The method that many network card equipments based on (SuSE) Linux OS adjust network interface card order |
Publications (1)
Publication Number | Publication Date |
---|---|
CN107135280A true CN107135280A (en) | 2017-09-05 |
Family
ID=59720690
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201610112640.0A Pending CN107135280A (en) | 2016-02-29 | 2016-02-29 | The method that many network card equipments based on (SuSE) Linux OS adjust network interface card order |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN107135280A (en) |
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109412830A (en) * | 2018-09-05 | 2019-03-01 | 广州视源电子科技股份有限公司 | Method and device for curing internet card name, computer equipment and storage medium |
CN109542696A (en) * | 2017-09-22 | 2019-03-29 | 龙芯中科技术有限公司 | Obtain method, apparatus, readable storage medium storing program for executing and the electronic equipment of device data |
CN109639476A (en) * | 2018-12-06 | 2019-04-16 | 郑州云海信息技术有限公司 | A kind of server network card apparatus information acquisition method and device |
CN110896359A (en) * | 2019-08-19 | 2020-03-20 | 研祥智能科技股份有限公司 | Method and system for sequencing multiple network cards |
CN112671942A (en) * | 2020-12-04 | 2021-04-16 | 浪潮电子信息产业股份有限公司 | Method, device, equipment and storage medium for setting network port name |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102427483A (en) * | 2011-11-15 | 2012-04-25 | 浪潮电子信息产业股份有限公司 | Method for binding network card name with equipment under Linux system |
US20120131369A1 (en) * | 2004-11-24 | 2012-05-24 | Michael Paljug | Systems and methods for waking wireless lan devices |
CN102693192A (en) * | 2011-03-23 | 2012-09-26 | 研祥智能科技股份有限公司 | Automatic network card sorting method, system and corresponding electronic device |
CN102801553A (en) * | 2012-06-28 | 2012-11-28 | 南京智达康无线通信科技股份有限公司 | Adaptation method for adaptive modulation and coding (AMC) daughter cards |
CN103186484A (en) * | 2011-12-28 | 2013-07-03 | 鸿富锦精密工业(深圳)有限公司 | Network card naming method and system |
-
2016
- 2016-02-29 CN CN201610112640.0A patent/CN107135280A/en active Pending
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20120131369A1 (en) * | 2004-11-24 | 2012-05-24 | Michael Paljug | Systems and methods for waking wireless lan devices |
CN102693192A (en) * | 2011-03-23 | 2012-09-26 | 研祥智能科技股份有限公司 | Automatic network card sorting method, system and corresponding electronic device |
CN102427483A (en) * | 2011-11-15 | 2012-04-25 | 浪潮电子信息产业股份有限公司 | Method for binding network card name with equipment under Linux system |
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 |
Cited By (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109542696A (en) * | 2017-09-22 | 2019-03-29 | 龙芯中科技术有限公司 | Obtain method, apparatus, readable storage medium storing program for executing and the electronic equipment of device data |
CN109412830A (en) * | 2018-09-05 | 2019-03-01 | 广州视源电子科技股份有限公司 | Method and device for curing internet card name, computer equipment and storage medium |
CN109412830B (en) * | 2018-09-05 | 2022-05-06 | 广州视源电子科技股份有限公司 | Method and device for curing internet card name, computer equipment and storage medium |
CN109639476A (en) * | 2018-12-06 | 2019-04-16 | 郑州云海信息技术有限公司 | A kind of server network card apparatus information acquisition method and device |
CN109639476B (en) * | 2018-12-06 | 2022-02-18 | 郑州云海信息技术有限公司 | Method and device for acquiring information of network card equipment of server |
CN110896359A (en) * | 2019-08-19 | 2020-03-20 | 研祥智能科技股份有限公司 | Method and system for sequencing multiple network cards |
CN112671942A (en) * | 2020-12-04 | 2021-04-16 | 浪潮电子信息产业股份有限公司 | Method, device, equipment and storage medium for setting network port name |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN107135280A (en) | The method that many network card equipments based on (SuSE) Linux OS adjust network interface card order | |
CN108228119B (en) | Printing method based on HXML, terminal equipment and storage medium | |
JP5360630B2 (en) | Method and apparatus for correcting USB device drive and matching information | |
CN107580083B (en) | Method and system for allocating IP addresses of containers | |
US20200084183A1 (en) | Application based network traffic management | |
CN102710814B (en) | The control method of virtual machine IP address and device | |
CN102148749B (en) | Method and device for extending switch port | |
CN104850301A (en) | Method and system for classifying application icons on system desktop | |
CN101384086B (en) | Network device configuring method apparatus and system | |
DE112012003342T5 (en) | Dynamically adjust and limit the size of the network adapter memory to store virtual function translation entries | |
CN103441867A (en) | Method for updating internal network resource allocation of virtual machine | |
CN109660372B (en) | SDN service configuration method and device | |
CN105468372A (en) | Virtual machine template mirror image management method and system and virtual machine migration method and system | |
CN103986797A (en) | Network card sequence adjusting method based on Linux operation system | |
CN110572365A (en) | multi-protocol server management method, system, terminal device and storage medium | |
CN112269588B (en) | Algorithm upgrading method, device, terminal and computer readable storage medium | |
WO2020000657A1 (en) | Method and apparatus for establishing operation and maintenance monitoring connection, terminal device, and medium | |
US20180357230A1 (en) | Implementation method of interlinked document | |
WO2015117378A1 (en) | Method and related system for adaptively configuring port, and computer storage medium | |
CN103677961A (en) | Method for setting host name of virtual machine | |
CN104461603A (en) | Information processing method and electronic equipment | |
CN105391574A (en) | Server address setting method and device | |
CN115665231A (en) | Service creation method, device and computer-readable storage medium | |
CN105224354A (en) | Based on the method for upgrading software that backstage precisely pushes | |
CN107566547A (en) | The processing method named when on multiple servers is mapped to for same memory |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
CB02 | Change of applicant information | ||
CB02 | Change of applicant information |
Address after: 200436 Room 601, Lane 299, Lane 299, JIANGCHANG West Road, Jingan District, Shanghai Applicant after: Geer software Limited by Share Ltd Address before: 200070 Room 601, Lane 299, Lane 299, JIANGCHANG West Road, Zhabei District, Shanghai Applicant before: Geer Software Co., Ltd., Shanghai |
|
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20170905 |