重启虚拟客户机后,可看到结果:
引用
# lspci -v
00:13.0Ethernet controller: Intel Corporation 82545EM Gigabit Ethernet Controller (Copper) (rev 01)
Subsystem: VMware Inc Abstract PRO/1000 MT Single Port Adapter
Flags: bus master, 66MHz, medium devsel, latency 0, IRQ 193
Memory at f4840000 (64-bit,non-prefetchable) [size=128K]
Memory at f4810000 (64-bit, non-prefetchable) [size=64K]
I/O ports at 14c0
[virtual]Expansion ROM at 50010000 [disabled] [size=64K]
Capabilities:[dc] Power Management version 2
Capabilities: [e4] PCI-X non-bridge device
# cat /etc/modprobe.conf|grep eth
alias eth0 e1000
# ethtool eth0
Settings for eth0:
Supported ports: [ TP ]
Supported link modes: 10baseT/Half 10baseT/Full
100baseT/Half 100baseT/Full
1000baseT/Full
Supportsauto-negotiation: Yes
Advertised link modes: 10baseT/Half 10baseT/Full
100baseT/Half 100baseT/Full
1000baseT/Full
Advertisedauto-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
# mii-tool eth0
eth0:negotiated 100baseTx-FD, link ok
下面是VMware Guest Operating System Installation Guide中的一段内容:
The AMD Ethernet card driver included with certainWindows Vista builds—including 4074 and possibly others—does not workcorrectly or is not included with Windows. To use networking in theseWindows Vista guest operating systems, you must change the networkadapter. A driver for the vmxnet adapter is included in VMware Tools.
VMware GSX Server: Choose VM > Settings >Network Adapter (Windows) or VM > Settings > NIC (Linux), andselect vmxnet as the virtual device to use. Then install VMware Tools.A driver for the vmxnet adapter is included in VMware Tools.
VMware Workstation 4.x or lower, or VMware ACE, on aWindows host: Use a text editor such as Notepad to edit theconfiguration (.vmx) file for your Windows Vista virtual machine. Addthe following line:
Ethernet[n].virtualDev = "vmxnet"
Replace [n] with the number of the Ethernet adapter. The first Ethernet adapter is number 0, so the line for that adapter is
Ethernet0.virtualDev = "vmxnet"
Include a line for each Ethernet adapter configuredfor the virtual machine. Then install VMware Tools. A driver for thevmxnet adapter is included in VMware Tools.
VMware Workstation 4.x or lower on a Linux host:Choose VM > Settings, select Network Adapter, and then select vmxnetas the virtual device to use. Then install VMware Tools. A driver forthe vmxnet adapter is included in VMware Tools.
VMware Workstation 5.0.x: Install VMware Tools. A driver for the network adapter is included in VMware Tools.
VMware Workstation 5.5.x and VMware Server 1.x:Install VMware Tools. A vmxnet driver for the network adapter isincluded in VMware Tools. Installing VMware Tools automaticallyswitches the network adapter to vmxnet, and installs the vmxnet driver.
Alternatively, you can change the network adapter toe1000 (the Intel® PRO/1000 MT Adapter) before installing Windows Vista.Use a text editor such as Notepad to edit the configuration (.vmx) filefor your Windows Vista virtual machine. Add the following line:
Ethernet[n].virtualDev = "e1000"
Replace [n] with the number of the Ethernet adapter. The first Ethernet adapter is number 0, so the line for that adapter is
Ethernet0.virtualDev = "e1000"
Include a line for each Ethernet adapter configured for the virtual machine.
ESX Server 2.x: In the Hardware page, under NetworkAdapter, click Edit. In the Network Adapter page, in the Device Bindinglist, select the virtual network device that you want the virtualmachine to use. In the Virtual Device list, choose vmxnet. Then installVMware Tools. A driver for the vmxnet adapter is included in VMwareTools.
ESX Server 3.x: Install VMware Tools. A vmxnet driverfor the network adapter is included in VMware Tools. Installing VMwareTools automatically switches the network adapter to vmxnet, andinstalls the vmxnet driver.
Alternatively, you can change the network adapter toe1000 (the Intel® PRO/1000 MT Adapter) before installing Windows Vista.Use a text editor such as Notepad to edit the configuration (.vmx) filefor your Windows Vista virtual machine. Add the following line:
Ethernet[n].virtualDev = "e1000"
Replace [n] with the number of the Ethernet adapter. The first Ethernet adapter is number 0, so the line for that adapter is
Ethernet0.virtualDev = "e1000"
Include a line for each Ethernet adapter configured for the virtual machine.