When run mii-tool on client Linux on VMWare Workstation:
hb1:~# mii-tool
SIOCGMIIPHY on 'eth0' failed: Operation not supported
no MII interfaces foundThe situation:
VMware ESX Server supports the following virtual network devices:
- vlance - AMD Lance PCNet32 ethernet adapter
- e1000 - Intel e1000 ethernet adapter
- vmxnet - VMware high speed virtual ethernet adapter
see:
hb1:~# modinfo -d e1000
Intel(R) PRO/1000 Network Driver
hb1:~# modinfo -d vmxnet
VMware Virtual Ethernet driver
hb1:~# modinfo -d pcnet32
Driver for PCnet32 and PCnetPCI based ethercards
Which modules are existing?
hb1:~# modprobe -l | egrep 'pcnet32|vmxnet|e1000'
/lib/modules/2.6.26-2-686/misc/vmxnet3.ko
/lib/modules/2.6.26-2-686/misc/vmxnet.ko
/lib/modules/2.6.26-2-686/kernel/drivers/net/e1000e/e1000e.ko
/lib/modules/2.6.26-2-686/kernel/drivers/net/e1000/e1000.ko
/lib/modules/2.6.26-2-686/kernel/drivers/net/pcnet32.koWhich modules are loaded?
hb1:~# lsmod | egrep 'pcnet32|vmxnet|e1000'
vmxnet 18100 0 Only module vmxnet is loaded!
Now load module e1000:
hb1:~# modprobe e1000
hb1:~# lsmod | egrep 'pcnet32|vmxnet|e1000'
e1000 102656 0
vmxnet 18100 0
Shutdown guest machine, open file virtualmachinename.vmx per notepad edit:
under line ethernet0.present = "TRUE"
ethernet0.virtualDev = "e1000"and do it for all NICs ethernet[0]…ethernet[n]
Power on the Linux client, run mii-tool and ethtool again:
hb1:~# mii-tool
eth0: negotiated 1000baseT-FD flow-control, link okhb1:~# ethtool eth0
Settings for eth0:
Supported ports: [ TP ]
Supported link modes: 10baseT/Half 10baseT/Full
100baseT/Half 100baseT/Full
1000baseT/Full
Supports auto-negotiation: Yes
Advertised link modes: 10baseT/Half 10baseT/Full
100baseT/Half 100baseT/Full
1000baseT/Full
Advertised auto-negotiation: Yes
Speed: 1000Mb/s
Duplex: Full
Port: Twisted Pair
PHYAD: 0
Transceiver: internal
Auto-negotiation: on
Supports Wake-on: d
Wake-on: d
Current message level: 0x00000007 (7)
Link detected: yes
阅读(4308) | 评论(0) | 转发(0) |