From Fedora Project Wiki
m (add autolang to page) |
|||
(3 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
= | {{autolang|base=yes}} | ||
This test case verifies that onboard network interfaces are named emN. | {{QA/Test_Case | ||
|description=This test case verifies that onboard network interfaces are named emN. | |||
|setup= | |||
# Make sure your system is booted into a {{FedoraVersion|long|next}} or [[Releases/Rawhide|Rawhide]] kernel. | |||
|actions= | |||
<ol> | |||
<li> Identify the onboard network interfaces in your system using the command {{command|lspci {{!}} grep -i ethernet}} | |||
<pre># lspci | grep -i ether | |||
<pre> | |||
01:00.0 Ethernet controller: Broadcom Corporation NetXtreme II BCM5709 Gigabit Ethernet (rev 20) | 01:00.0 Ethernet controller: Broadcom Corporation NetXtreme II BCM5709 Gigabit Ethernet (rev 20) | ||
01:00.1 Ethernet controller: Broadcom Corporation NetXtreme II BCM5709 Gigabit Ethernet (rev 20) | 01:00.1 Ethernet controller: Broadcom Corporation NetXtreme II BCM5709 Gigabit Ethernet (rev 20) | ||
Line 21: | Line 19: | ||
</pre> | </pre> | ||
On Dell PowerEdge systems SMBIOS type 41 record provides details on onboard devices. | On Dell PowerEdge systems, SMBIOS type 41 record provides additional details on onboard devices. For example, using the command {{command|dmidecode -t 41}}, you can further inspect on-board devices. | ||
<pre> | <pre># dmidecode -t 41 | ||
# dmidecode 2.10 | # dmidecode 2.10 | ||
SMBIOS 2.6 present. | SMBIOS 2.6 present. | ||
Line 58: | Line 56: | ||
Bus Address: 0000:02:00.1</pre> | Bus Address: 0000:02:00.1</pre> | ||
The output from this command tells you that there are 4 onboard network interfaces in this system. Compare the | The output from this command tells you that there are 4 onboard network interfaces in this system. Compare the <code>Bus Address</code> field to the {{command|lspci}} output to determine the network adapters. | ||
<li> Run the command {{command|ls /sys/class/net}} and make sure that onboard network adapters identified in step 1 are named <code>em1</code>, <code>em2</code>, <code>em3</code> and <code>em4</code>. | |||
< | <li> Verify that the first on-board network interface has an index <code>1</code> and label <code>Embedded NIC 1</code>. The commands {{command|cat /sys/class/net/em1/device/index}} and {{command|cat /sys/class/net/em1/device/label}} can be used to identify the index and label respectively | ||
em1 | |||
<li> Physically identify the interface by issuing the command {{command|ethtool -p em1}}. This makes the onboard network interaface LED blink. | |||
</ol> | |||
<pre> | |results= | ||
<ol> | |||
<li> The on-board network inferfaces are named with the prefix <code>em</code>. For example: | |||
<pre># ls /sys/class/net/ | |||
em1 em2 em3 em4 lo</pre> | |||
<li> The first onboard network interface, as per SMBIOS type 41 record, should be named <code>em1</code> in the OS, the second onboard network interface, as per SMBIOS type 41 record, should be named <code>em2</code> and so on. | |||
<pre># cat /sys/class/net/em1/device/index | |||
1 | 1 | ||
# cat /sys/class/net/em1/device/label | |||
Embedded NIC 1 | Embedded NIC 1 | ||
# cat /sys/class/net/em2/device/index | |||
2 | 2 | ||
# cat /sys/class/net/em2/device/label | |||
Embedded NIC 2</pre> | Embedded NIC 2</pre> | ||
<li> The {{command|ethtool -p emN}} command causes the network interface LED corresponding to the device name to blink. For example, <code>em2</code> would cause the second on-board network interface device to blink. | |||
</ol> | |||
}} | |||
[[Category:Package biosdevname test cases]] | |||
Latest revision as of 19:58, 21 January 2011
Description
This test case verifies that onboard network interfaces are named emN.
Setup
- Make sure your system is booted into a Fedora 42 or Rawhide kernel.
How to test
- Identify the onboard network interfaces in your system using the command
lspci | grep -i ethernet
# lspci | grep -i ether 01:00.0 Ethernet controller: Broadcom Corporation NetXtreme II BCM5709 Gigabit Ethernet (rev 20) 01:00.1 Ethernet controller: Broadcom Corporation NetXtreme II BCM5709 Gigabit Ethernet (rev 20) 02:00.0 Ethernet controller: Broadcom Corporation NetXtreme II BCM5709 Gigabit Ethernet (rev 20) 02:00.1 Ethernet controller: Broadcom Corporation NetXtreme II BCM5709 Gigabit Ethernet (rev 20) 06:00.0 Ethernet controller: Intel Corporation 82572EI Gigabit Ethernet Controller (Copper) (rev 06) 07:00.0 Ethernet controller: Intel Corporation 82576 Gigabit Network Connection (rev 01) 07:00.1 Ethernet controller: Intel Corporation 82576 Gigabit Network Connection (rev 01)
On Dell PowerEdge systems, SMBIOS type 41 record provides additional details on onboard devices. For example, using the command
dmidecode -t 41
, you can further inspect on-board devices.# dmidecode -t 41 # dmidecode 2.10 SMBIOS 2.6 present. Handle 0x2900, DMI type 41, 11 bytes Onboard Device Reference Designation: Embedded NIC 1 Type: Ethernet Status: Enabled Type Instance: 1 Bus Address: 0000:01:00.0 Handle 0x2901, DMI type 41, 11 bytes Onboard Device Reference Designation: Embedded NIC 2 Type: Ethernet Status: Enabled Type Instance: 2 Bus Address: 0000:01:00.1 Handle 0x2902, DMI type 41, 11 bytes Onboard Device Reference Designation: Embedded NIC 3 Type: Ethernet Status: Enabled Type Instance: 3 Bus Address: 0000:02:00.0 Handle 0x2903, DMI type 41, 11 bytes Onboard Device Reference Designation: Embedded NIC 4 Type: Ethernet Status: Enabled Type Instance: 4 Bus Address: 0000:02:00.1
The output from this command tells you that there are 4 onboard network interfaces in this system. Compare the
Bus Address
field to thelspci
output to determine the network adapters. - Run the command
ls /sys/class/net
and make sure that onboard network adapters identified in step 1 are namedem1
,em2
,em3
andem4
. - Verify that the first on-board network interface has an index
1
and labelEmbedded NIC 1
. The commandscat /sys/class/net/em1/device/index
andcat /sys/class/net/em1/device/label
can be used to identify the index and label respectively - Physically identify the interface by issuing the command
ethtool -p em1
. This makes the onboard network interaface LED blink.
Expected Results
- The on-board network inferfaces are named with the prefix
em
. For example:# ls /sys/class/net/ em1 em2 em3 em4 lo
- The first onboard network interface, as per SMBIOS type 41 record, should be named
em1
in the OS, the second onboard network interface, as per SMBIOS type 41 record, should be namedem2
and so on.# cat /sys/class/net/em1/device/index 1 # cat /sys/class/net/em1/device/label Embedded NIC 1 # cat /sys/class/net/em2/device/index 2 # cat /sys/class/net/em2/device/label Embedded NIC 2
- The
ethtool -p emN
command causes the network interface LED corresponding to the device name to blink. For example,em2
would cause the second on-board network interface device to blink.