Bug 55941 - ethtool accepts only "ethX" format interfaces
Bug#: 55941 Product:  Gentoo Linux Version: unspecified Platform: All
OS/Version: Linux Status: RESOLVED Severity: normal Priority: P2
Resolution: FIXED Assigned To: base-system@gentoo.org Reported By: jmilus@gmail.com
Component: Core system
URL: 
Summary: ethtool accepts only "ethX" format interfaces
Keywords:  
Status Whiteboard: 
Opened: 2004-07-03 01:01 0000
Description:   Opened: 2004-07-03 01:01 0000
In Linux, you can rename your interfaces with nameif tool. This is a very
useful feature for boxes containing more than one interfaces. But after renamed
an interface ethtool does not accept. Example:

root@medeia> cat /etc/mactab
internet 00:C0:DF:14:22:1F
home 00:01:02:0B:B2:E6

root@medeia> ifconfig home
home      Link encap:Ethernet  HWaddr 00:01:02:0B:B2:E6
          inet addr:172.16.36.254  Bcast:172.16.36.255  Mask:255.255.255.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:0 (0.0 b)  TX bytes:0 (0.0 b)
          Interrupt:5 Base address:0xc400

root@medeia> ethtool home
home does not appear to be an ethernet device
ethtool version 1.8
Usage: [...]

root@medeia> ethtool eth0
Settings for eth0:
Cannot get device settings: No such device
Cannot get wake-on-lan settings: No such device
Cannot get message level: No such device
Cannot get link status: No such device
No data available

root@medeia> ethtool eth1
Settings for eth1:
Cannot get device settings: No such device
Cannot get wake-on-lan settings: No such device
Cannot get message level: No such device
Cannot get link status: No such device
No data available

Reproducible: Always
Steps to Reproduce:
1.rename the eth0 interface with nameif command (for example to home)
2.try to use ethtool on it.

Actual Results:  
root@medeia> ethtool home
home does not appear to be an ethernet device
ethtool version 1.8
Usage: [...]

root@medeia> ethtool eth0
Settings for eth0:
Cannot get device settings: No such device
Cannot get wake-on-lan settings: No such device
Cannot get message level: No such device
Cannot get link status: No such device
No data available

Expected Results:  
List of the settings of the ethernet device "home"

------- Comment #1 From SpanKY 2005-02-11 19:53:37 0000 -------
just added ethtool-3 which seemed to work for me ...

renamed eth1 to 'blah' and then ran `ethtool blah` and it worked