From Fedora Project Wiki

Revision as of 10:48, 17 January 2011 by Narendrak (talk | contribs)

Description

This test case verifies that onboard network interfaces are named emN.

Setup

Make sure your system is booted into Rawhide kernel.

Howto Test

  1. Identify the onboard network interfaces in your system.
[root@fedora-14-r710 ~]# 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 details on onboard devices.

[root@fedora-14-r710 ~]# 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 the lspci output to determine the network adapters.

  1. Run the command 'ls /sys/class/net' and make sure that onboard network adapters identified in step 1 are named em1, em2, em3 and em4.
[root@fedora-14-r710 ~]# ls /sys/class/net/
em1  em2  em3  em4  lo  pci3#1  pci3#1_0  pci3#1_1  pci3#2  pci3#2_0  pci3#2_1  pci4#1
  1. Verify that the first onboard network interface has an index 1 and label "Embedded NIC 1"
[root@fedora-14-r710 ~]# cat /sys/class/net/em1/device/index
1
[root@fedora-14-r710 ~]# cat /sys/class/net/em1/device/label
Embedded NIC 1 

[root@fedora-14-r710 ~]# cat /sys/class/net/em2/device/index
2
[root@fedora-14-r710 ~]# cat /sys/class/net/em2/device/label
Embedded NIC 2


Expected Results

All the onboard network interfaces are named as emN.