- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - Linux
- >
- how do I determine on RedHat which ethX is being u...
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-25-2012 06:52 AM
09-25-2012 06:52 AM
one of two ports ethernet card (10GbE), how do I know which ethX on linux is corresponding to this port?
NC523SFP 10Gb 2-port Server Adapter
HP G5 server
Thanks!
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-25-2012 11:48 PM
09-25-2012 11:48 PM
SolutionYou can use the "ethtool --identify ethX" command to blink the LEDs of each network port to identify them.
Usually multi-port NICs have been designed so that the order of both the MAC addresses and the PCI IDs of each port matches the port numbering marked on the card or listed in the card documentation. Usually this causes Linux to assign consecutive ethX numbers in the same order as the ports are marked on the card.
If the MAC addresses are in order but the PCI IDs are not, or vice versa, it depends on exactly how the driver for this ethernet card type is programmed.
If there are multiple NIC models in the same server, the loading order of the NIC drivers can influence the ordering of the ethX numbers too.
If you are adding a new card to a system that is already configured, many modern Linux distributions have a system that will attempt to keep each existing ethX number forever assigned with a particular MAC address. This makes things easier when you are adding new cards to an old system, but requires extra steps to update the ethX <-> MAC address mapping if you are replacing a failed NIC and want the new one to have the same ethX number(s) as the old one.
In most new Linux distributions, this mapping is maintained in a file like /etc/udev/rules.d/*-persistent-net.rules. RedHat used to do things differently: they used the HWADDR= variables in the /etc/sysconfig/network-scripts/ifcfg-ethX files to create the mappings. RHEL 6 seems to have both the usual RedHat scheme and the more common udev-based scheme: I wonder which one of them takes priority?