VMware Communities
MaxVernon
Enthusiast
Enthusiast

Connecting multiple NICs in VMware Player on Vista x64

Hi,

I have a virtual machine which I created that has two bridged virtual network adapters connected to VMnet0 and VMnet2. I have used the vmnetcfg.exe tool to configure VMnet0 bridged to my wired network adapter, and VMnet2 bridged to my wireless lan adapter. However when I power up the VM using VMware Player, both network adapters appear to be connected to VMnet0.

.vmx file:

-


config.version = "8"

virtualHW.version = "4"

scsi0.present = "TRUE"

memsize = "512"

ide0:0.present = "TRUE"

ide0:0.fileName = "Windows XP Professional.vmdk"

ide1:0.present = "TRUE"

ide1:0.fileName = "C:\Installs\VMWareServer\ISO Images\WindowsXPSP2.ISO"

ide1:0.deviceType = "cdrom-image"

floppy0.present = "FALSE"

Ethernet0.present = "TRUE"

displayName = "Windows XP Professional SP2 Workstation"

guestOS = "winxppro"

autostart = "none"

autostop = "poweroff"

priority.grabbed = "normal"

priority.ungrabbed = "normal"

workingDir = ""

ide0:0.redo = ""

ide1:0.startConnected = "FALSE"

ethernet0.addressType = "generated"

uuid.location = "56 4d 2b d8 ae a8 66 4d-e4 1e cb 56 9f 5a 04 63"

uuid.bios = "56 4d 2b d8 ae a8 66 4d-e4 1e cb 56 9f 5a 04 63"

ethernet0.generatedAddress = "00:0c:29:5a:04:63"

ethernet0.generatedAddressOffset = "0"

tools.syncTime = "TRUE"

ethernet0.connectionType = "bridged"

ethernet0.vnet = "VMnet0"

Ethernet1.present = "TRUE"

Ethernet1.connectionType = "bridged"

Ethernet1.vnet = "VMnet2"

ethernet1.addressType = "generated"

ethernet1.generatedAddress = "00:0c:29:5a:04:6d"

ethernet1.generatedAddressOffset = "10"

usb.present = "TRUE"

extendedConfigFile = "Windows XP Professional.vmxf"

virtualHW.productCompatibility = "hosted"

tools.upgrade.policy = "manual"

checkpoint.vmState = ""

-


output from ipconfig /all

-


Windows IP Configuration

Host Name . . . . . . . . . . . . : XXXXXX

Primary Dns Suffix . . . . . . . :

Node Type . . . . . . . . . . . . : Unknown

IP Routing Enabled. . . . . . . . : No

WINS Proxy Enabled. . . . . . . . : No

DNS Suffix Search List. . . . . . : xxx.net

xxx.net

Ethernet adapter Local Area Connection:

Connection-specific DNS Suffix . : xxx.net

Description . . . . . . . . . . . : VMware Accelerated AMD PCNet Adapter

Physical Address. . . . . . . . . : 00-0C-29-5A-04-63

Dhcp Enabled. . . . . . . . . . . : Yes

Autoconfiguration Enabled . . . . : Yes

IP Address. . . . . . . . . . . . : 192.168.0.121

Subnet Mask . . . . . . . . . . . : 255.255.255.0

Default Gateway . . . . . . . . . : 192.168.0.1

DHCP Server . . . . . . . . . . . : 192.168.0.1

DNS Servers . . . . . . . . . . . : 192.168.0.1

Lease Obtained. . . . . . . . . . : Tuesday, October 02, 2007 3:57:14 PM

Lease Expires . . . . . . . . . . : Wednesday, October 03, 2007 3:57:14 PM

Ethernet adapter Local Area Connection 2:

Connection-specific DNS Suffix . : xxx.net

Description . . . . . . . . . . . : VMware Accelerated AMD PCNet Adapter

Physical Address. . . . . . . . . : 00-0C-29-5A-04-6D

Dhcp Enabled. . . . . . . . . . . : Yes

Autoconfiguration Enabled . . . . : Yes

IP Address. . . . . . . . . . . . : 192.168.0.120

Subnet Mask . . . . . . . . . . . : 255.255.255.0

Default Gateway . . . . . . . . . : 192.168.0.1

DHCP Server . . . . . . . . . . . : 192.168.0.1

DNS Servers . . . . . . . . . . . : 192.168.0.1

Lease Obtained. . . . . . . . . . : Tuesday, October 02, 2007 3:57:09 PM

Lease Expires . . . . . . . . . . : Wednesday, October 03, 2007 3:57:09 PM

-


As you can see from the ipconfig above, both network adapters are picking up DHCP addresses on the same subnet. Local Area Connection 2 should be pickup up a 10.x.x.x address.

Any help is much appreciated.

0 Kudos
1 Reply
MaxVernon
Enthusiast
Enthusiast

Simple fix. (thanks to sanbarrow.com for the necessary info)

I modified the .vmx file such that I replaced:

-


ethernet0.connectionType="bridged"

ethernet1.connectionType="bridged"

-


with

-


ethernet0.connectionType="custom"

ethernet1.connectionType="custom"

-


Now when I start the machine, it sees both networks. VMware Player should allow you to configure your network adapters as required without having to modify the .vmx file by hand.

0 Kudos