SIOCGMIIPHY on ‘eth0’ failed: Operation not supported


	Have you faced a strange error when looking for ethernet settings like its speed/duplex/etc.  

	[root@avivr2 ~]# mii-tool eth0
	SIOCGMIIPHY on 'eth0' failed: Operation not supported  
  
	Try running below ethtool command, are you getting a very compact output like below without any information about modes of ethernet device.  
  	  
		[root@avivr2 ~]# ethtool eth0  
		Settings for eth0:  
		Current message level: 0x00000007 (7)  
                Link detected: yes  
  
 
	If yes, then it means you are checking the device status on a VM or virtual operating system maybe running on virtual esx server. 
 
	You may need to load few other kernel modules to get complete information and to get rid of this error. 
 
	  
  
	[root@avivr2 ~]# modinfo -d e1000  
  
	Intel(R) PRO/1000 Network Driver  
  
	   
  
	[root@avivr2 ~]#  lsmod | egrep 'pcnet32|vmxnet|e1000'  
  
	pcnet32                35269  0   
  
	mii                     9409  1 pcnet32  
  
	   
  
	We can see no e1000 driver is loaded. Lets load this driver.  
  
	[root@avivr2 ~]# modprobe e1000  
  
	[root@avivr2 ~]#  lsmod | egrep 'pcnet32|vmxnet|e1000'  
  
	e1000                 115285  0   
  
	pcnet32                35269  0   
  
	mii                     9409  1 pcnet32  
  
	   
  
	Now when we run the command again, we can see the status is fine now.  
  
	   
  
	
 
[root@avivr2 ~]# mii-tool eth0 
eth0: negotiated 1000baseT-FD flow-control, link ok

In case still you are getting the same error, it means we need to edit vmx setting(the simple way is to edit vm_name.vmx file) and add below line if not present just after ethernet0.present = “true” as shown below.

 
ethernet0.virtualDev = "e1000"

Now when you start the machine this error will disappear.

Leave a Reply

avatar
  Subscribe  
Notify of