2nd NIC named dev### instead of eth1

Paul Raines raines at nmr.mgh.harvard.edu
Mon Dec 13 23:42:58 UTC 2004


We added a 2nd E1000 gig card to a box with Fedora Core 2 running
the 2.6.6-1.435smp kernel.  Instead of coming up as eth1 it comes
up as dev### where ### is a random number that changes each boot.


# lspci | grep thernet
03:01.0 Ethernet controller: Intel Corp. 82541GI/PI Gigabit Ethernet Controller
04:02.0 Ethernet controller: Intel Corp. 82540EM Gigabit Ethernet Controller 
(rev 02)

# cat /proc/net/dev | cut -d: -f1 | tail +3
     lo
dev265
   eth0

# ifconfig dev265
dev265    Link encap:Ethernet  HWaddr 00:0E:0C:60:A1:0A
           inet addr:192.168.100.1  Bcast:192.168.100.255  Mask:255.255.255.0
           UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
           RX packets:778 errors:0 dropped:0 overruns:0 frame:0
           TX packets:744 errors:0 dropped:0 overruns:0 carrier:0
           collisions:0 txqueuelen:1000
           RX bytes:138956 (135.6 Kb)  TX bytes:219175 (214.0 Kb)
           Base address:0x7000 Memory:d2120000-d2140000

I can configure it with IP info and it works as ifconfig above shows.
I can create a /etc/sysconfig/network-scripts/ifcfg-dev265 for it.
But since the number changes randomly each boot, I have to do this
by hand every boot.

Why does it not come up as eth1? The kernel messages seem to refer to
eth1:

# dmesg | grep eth
divert: not allocating divert_blk for non-ethernet device lo
e1000: eth0: e1000_probe: Intel(R) PRO/1000 Network Connection
divert: allocating divert_blk for eth0
e1000: eth1: e1000_probe: Intel(R) PRO/1000 Network Connection
divert: allocating divert_blk for eth1
divert: freeing divert_blk for eth0
divert: freeing divert_blk for eth1

-- 
---------------------------------------------------------------
Paul Raines                   email: raines at nmr.mgh.harvard.edu
MGH/MIT/HMS Athinoula A. Martinos Center for Biomedical Imaging
149 (2301) 13th Street        Charlestown, MA 02129	USA





More information about the fedora-list mailing list