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"