VMware Communities
robby_x
Contributor
Contributor

Using different IP-Adresses with VMware Workstation

My PC (WinXP) is using the static IP 192.168.2.10 / 255.255.255.0,

On my Virtual OS (SUSE Linux 9.3) I have to use IP 10.10.1.20 /

How can I connect from the guest OS to the virtual machine using

this different IP adresses ?

Reply
0 Kudos
6 Replies
continuum
Immortal
Immortal

Why don't you assign a second IP to the host ?

Maybe 10.10.1.10 ...

right click nic-icon in systray > properties > tcp/ip > properties > advanced > add ... just add the second IP


________________________________________________
Do you need support with a VMFS recovery problem ? - send a message via skype "sanbarrow"
I do not support Workstation 16 at this time ...

Reply
0 Kudos
AWo
Immortal
Immortal

You can also add an "Host-Only" NIC to the guest. This is working in its own IP net and you don't have to cross the wire because it is an VM internal net. Therefore it will still work if your physical NIC has no connection.

Andreas Woithon

vExpert 2009/10/11 [:o]===[o:] [: ]o=o[ :] = Save forests! rent firewood! =
Reply
0 Kudos
continuum
Immortal
Immortal

Setting a hostonly nic to a specific IP is everything but trivial.

You got to use undocumented vnetlib.exe commands - use the search function for "vnetlib.exe" + user: continuum to find those commands


________________________________________________
Do you need support with a VMFS recovery problem ? - send a message via skype "sanbarrow"
I do not support Workstation 16 at this time ...

Reply
0 Kudos
AWo
Immortal
Immortal

What do you mean with "not trivial". As far as I know you go to the virtual network settings, choose the host-only VMNet adapter and change the subnet settings to whatever you need. DHCP, the host-only NIC's on the host and guests are updated updatet automatically.

Do I miss something?

Andreas Woithon

vExpert 2009/10/11 [:o]===[o:] [: ]o=o[ :] = Save forests! rent firewood! =
Reply
0 Kudos
robby_x
Contributor
Contributor

OK, thanx for your replies.

I used following configuration:

PC

\----


192.168.2.20, Gateway 192.168.2.1

10.10.1.99 (additional IP)

VMnet1

\----


192.168.2.99

10.10.1.10 (additional IP)

Linux guest.

\----


10.10.1.20

192.168.2.100 (additional IP)

With this settings it is possible to communicate between host and guest when the network cable is connected (Etherned:bridged) or disconnected (Ethernet: VMnet1 (Host only))

It is also possible to connect to Router 192.168.2.1 from both guest and host.

Is there a better way to do this ?

Reply
0 Kudos
AWo
Immortal
Immortal

It seems that you merged both suggestions Smiley Wink

If you follow my suggestion, there is no need to assign two IP addresses to VMnet1 and your physical NIC (I guess that's what you did).

My suggestion was:

PC physical NIC 192.168.2.10 (as it is static)

PC VMnet 1 10.10.1.99 (or DHCP)

VMNet1 in VM Workstation network configuration: 10.10.1.0 (if Mask is 255.255.255.0)

Linux Guest

NIC 1 (Bridged): 192.168.2.100 (or DHCP)

NIC 2 (Host-only): 10.10.1.20 (as you have to use this one)

This should do it.

Andreas Woithon

vExpert 2009/10/11 [:o]===[o:] [: ]o=o[ :] = Save forests! rent firewood! =
Reply
0 Kudos