QA:Testcase biosdevname on-board network interface names

From FedoraProject

Revision as of 18:55, 18 January 2011 by Narendrak (Talk | contribs)

Jump to: navigation, search

Contents

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.

2. 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

3. Verify that the first onboard network interface has an index 1 and label "Embedded NIC 1"

<pre>[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

4. Physically identify the interface by issuing the command 'ethtool -p em1'. This makes the onboard network interaface LED blink.

[root@fedora-14-r710 ~]# ethtool -p em1

Expected Results

The onboard network interface for which the Server Chassis Label is Gb1 is named em1, Gb2 is named em2 and so on.