sreeslinux
Contributor
Contributor

Seperate Network for VM and Host (only one network link)

Is it possible for a Virtual Machine to connect to a different network than the host using the same Ethernet cable?

My work has two Networks and I would like to connect my Host machine to one and the Virtual Machine to the other.

We use the same ethernet sockets to connect to either Network (think it uses a switch or something - don't know much about networks at all). I have all of the network settings correct for the VM but cannot connect to the network. I think the problem is with the Bridged VM network settings. Is what I am trying impossible or is there a way? Please please please help!!!

0 Kudos
6 Replies
jb12345
Enthusiast
Enthusiast

Have you tried setting up a vSwitch with VLANs for your virtual machines?

AWo
Immortal
Immortal

Welcome to the forums!

In principle it is possible to run more than one IP subnet ove rone cable. But that is not best practice. I don't know if you can do that with a bridged guest, but that is easy to try. Give the guest an IP address from the network in question and fit all other settings to that (DNS and Default Gateway). Try to ping the default gateway to check if it is working. Of course, the gateway must be connected to that physical network, as well and it must have an IP address from the IP subnet you use in th eguest, too.


AWo

VCP / VMware vEXPERT 2009

\*** I rent firewood out ***

vExpert 2009/10/11 [:o]===[o:] [: ]o=o[ :] = Save forests! rent firewood! =
sreeslinux
Contributor
Contributor

Thanks for the reply.

Don't know what that all means but am browsing the option on VM worksation now. Any more guidance would be appreciated.

0 Kudos
AWo
Immortal
Immortal

Check the virtual hardware configuration of your guest. The vitual NIC should be set to "bridged". That makes your virtual guest a host like any other on the network the VMware Workstation host is connected to. That means it must have its own valid IP setup.

Which guest OS do you use and which network is th ehost member of? Post "ipconfig /all" (Windows) or "ifconfig -a" (Linux) from your host. Post which network the guest should belong to.


AWo

VCP / VMware vEXPERT 2009

\*** I rent firewood out ***

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

The VM machine is a clone of a working desktop Windows XP Pro on a school 'administration network'.

The Host is Windows 7 and is connected to a different Network ('curiculum network') via the same wall connection.

I am trying to get the programs on the Windows XP Pro VM machine to work on my school laptop.

I am at home at the moment doing some network research to find a solution to my problem so not sure ipconfig /all will tell you much.

Microsoft Windows http://Version 6.1.7600

Copyright (c) 2009 Microsoft Corporation. All rights reserved.

C:\Users\User>ipconfig /all

Windows IP Configuration

Host Name . . . . . . . . . . . . : Trinity

Primary Dns Suffix . . . . . . . : pencoedcompdom.local

Node Type . . . . . . . . . . . . : Hybrid

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

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

DNS Suffix Search List. . . . . . : pencoedcompdom.local

domain_not_set.invalid

Ethernet adapter Network Bridge:

Media State . . . . . . . . . . . : Media disconnected

Connection-specific DNS Suffix . :

Description . . . . . . . . . . . : MAC Bridge Miniport

Physical Address. . . . . . . . . : 02-16-17-50-89-11

DHCP Enabled. . . . . . . . . . . : Yes

Autoconfiguration Enabled . . . . : Yes

Wireless LAN adapter Wireless Network Connection:

Connection-specific DNS Suffix . : domain_not_set.invalid

Description . . . . . . . . . . . : 802.11g MiniPCI Wireless Network Adapter

Physical Address. . . . . . . . . : 00-13-D3-7C-3A-F1

DHCP Enabled. . . . . . . . . . . : Yes

Autoconfiguration Enabled . . . . : Yes

Link-local IPv6 Address . . . . . : fe80::8014:81a3:4676:c837%14(Preferred)

IPv4 Address. . . . . . . . . . . : 192.168.1.101(Preferred)

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

Lease Obtained. . . . . . . . . . : 30 September 2009 21:44:39

Lease Expires . . . . . . . . . . : 01 October 2009 23:06:47

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

DHCP Server . . . . . . . . . . . : 192.168.1.1

DHCPv6 IAID . . . . . . . . . . . : 318772179

DHCPv6 Client DUID. . . . . . . . : 00-01-00-01-12-41-81-B6-00-16-17-50-89-11

DNS Servers . . . . . . . . . . . : 212.139.132.38

212.139.132.39

192.168.1.1

NetBIOS over Tcpip. . . . . . . . : Enabled

Ethernet adapter VirtualBox Host-Only Network:

Connection-specific DNS Suffix . :

Description . . . . . . . . . . . : VirtualBox Host-Only Ethernet Adapter

Physical Address. . . . . . . . . : 08-00-27-00-C0-26

DHCP Enabled. . . . . . . . . . . : No

Autoconfiguration Enabled . . . . : Yes

Link-local IPv6 Address . . . . . : fe80::3975:341d:4818:b181%17(Preferred)

IPv4 Address. . . . . . . . . . . : 192.168.56.1(Preferred)

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

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

DHCPv6 IAID . . . . . . . . . . . : 419954727

DHCPv6 Client DUID. . . . . . . . : 00-01-00-01-12-41-81-B6-00-16-17-50-89-11

DNS Servers . . . . . . . . . . . : fec0:0:0:ffff::1%1

fec0:0:0:ffff::2%1

fec0:0:0:ffff::3%1

NetBIOS over Tcpip. . . . . . . . : Enabled

Ethernet adapter Local Area Connection 2:

Connection-specific DNS Suffix . :

Description . . . . . . . . . . . : VMware Virtual Ethernet Adapter for VMnet

1

Physical Address. . . . . . . . . : 00-50-56-C0-00-01

DHCP Enabled. . . . . . . . . . . : Yes

Autoconfiguration Enabled . . . . : Yes

Link-local IPv6 Address . . . . . : fe80::44e2:feee:e86f:b161%29(Preferred)

IPv4 Address. . . . . . . . . . . : 192.168.163.1(Preferred)

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

Lease Obtained. . . . . . . . . . : 30 September 2009 21:44:46

Lease Expires . . . . . . . . . . : 30 September 2009 23:29:47

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

DHCP Server . . . . . . . . . . . : 192.168.163.254

DHCPv6 IAID . . . . . . . . . . . : 637554774

DHCPv6 Client DUID. . . . . . . . : 00-01-00-01-12-41-81-B6-00-16-17-50-89-11

DNS Servers . . . . . . . . . . . : fec0:0:0:ffff::1%1

fec0:0:0:ffff::2%1

fec0:0:0:ffff::3%1

NetBIOS over Tcpip. . . . . . . . : Enabled

Ethernet adapter Local Area Connection 3:

Connection-specific DNS Suffix . :

Description . . . . . . . . . . . : VMware Virtual Ethernet Adapter for VMnet

8

Physical Address. . . . . . . . . : 00-50-56-C0-00-08

DHCP Enabled. . . . . . . . . . . : No

Autoconfiguration Enabled . . . . : Yes

Link-local IPv6 Address . . . . . : fe80::f9bf:f2d8:debd:e8ef%30(Preferred)

IPv4 Address. . . . . . . . . . . : 192.168.32.1(Preferred)

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

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

DHCPv6 IAID . . . . . . . . . . . : 654331990

DHCPv6 Client DUID. . . . . . . . : 00-01-00-01-12-41-81-B6-00-16-17-50-89-11

DNS Servers . . . . . . . . . . . : fec0:0:0:ffff::1%1

fec0:0:0:ffff::2%1

fec0:0:0:ffff::3%1

NetBIOS over Tcpip. . . . . . . . : Enabled

Tunnel adapter isatap.{52B2FDF1-413B-48E5-90E1-DBC08268DE82}:

Media State . . . . . . . . . . . : Media disconnected

Connection-specific DNS Suffix . :

Description . . . . . . . . . . . : Microsoft ISATAP Adapter

Physical Address. . . . . . . . . : 00-00-00-00-00-00-00-E0

DHCP Enabled. . . . . . . . . . . : No

Autoconfiguration Enabled . . . . : Yes

Tunnel adapter Teredo Tunneling Pseudo-Interface:

Media State . . . . . . . . . . . : Media disconnected

Connection-specific DNS Suffix . :

Description . . . . . . . . . . . : Teredo Tunneling Pseudo-Interface

Physical Address. . . . . . . . . : 00-00-00-00-00-00-00-E0

DHCP Enabled. . . . . . . . . . . : No

Autoconfiguration Enabled . . . . : Yes

Tunnel adapter isatap.domain_not_set.invalid:

Connection-specific DNS Suffix . : domain_not_set.invalid

Description . . . . . . . . . . . : Microsoft ISATAP Adapter #2

Physical Address. . . . . . . . . : 00-00-00-00-00-00-00-E0

DHCP Enabled. . . . . . . . . . . : No

Autoconfiguration Enabled . . . . : Yes

Link-local IPv6 Address . . . . . : fe80::5efe:192.168.1.101%15(Preferred)

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

DNS Servers . . . . . . . . . . . : 212.139.132.38

212.139.132.39

192.168.1.1

NetBIOS over Tcpip. . . . . . . . : Disabled

Tunnel adapter isatap.{F8D5D918-3482-4683-AF23-FD3B9DC5BD27}:

Media State . . . . . . . . . . . : Media disconnected

Connection-specific DNS Suffix . :

Description . . . . . . . . . . . : Microsoft ISATAP Adapter #3

Physical Address. . . . . . . . . : 00-00-00-00-00-00-00-E0

DHCP Enabled. . . . . . . . . . . : No

Autoconfiguration Enabled . . . . : Yes

Tunnel adapter isatap.{D2736766-59CC-401D-AD7C-3D18F42AB389}:

Media State . . . . . . . . . . . : Media disconnected

Connection-specific DNS Suffix . :

Description . . . . . . . . . . . : Microsoft ISATAP Adapter #4

Physical Address. . . . . . . . . : 00-00-00-00-00-00-00-E0

DHCP Enabled. . . . . . . . . . . : No

Autoconfiguration Enabled . . . . : Yes

Tunnel adapter isatap.{F76ED3B9-47E2-463D-BD1A-BC6E8C1D9583}:

Media State . . . . . . . . . . . : Media disconnected

Connection-specific DNS Suffix . :

Description . . . . . . . . . . . : Microsoft ISATAP Adapter #5

Physical Address. . . . . . . . . : 00-00-00-00-00-00-00-E0

DHCP Enabled. . . . . . . . . . . : No

Autoconfiguration Enabled . . . . : Yes

0 Kudos
AWo
Immortal
Immortal

Your host has one active network connections (wireless) and got its IP setup from an DHCP server:

192.168.1.101 in IP network 192.168.1.0/24.

So what do you want to achive exactly? Do you want that your virtual guest is member of a different IP network (different than 192.168.1.0/24) permanently? Or should it be member of various networks depending on the location of your network?

If the first applies, which network should the guest be member of?

If the latter apply just set the guest IP setup to use DHCP (do you know how to do that?).

Another way ist to set the virtual NIC to be NAT. Then the guest becomes a member of the virtual network VMnet8 but it will be able to communicate via all outside connections. It will be hidden to the outside and when you try to connect to the guest from the outside more configuration steps are needed.


AWo

VCP / VMware vEXPERT 2009

      • I rent firewood out ***

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