VMware Communities
Timo_Ratilainen
Contributor
Contributor
Jump to solution

Problems with NAT networking in VMWare Workstation

Hello

I have Windows XP Pro SP2 32-bit host and two guest images.

I can ping from/to host all host or guest systems, but I can not ping the 'outside network' or browse www pages. Host is in entreprise network behind a proxy, so bridged connection does not work. And I have set the proxy settings in the browser.

These two guest images are cloned. I'm working with VMWare Workstation 6.0.0. build-45731.

Any ideas?

Thanks and regards.

Timo

HOST'S ipconfig /all:[/b]

(Sorry about the Finnish language, but the order of the information is the same than in English, so it should be understandable)

Windows IP Configuration

Host Name . . . . . . . . . . . : thp1267

Ensisijainen DNS-liite . . . . . : fincustoms.tulli.fi

Solmutyyppi . . . . . . . . . . . : Hybridi

IP-reititys käytössä . . . . . . : Ei

WINS-välityspalvelin käytössä . . : Ei

DNS-liitteiden etsintäluettelo . : fincustoms.tulli.fi

fincustoms.tulli.fi

tulli.fi

Ethernet adapter VMware Network Adapter VMnet8:

Primary Dns Suffix . . . . :

Kuvaus . . . . . . . . . . . . . : VMware Virtual Ethernet Adapter for

VMnet8

Fyysinen osoite . . . . . . . . . : 00-50-56-C0-00-08

DHCP käytössä . . . . . . . . . . : Ei

IP-osoite . . . . . . . . . . . . : 192.168.19.1

Aliverkon peite . . . . . . . . . : 255.255.255.0

Default Gateway. . . . . . . . :

Ethernet-sovitin Local Area Connection:

Yhteyskohtainen DNS-liite . . . . : fincustoms.tulli.fi

Kuvaus . . . . . . . . . . . . . : Broadcom NetXtreme Gigabit Ethernet

Fyysinen osoite . . . . . . . . . : 00-19-99-03-1A-B2

DHCP käytössä . . . . . . . . . . : Ei

IP-osoite . . . . . . . . . . . . : 157.129.35.21

Aliverkon peite . . . . . . . . . : 255.255.252.0

Default Gateway. . . . . . . . : 157.129.35.1

DNS-palvelimet . . . . . . . . . : 157.129.70.3

157.129.70.2

193.208.144.20

Ethernet adapter VMware Network Adapter VMnet2:

Yhteyskohtainen DNS-liite . . . . :

Kuvaus . . . . . . . . . . . . . : VMware Virtual Ethernet Adapter for

VMnet2

Fyysinen osoite . . . . . . . . . : 00-50-56-C0-00-02

DHCP käytössä . . . . . . . . . . : Ei

IP-osoite . . . . . . . . . . . . : 192.168.220.1

Aliverkon peite . . . . . . . . . : 255.255.255.0

Default Gateway. . . . . . . . :

Ethernet adapter VMware Network Adapter VMnet7:

Yhteyskohtainen DNS-liite . . . . :

Kuvaus . . . . . . . . . . . . . : VMware Virtual Ethernet Adapter for

VMnet7

Fyysinen osoite . . . . . . . . . : 00-50-56-C0-00-07

DHCP käytössä . . . . . . . . . . : Ei

IP-osoite . . . . . . . . . . . . : 192.168.188.1

Aliverkon peite . . . . . . . . . : 255.255.255.0

Default Gateway. . . . . . . . :

Ethernet adapter VMware Network Adapter VMnet1:

Yhteyskohtainen DNS-liite . . . . :

Kuvaus . . . . . . . . . . . . . : VMware Virtual Ethernet Adapter for

VMnet1

Fyysinen osoite . . . . . . . . . : 00-50-56-C0-00-01

DHCP käytössä . . . . . . . . . . : Ei

IP-osoite . . . . . . . . . . . . : 192.168.75.1

Aliverkon peite . . . . . . . . . : 255.255.255.0

Default Gateway. . . . . . . . :

FIRST GUEST'S ipconfig /all:[/b]

Windows IP Configuration

Host Name . . . . . . . . . . . . : emcs-developer

Primary Dns Suffix . . . . . . . :

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

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

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

DNS Suffix Search List. . . . . . : localdomain

Ethernet adapter Local Area Connection:

Connection-specific DNS Suffix . : localdomain

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

Physical Address. . . . . . . . . : 00-0C-29-D8-55-3F

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

Autoconfiguration Enabled . . . . : Yes

IP Address. . . . . . . . . . . . : 192.168.19.132

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

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

DHCP Server . . . . . . . . . . . : 192.168.19.254

DNS Servers . . . . . . . . . . . : 192.168.19.1

Lease Obtained. . . . . . . . . . : 13. syyskuuta 2007 15:46:13

Lease Expires . . . . . . . . . . : 13. syyskuuta 2007 16:16:13

FIRST GUEST'S vmx-file:[/b]

config.version = "8"

virtualHW.version = "6"

scsi0.present = "TRUE"

memsize = "572"

ide0:0.present = "TRUE"

ide0:0.fileName = "Windows XP Professional-000002-cl4.vmdk"

ide1:0.present = "TRUE"

ide1:0.fileName = "auto detect"

ide1:0.deviceType = "cdrom-raw"

floppy0.autodetect = "TRUE"

ethernet0.present = "TRUE"

ethernet0.connectionType = "nat"

ethernet0.wakeOnPcktRcv = "FALSE"

usb.present = "TRUE"

ehci.present = "TRUE"

sound.present = "TRUE"

sound.fileName = "-1"

sound.autodetect = "TRUE"

svga.autodetect = "TRUE"

pciBridge0.present = "TRUE"

mks.keyboardFilter = "allow"

displayName = "EMCS_developer_client_004"

guestOS = "winxppro"

nvram = "EMCS_developer_client_004.nvram"

deploymentPlatform = "windows"

virtualHW.productCompatibility = "hosted"

tools.upgrade.policy = "useGlobal"

ide1:0.autodetect = "TRUE"

floppy0.fileName = "A:"

isolation.tools.hgfs.disable = "TRUE"

ethernet0.addressType = "generated"

uuid.location = "56 4d af 8e 62 18 f8 eb-33 04 54 fa 8e d8 55 3f"

uuid.bios = "56 4d af 8e 62 18 f8 eb-33 04 54 fa 8e d8 55 3f"

ide0:0.redo = ""

pciBridge0.pciSlotNumber = "17"

scsi0.pciSlotNumber = "16"

ethernet0.pciSlotNumber = "32"

sound.pciSlotNumber = "33"

ehci.pciSlotNumber = "34"

ethernet0.generatedAddress = "00:0c:29:d8:55:3f"

ethernet0.generatedAddressOffset = "0"

tools.remindInstall = "FALSE"

floppy0.startConnected = "FALSE"

checkpoint.vmState = ""

ide1:0.startConnected = "TRUE"

extendedConfigFile = "EMCS_developer_client_004.vmxf"

sharedFolder.option = "disabled"

sharedFolder.maxNum = "1"

sharedFolder0.present = "TRUE"

sharedFolder0.enabled = "TRUE"

sharedFolder0.readAccess = "TRUE"

sharedFolder0.writeAccess = "TRUE"

sharedFolder0.hostPath = "D:\shared"

sharedFolder0.guestName = "shared"

sharedFolder0.expiration = "never"

tools.syncTime = "FALSE"

inVMTeam = "FALSE"

numvcpus = "2"

gui.fullScreenAtPowerOn = "TRUE"

SECOND GUEST'S ipconfig /all:[/b]

Windows IP Configuration

Host Name . . . . . . . . . . . . : emcs-CHANGE-THIS

Primary Dns Suffix . . . . . . . :

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

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

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

DNS Suffix Search List. . . . . . : localdomain

Ethernet adapter Local Area Connection:

Connection-specific DNS Suffix . : localdomain

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

Physical Address. . . . . . . . . : 00-0C-29-81-64-AE

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

Autoconfiguration Enabled . . . . : Yes

IP Address. . . . . . . . . . . . : 192.168.19.131

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

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

DHCP Server . . . . . . . . . . . : 192.168.19.254

DNS Servers . . . . . . . . . . . : 192.168.19.1

Lease Obtained. . . . . . . . . . : 13. syyskuuta 2007 15:54:46

Lease Expires . . . . . . . . . . : 13. syyskuuta 2007 16:24:46

SECOND GUEST'S vmx-file:[/b]

config.version = "8"

virtualHW.version = "6"

scsi0.present = "TRUE"

memsize = "572"

ide0:0.present = "TRUE"

ide0:0.fileName = "Windows XP Professional-000003-cl2.vmdk"

ide1:0.present = "TRUE"

ide1:0.fileName = "auto detect"

ide1:0.deviceType = "cdrom-raw"

floppy0.autodetect = "TRUE"

ethernet0.present = "TRUE"

ethernet0.connectionType = "nat"

ethernet0.wakeOnPcktRcv = "FALSE"

usb.present = "TRUE"

ehci.present = "TRUE"

sound.present = "TRUE"

sound.fileName = "-1"

sound.autodetect = "TRUE"

svga.autodetect = "TRUE"

pciBridge0.present = "TRUE"

mks.keyboardFilter = "allow"

displayName = "EMCS_start_002"

guestOS = "winxppro"

nvram = "EMCS_start_002.nvram"

deploymentPlatform = "windows"

virtualHW.productCompatibility = "hosted"

tools.upgrade.policy = "useGlobal"

ide1:0.autodetect = "TRUE"

floppy0.fileName = "A:"

isolation.tools.hgfs.disable = "TRUE"

ethernet0.addressType = "generated"

uuid.location = "56 4d 4a bc 3d bf 92 fa-3f bd f7 6d 37 81 64 ae"

uuid.bios = "56 4d 4a bc 3d bf 92 fa-3f bd f7 6d 37 81 64 ae"

ide0:0.redo = ""

pciBridge0.pciSlotNumber = "17"

scsi0.pciSlotNumber = "16"

ethernet0.pciSlotNumber = "32"

sound.pciSlotNumber = "33"

ehci.pciSlotNumber = "34"

ethernet0.generatedAddress = "00:0c:29:81:64:ae"

ethernet0.generatedAddressOffset = "0"

floppy0.startConnected = "FALSE"

checkpoint.vmState.readOnly = "FALSE"

checkpoint.vmState = ""

extendedConfigFile = "EMCS_start_002.vmxf"

inVMTeam = "FALSE"

numvcpus = "2"

gui.fullScreenAtPowerOn = "TRUE"

tools.remindInstall = "FALSE"

ide1:0.startConnected = "TRUE"

tools.syncTime = "FALSE"

0 Kudos
1 Solution

Accepted Solutions
oreeh
Immortal
Immortal
Jump to solution

First: the DNS server for vmnet8 (NAT) uses the second IP in the subnet and not the first

Therefore (in your case) it is 192.168.19.[b]2[/b] and not 192.168.19.1.

Second: your VMs need a default GW to reach external systems.

In your case this is 192.168.19.2

View solution in original post

0 Kudos
9 Replies
jgl1975
Expert
Expert
Jump to solution

Aren't you connected to a switch which have mac address filtering enabled ?

0 Kudos
RDPetruska
Leadership
Leadership
Jump to solution

>Host is in entreprise network behind a proxy, so bridged connection does not work.

I don't understand this statement. I am on a corporate network behind a proxy, and used bridged mode in most of my VMs without any issues.

0 Kudos
AWo
Immortal
Immortal
Jump to solution

Following what you want to do, you should start with the guests NIC in bridged mode, static (including default gateway and DNS servers!) or DHCP IP addresses from your corporate network and configuring the proxy address in your guests application, like the browser.

AWo

vExpert 2009/10/11 [:o]===[o:] [: ]o=o[ :] = Save forests! rent firewood! =
0 Kudos
rsa911
Virtuoso
Virtuoso
Jump to solution

Your two guests have no default gateway ?!

are you able to ping your enterprise proxy IP from your guests ?

0 Kudos
Timo_Ratilainen
Contributor
Contributor
Jump to solution

Hello and thanks for all answers

First, I'm not admin in our corporate network. I'm just a Java developer who would be happy to use virtualization in our project, so I'm not network specialist either.

jgl1975:[/b]

I'm sorry, but I don't undestand Your question, I don't know anything about our corporate switches or mac filtering.

RDPetruska:[/b]

I think IP addresses are fixed in our corporation, so the VM can not add a new IP in the network. Well, at least this is something that was told to me. And yes, it has nothing to do with proxy.. my bad.

AWo:[/b]

I don't undestand that NIC (network interface card) stuff, but I was also thinking about setting the default gateway. But I have been told that network connection should work without the default gateway, which is kind of backup plan, when everything else fails. So, it should work without the default gateway.. I think. I have already set the proxy address in my guest's browser.

rsa911:[/b]

See the previous reply.

When I try to ping our proxy:

C:\>ping cache.tulli.fi

Ping request could not find host cache.tulli.fi. Please check the name and try again.[/i]

\----


Funny thing is that when I only had one image running, the network connection was working fine. Then I created one more image (from previously made full clone, which had only operating system installed) and put these two images to run side by side in the same host, problems begins and network connection went down. When I started guests, there were error messages like: "Network address conflict.. or error.. occured". Nowadays it doesn't say that.

I changed the guests' computer names (workgroup is still the same).

There are some messages in the Windows Event Wiewer (sources: NetBT or MRxSmb):

"The browser has received a server announcement indicating that the computer EMCS-5D70770792 is a master browser, but this computer is not a master browser."[/i] (EMCS-5D70770792 is the quest's old computer name)

"The redirector was unable to register the address for transport NetBT_Tcpip_{8F77B0DC-2D58-4957-B333 for the following reason: . Transport has been taken offline."[/i]

"The name "EMCS-5D70770792:0" could not be registered on the Interface with IP address 192.168.19.131. The machine with the IP address 192.168.19.128 did not allow the name to be claimed by this machine." (those are guests' the old ip:s')[/i] (192.168.19.131 and 192.168.19.128 are quests' old IP addresses)

"The redirector was unable to register the address for transport NetBT_Tcpip_{8F77B0DC-2D58-4957-B333 for the following reason: . Transport has been taken offline."[/i]

"The IP address lease 192.168.19.128 for the Network Card with network address 000C299F1444 has been denied by the DHCP server 0.0.0.0 (The DHCP Server sent a DHCPNACK message)."[/i]

"The redirector failed to determine the connection type."[/i]

"The name "EMCS-5D70770792:0" could not be registered on the Interface with IP address 192.168.19.128. The machine with the IP address 192.168.19.131 did not allow the name to be claimed by this machine."[/i]

Any more ideas?

Regards,

Timo

0 Kudos
jgl1975
Expert
Expert
Jump to solution

If your running several clone of the same vm at the same time, you need to change the SID of your vms.

If two vms are using the same SID, you're running into trouble.

Tools like NewSID from SysInternals should help you to prevent that :

http://www.microsoft.com/technet/sysinternals/Utilities/NewSid.mspx

You should also check that your vms are not using the same mac address.

To do so, run ipconfig /all in a dos box (start>run>cmd) on both vms and compare the result.

oreeh
Immortal
Immortal
Jump to solution

First: the DNS server for vmnet8 (NAT) uses the second IP in the subnet and not the first

Therefore (in your case) it is 192.168.19.[b]2[/b] and not 192.168.19.1.

Second: your VMs need a default GW to reach external systems.

In your case this is 192.168.19.2

0 Kudos
Timo_Ratilainen
Contributor
Contributor
Jump to solution

Hi

oreeh:[/b]

Stupid questions, but how can I change the DNS's IP and the default gateway?

I tried to change the vmnet8 to 192.168.19.2 from the Workstation's Edit->Virtual Network Settings->NAT->VMnet8->Edit. Then restarted the NAT service. But host and guest are still showing the same 192.168.19.1 address:

GUEST'S:[/b]

ipconfig /all

Windows IP Configuration

Host Name . . . . . . . . . . . . : emcs-CHANGE-THIS

Primary Dns Suffix . . . . . . . :

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

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

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

DNS Suffix Search List. . . . . . : localdomain

Ethernet adapter Local Area Connection:

Connection-specific DNS Suffix . : localdomain

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

Physical Address. . . . . . . . . : 00-0C-29-81-64-AE

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

Autoconfiguration Enabled . . . . : Yes

IP Address. . . . . . . . . . . . : 192.168.19.131

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

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

DHCP Server . . . . . . . . . . . : 192.168.19.254

DNS Servers . . . . . . . . . . . : 192.168.19.1

Lease Obtained. . . . . . . . . . : 14. syyskuuta 2007 13:14:06

Lease Expires . . . . . . . . . . : 14. syyskuuta 2007 13:44:06

HOST'S:[/b]

H:\>ipconfig /all

Windows IP-määritykset

Isäntänimi . . . . . . . . . . . : thp1267

Ensisijainen DNS-liite . . . . . : fincustoms.tulli.fi

Solmutyyppi . . . . . . . . . . . : Hybridi

IP-reititys käytössä . . . . . . : Ei

WINS-välityspalvelin käytössä . . : Ei

DNS-liitteiden etsintäluettelo . : fincustoms.tulli.fi

fincustoms.tulli.fi

tulli.fi

Ethernet-sovitin VMware Network Adapter VMnet7:

Yhteyskohtainen DNS-liite . . . . :

Kuvaus . . . . . . . . . . . . . : VMware Virtual Ethernet Adapter for

VMnet7

Fyysinen osoite . . . . . . . . . : 00-50-56-C0-00-07

DHCP käytössä . . . . . . . . . . : Ei

IP-osoite . . . . . . . . . . . . : 192.168.188.1

Aliverkon peite . . . . . . . . . : 255.255.255.0

Oletusyhdyskäytävä. . . . . . . . :

Ethernet-sovitin VMware Network Adapter VMnet2:

Yhteyskohtainen DNS-liite . . . . :

Kuvaus . . . . . . . . . . . . . : VMware Virtual Ethernet Adapter for

VMnet2

Fyysinen osoite . . . . . . . . . : 00-50-56-C0-00-02

DHCP käytössä . . . . . . . . . . : Ei

IP-osoite . . . . . . . . . . . . : 192.168.220.1

Aliverkon peite . . . . . . . . . : 255.255.255.0

Oletusyhdyskäytävä. . . . . . . . :

Ethernet-sovitin VMware Network Adapter VMnet8:

Yhteyskohtainen DNS-liite . . . . :

Kuvaus . . . . . . . . . . . . . : VMware Virtual Ethernet Adapter for

VMnet8

Fyysinen osoite . . . . . . . . . : 00-50-56-C0-00-08

DHCP käytössä . . . . . . . . . . : Ei

IP-osoite . . . . . . . . . . . . : 192.168.19.1

Aliverkon peite . . . . . . . . . : 255.255.255.0

Oletusyhdyskäytävä. . . . . . . . :

Ethernet-sovitin VMware Network Adapter VMnet1:

Yhteyskohtainen DNS-liite . . . . :

Kuvaus . . . . . . . . . . . . . : VMware Virtual Ethernet Adapter for

VMnet1

Fyysinen osoite . . . . . . . . . : 00-50-56-C0-00-01

DHCP käytössä . . . . . . . . . . : Ei

IP-osoite . . . . . . . . . . . . : 192.168.75.1

Aliverkon peite . . . . . . . . . : 255.255.255.0

Oletusyhdyskäytävä. . . . . . . . :

Ethernet-sovitin Local Area Connection:

Yhteyskohtainen DNS-liite . . . . : fincustoms.tulli.fi

Kuvaus . . . . . . . . . . . . . : Broadcom NetXtreme Gigabit Ethernet

Fyysinen osoite . . . . . . . . . : 00-19-99-03-1A-B2

DHCP käytössä . . . . . . . . . . : Ei

IP-osoite . . . . . . . . . . . . : 157.129.35.21

Aliverkon peite . . . . . . . . . : 255.255.252.0

Oletusyhdyskäytävä. . . . . . . . : 157.129.35.1

DNS-palvelimet . . . . . . . . . : 157.129.70.3

157.129.70.2

193.208.144.20

Bests,

Timo

0 Kudos
Timo_Ratilainen
Contributor
Contributor
Jump to solution

Okay, lets take it back.

Now it works, it just took a little time.

I didn't have to set the default gateway.

Thank You for the good and fast answer.

Bests,

Timo

0 Kudos