CN102427483A - Method for binding network card name with equipment under Linux system - Google Patents

Method for binding network card name with equipment under Linux system Download PDF

Info

Publication number
CN102427483A
CN102427483A CN2011103601887A CN201110360188A CN102427483A CN 102427483 A CN102427483 A CN 102427483A CN 2011103601887 A CN2011103601887 A CN 2011103601887A CN 201110360188 A CN201110360188 A CN 201110360188A CN 102427483 A CN102427483 A CN 102427483A
Authority
CN
China
Prior art keywords
network interface
interface card
network card
name
driver
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN2011103601887A
Other languages
Chinese (zh)
Inventor
任华进
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Inspur Electronic Information Industry Co Ltd
Original Assignee
Inspur Electronic Information Industry 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 Inspur Electronic Information Industry Co Ltd filed Critical Inspur Electronic Information Industry Co Ltd
Priority to CN2011103601887A priority Critical patent/CN102427483A/en
Publication of CN102427483A publication Critical patent/CN102427483A/en
Pending legal-status Critical Current

Links

Landscapes

  • Computer And Data Communications (AREA)

Abstract

The invention provides a method for binding network card names with equipment under Linux system, which comprises the following steps of: 1) viewing and recording the identification (ID) number of each network card and practical network card positions through Linux commands, i.e. lspci-v commands, 2) removing the part the mac address binding in network card configuration scripts; and 3) modifying files/etc/udev/rules.d/60-net.rules, and adding network card ID and relationships between corresponding network card drivers and network card names, wherein configuration commands are as follows: DRIVER=='igb', ID=='0000:05:00.0', NAME='eth0'DRIVER=='igb', ID=='0000:05:00.1', NAME='eth1'DRIVER=='e1000e', ID=='0000:03:00.0', NAME='eth2'.

Description

The method of network interface card title and apparatus bound under a kind of linux system
Technical field
The present invention relates to computer or network technology problem, specifically a kind of under the linux system binding method of many network interface cards configuration network interface card titles and physical device.
Background technology
Present many network interface cards machine is the general acquiescence network interface card configuration script that uses under the linux system, and especially when two network interface cards used different driver modules, there was following problem in this mode:
1) network interface card reversed, such as before the network interface that connects of your netting twine be eth0, after the driving that certain network interface card is installed, possible its name becomes eth0 or eth3, or the like situation;
2) the network interface card name changes, and can not find such as eth0, and many individual network interface cards are named as
__tmp3183921382193__;
3) light mouth network interface card is random with electricity mouthful network interface card order, perhaps intersects;
4) a certain network interface card fault causes the title drift in order of other network interface cards, the indivedual application relevant with the network interface card order of influence;
When the machine backup and reduction was disposed in batches, because network interface card mac address is inconsistent, the machine of every reduction all need remodify the network interface card configuration script, revised the mac address, was not suitable for carrying out large scale system and disposed.
Summary of the invention
The method that the purpose of this invention is to provide network interface card title and apparatus bound under a kind of linux system.
The objective of the invention is to realize by following mode, check through linux instruction lspci-v instruction id number of every network interface card with actual network interface card position, the line item of going forward side by side.
1) removes the part of mac address binding in the network interface card configuration script;
2) revised file/etc/udev/rules.d/60-net.rules, add network interface card id, corresponding network interface card drives and and the corresponding relation of network interface card title, order as follows:
DRIVER=="igb",ID=="0000:05:00.0",NAME="eth0"
DRIVER=="igb",ID=="0000:05:00.1",NAME="eth1"
DRIVER=="e1000e",ID=="0000:03:00.0",NAME="eth2"
The invention has the beneficial effects as follows: through the method that network interface card title and device id are bound, avoid network interface card to drift about in proper order and drive loading unusual problem, compare that present many network interface cards are general to be used and binding method has:
When 1) avoiding under the linux system configuration of many network interface cards, occur at random the network interface card number sequence change cause giving drive incorrect, the problem that network interface card is obstructed;
2) prevent a certain network interface card fault, network interface card drifts about in proper order, causes indivedual application relevant with the network interface card order to be interrupted;
3) need not pass through the mac address binding, avoid every the advantage such as problem that all will remodify network interface card configuration script mac address of machine after batch system reduces, thereby, have good value for applications.
Embodiment
Embodiment:
Three network interface cards of machines configurations, two intel 82574l are integrated on the mainboard, an intel 82572EI extrapolation; It is igb that integrated network card uses the driver module title; It is e1000e that the extrapolation network interface card uses driver module, system's installation and add the network interface card driver module after, do following configuration:
1) checks and confirms the device id of three network interface cards
[rootlocalhost?~]#?lspci?-v|grep?Ethernet
03:00.0?Ethernet?controller:?Intel?Corporation?82572EI?Gigabit?Ethernet?Controller?(Copper)?(rev?06)
05:00.0?Ethernet?controller:?Intel?Corporation?82574L?Gigabit?Ethernet?Controller?(Copper)?(rev?01)
05:00.1?Ethernet?controller:?Intel?Corporation?82574L?Gigabit?Ethernet?Controller?(Copper)?(rev?01)
2) revise three network interface card configuration scripts, the part of mac address binding is removed, the configuration script of following network interface card 0
[rootlocalhost?~]#?cat?/etc/sysconfig/network-scripts/ifcfg-eth0
DEVICE=eth0
ONBOOT=yes
BOOTPROTO=dhcp
TYPE=Ethernet
3) modification/etc/udev/rules.d/60-net.rules file; Add the corresponding relation of network interface card driver module, network card equipment ID and network interface card title; Like this mainboard integrated network card is bound network interface card 0 and network interface card 1; With the extrapolation network card binding is network interface card 2, even if there are indivedual network interface card damage also can not cause the order of network interface card title to change.
ACTION=="add",?SUBSYSTEM=="net",?IMPORT{program}="/lib/udev/rename_device"
SUBSYSTEM=="net",?RUN+="/etc/sysconfig/network-scripts/net.hotplug"
DRIVER=="igb",ID=="0000:05:00.0",NAME="eth0"
DRIVER=="igb",ID=="0000:05:00.1",NAME="eth1"
DRIVER=="e1000e",ID=="0000:03:00.0",NAME="eth2"
Except that the described technical characterictic of specification, be the known technology of those skilled in the art.

Claims (1)

1. the method for network interface card title and apparatus bound under the linux system is characterized in that step is following:
1) checks id number and actual network interface card position of every network interface card, the line item of going forward side by side through linux instruction lspci-v instruction;
2) remove the part of mac address binding in the network interface card configuration script;
3) revised file/etc/udev/rules.d/60-net.rules, add network interface card id, corresponding network interface card drives and and the corresponding relation of network interface card title, configuration order is following:
DRIVER=="igb",ID=="0000:05:00.0",NAME="eth0"
DRIVER=="igb",ID=="0000:05:00.1",NAME="eth1"
DRIVER=="e1000e",ID=="0000:03:00.0",NAME="eth2"。
CN2011103601887A 2011-11-15 2011-11-15 Method for binding network card name with equipment under Linux system Pending CN102427483A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2011103601887A CN102427483A (en) 2011-11-15 2011-11-15 Method for binding network card name with equipment under Linux system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2011103601887A CN102427483A (en) 2011-11-15 2011-11-15 Method for binding network card name with equipment under Linux system

Publications (1)

Publication Number Publication Date
CN102427483A true CN102427483A (en) 2012-04-25

Family

ID=45961425

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2011103601887A Pending CN102427483A (en) 2011-11-15 2011-11-15 Method for binding network card name with equipment under Linux system

Country Status (1)

Country Link
CN (1) CN102427483A (en)

Cited By (20)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103744708A (en) * 2014-01-23 2014-04-23 浪潮电子信息产业股份有限公司 Method of fixing disk device names in Linux operating system
CN103986797A (en) * 2014-05-12 2014-08-13 浪潮电子信息产业股份有限公司 Network card sequence adjusting method based on Linux operation system
CN104407899A (en) * 2014-12-03 2015-03-11 浪潮电子信息产业股份有限公司 Method for restoring and starting network card after MAC address is changed under REDHAT operating system
CN104536824A (en) * 2015-01-16 2015-04-22 浪潮电子信息产业股份有限公司 Method for achieving Chelsio 40 G network card performance optimization
WO2015096014A1 (en) * 2013-12-23 2015-07-02 西门子公司 Method for configuring ethernet device, and apparatus thereof
CN105068946A (en) * 2015-08-14 2015-11-18 北京鼎开互联信息技术有限公司 Android device identification method and apparatus
CN105162629A (en) * 2015-08-26 2015-12-16 浪潮电子信息产业股份有限公司 Automatic implementation method for double-network-card binding under LINUX system
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
CN106302705A (en) * 2016-08-11 2017-01-04 浪潮(北京)电子信息产业有限公司 The interface information collection method of a kind of distributed memory system and system
CN107040427A (en) * 2017-06-09 2017-08-11 上海联影医疗科技有限公司 A kind of method and device of network card configuration
CN107046469A (en) * 2017-05-11 2017-08-15 郑州云海信息技术有限公司 A kind of method extended for server load balancing network card equipment
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
CN107741827A (en) * 2017-09-08 2018-02-27 郑州云海信息技术有限公司 A kind of out of order method and system of solution Linux disks
CN108039969A (en) * 2017-12-13 2018-05-15 深圳市科力锐科技有限公司 Network method of automatic configuration, device, system, storage medium and object-computer
US10057175B2 (en) 2013-11-25 2018-08-21 Huawei Technologies Co., Ltd. Method and device for transmitting network packet
CN108696394A (en) * 2018-05-18 2018-10-23 深圳市智微智能科技开发有限公司 The means of communication and equipment of multiple PCIE network interface cards 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
CN109347677A (en) * 2018-11-06 2019-02-15 郑州云海信息技术有限公司 The consistent method and device of network card equipment title in a kind of realization storage cluster
CN109347656A (en) * 2018-09-11 2019-02-15 郑州云海信息技术有限公司 A kind of method and system of fictitious host computer uplink network card configuration
CN109495329A (en) * 2019-01-22 2019-03-19 郑州云海信息技术有限公司 The method of network interface card recognition sequence is bound under a kind of linux system

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20020023150A1 (en) * 2000-08-09 2002-02-21 Tatsuaki Osafune Method of switching between network interfaces and computer connectable to a network
CN101178694A (en) * 2006-11-07 2008-05-14 莱克斯信息技术(北京)有限公司 Intel e1000 zero copy method

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20020023150A1 (en) * 2000-08-09 2002-02-21 Tatsuaki Osafune Method of switching between network interfaces and computer connectable to a network
CN101178694A (en) * 2006-11-07 2008-05-14 莱克斯信息技术(北京)有限公司 Intel e1000 zero copy method

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
CSDN: "调整linux网卡的顺序", 《HTTP://BLOG.CSDN.NET/KILLERZHOU/ARTICLE/DETAILS/6020216》 *
网易: "Linux-udev", 《HTTP://ZHUMENG8337797.BLOG.163.COM/BLOG/STATIC/100768914201083102544231/》 *

Cited By (23)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10057175B2 (en) 2013-11-25 2018-08-21 Huawei Technologies Co., Ltd. Method and device for transmitting network packet
WO2015096014A1 (en) * 2013-12-23 2015-07-02 西门子公司 Method for configuring ethernet device, and apparatus thereof
CN103744708A (en) * 2014-01-23 2014-04-23 浪潮电子信息产业股份有限公司 Method of fixing disk device names in Linux operating system
CN103986797A (en) * 2014-05-12 2014-08-13 浪潮电子信息产业股份有限公司 Network card sequence adjusting method based on Linux operation system
CN104407899A (en) * 2014-12-03 2015-03-11 浪潮电子信息产业股份有限公司 Method for restoring and starting network card after MAC address is changed under REDHAT operating system
CN104536824A (en) * 2015-01-16 2015-04-22 浪潮电子信息产业股份有限公司 Method for achieving Chelsio 40 G network card performance optimization
CN105068946A (en) * 2015-08-14 2015-11-18 北京鼎开互联信息技术有限公司 Android device identification method and apparatus
CN105162629A (en) * 2015-08-26 2015-12-16 浪潮电子信息产业股份有限公司 Automatic implementation method for double-network-card binding 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
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
CN105847053B (en) * 2016-03-23 2019-04-09 成都民航空管科技发展有限公司 The method and system that more network interface card multisegments are arbitrarily bound are set automatically under LINUX system
CN106302705A (en) * 2016-08-11 2017-01-04 浪潮(北京)电子信息产业有限公司 The interface information collection method of a kind of distributed memory system and system
CN107046469A (en) * 2017-05-11 2017-08-15 郑州云海信息技术有限公司 A kind of method extended for server load balancing network card equipment
CN107046469B (en) * 2017-05-11 2021-02-02 苏州浪潮智能科技有限公司 Method for expanding server load balancing network card equipment
CN107040427A (en) * 2017-06-09 2017-08-11 上海联影医疗科技有限公司 A kind of method and device of network card configuration
CN107741827A (en) * 2017-09-08 2018-02-27 郑州云海信息技术有限公司 A kind of out of order method and system of solution Linux disks
CN108039969A (en) * 2017-12-13 2018-05-15 深圳市科力锐科技有限公司 Network method of automatic configuration, device, system, storage medium and object-computer
CN108696394A (en) * 2018-05-18 2018-10-23 深圳市智微智能科技开发有限公司 The means of communication and equipment of multiple PCIE network interface cards 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
CN109347656A (en) * 2018-09-11 2019-02-15 郑州云海信息技术有限公司 A kind of method and system of fictitious host computer uplink network card configuration
CN109347656B (en) * 2018-09-11 2022-02-18 郑州云海信息技术有限公司 Method and system for configuring virtual host uplink network card
CN109347677A (en) * 2018-11-06 2019-02-15 郑州云海信息技术有限公司 The consistent method and device of network card equipment title in a kind of realization storage cluster
CN109495329A (en) * 2019-01-22 2019-03-19 郑州云海信息技术有限公司 The method of network interface card recognition sequence is bound under a kind of linux system

Similar Documents

Publication Publication Date Title
CN102427483A (en) Method for binding network card name with equipment under Linux system
US20180027685A1 (en) Storage Sled for a Data Center
US9921933B2 (en) System and method for indicator light control of storage devices
US10198385B2 (en) System and method for detecting types of storage drives connected to backplane controller or enclosure management controller
JP2013120494A (en) Virtual computer loaded with sr-iov corresponding device and failure detection method
US9367510B2 (en) Backplane controller for handling two SES sidebands using one SMBUS controller and handler controls blinking of LEDs of drives installed on backplane
WO2008116712B1 (en) In-band problem log data collection between a host and a storage system
US9806959B2 (en) Baseboard management controller (BMC) to host communication through device independent universal serial bus (USB) interface
EP1821186A3 (en) Virtual storage system and control method thereof
DE102017121465A1 (en) DATA PROTOCOL FOR MANAGING PERIPHERAL DEVICES
CN105446657A (en) Method for monitoring RAID card
WO2012105811A2 (en) Raid-based storage control board
CN104461402B (en) A kind of method for adjusting disk order under Linux system between multi-controller
CN104111867B (en) A kind of virtual machine (vm) migration device and method
CN106484549A (en) A kind of exchange method, NVMe equipment, HOST and physical machine system
JP2014002708A (en) Active cable management
CN111294413B (en) Method, device and readable medium for determining Internet Protocol (IP) address
CN107678910A (en) A kind of method of server complete machine temperature control
US20130054943A1 (en) Firmware with a plurality of emulated instances of platform-specific management firmware
CN112596859A (en) USB transparent transmission method and device
CN104202202A (en) Network card interface binding method and network card interface binding device
CN106371841A (en) Management method of ADB (Android) devices and system thereof
CN107731154B (en) LED display screen data backup device and method and terminal equipment
CN102135896A (en) Method and system for realizing software upgrading based on embedded system
CN103885813B (en) Packet capturing method in virtual machine environment

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C02 Deemed withdrawal of patent application after publication (patent law 2001)
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20120425