Note: This is a beta release of Red Hat Bugzilla 5.0. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Also email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback here.
Bug 82442 - device name missing number for network card
Summary: device name missing number for network card
Keywords:
Status: CLOSED WONTFIX
Alias: None
Product: Red Hat Public Beta
Classification: Retired
Component: hwbrowser
Version: phoebe
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Brent Fox
QA Contact: David Lawrence
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2003-01-22 06:35 UTC by Tammy Fox
Modified: 2007-04-18 16:50 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2003-01-22 21:56:55 UTC


Attachments (Terms of Use)

Description Tammy Fox 2003-01-22 06:35:33 UTC
On the Network devices page, the device name for my ethernet
card says /dev/eth instead of /dev/eth0.

Comment 1 Brent Fox 2003-01-22 21:24:22 UTC
Actually, this is the data that kudzu provides.  Try this from a python interpreter:

d = kudzu.probe(kudzu.BUS_UNSPEC, kudzu.CLASS_UNSPEC, kudzu.PROBE_SAFE)
print d

The network section will look something like this:


, Desc:           Lite-On|LNE100TX
Driver:         tulip
Device:         eth


Shouldn't kudzu should return 'eth0', 'eth1', etc the same way that it returns
'fd0', or 'hdb'?  Changing component to kudzu.

Comment 2 Bill Nottingham 2003-01-22 21:26:36 UTC
No, the 'device' field is just an indication of the device prefix;
'eth' for ethernet, 'tr' for token-ring.


Comment 3 Brent Fox 2003-01-22 21:56:55 UTC
But doesn't something like 'hdc' tell you more than the device prefix?  It's
telling you not just that the device is a hard drive, but that it is the third
hard drive on the IDE bus.  

Although I guess that 'eth0' isn't really the hardware device name the way that
'hdc' is.  Rather, it's just the interface name that the OS has assigned to that
hardware device.  

I don't think that there's much I can do about this in any kind of clean way.  I
could take the data that kudzu provides and then try to find a match on the
driver in /etc/modules.conf, but what if I have two cards that use the same
driver?  /etc/modules.conf can't tell me then which card is eth0 and which is
eth1.  I'm reluctantly closing as 'wontfix'.  This bothers me, but I don't see
what I can really do about it.  If you have a better idea, please reopen this
report.


Note You need to log in before you can comment on or make changes to this bug.