VMware Workstation

 View Only
Expand all | Collapse all

How to connect one LAN Segment to the host network Workstation 7

  • 1.  How to connect one LAN Segment to the host network Workstation 7

    Posted Nov 30, 2009 08:38 PM

    Hi all.

    This may be a really newbie question, but I'm pretty newbie on vmware :smileyhappy:

    I setup a Team in VMWare Workstation 7 with a few virtual machines all assigned to a single Lan Segment. Everything is working fine, but now I need to have access to internet in my virtual machines. How do I do to configure the LAN segment to see my host network so I can ping internet?

    Thanks a lot!



  • 2.  RE: How to connect one LAN Segment to the host network Workstation 7

    Posted Nov 30, 2009 08:50 PM

    Thats not possible.

    Thats why I would recommend NOT to use LAN-segments as it is not trivial to change this.

    Easiest way: add another Nic to the VM that needs Internet connection and assign this Nic as NAT (vmnet8)

    Hard way: open the vmx file of every Team-member and redefine the LAN-segment to use vmnet8 NAT.

    Post a vmx-file if you want to go the hard way






    ___________________________________

    VMX-parameters- VMware-liveCD - VM-Sickbay



  • 3.  RE: How to connect one LAN Segment to the host network Workstation 7

    Posted Nov 30, 2009 08:56 PM
      |   view attached

    Hard way sounds interesting... a way to learn a little bit more:

    Attached the VMX file for one Virtual machine

    Attachment(s)

    vmx
    EM_OTROS.vmx   2 KB 1 version


  • 4.  RE: How to connect one LAN Segment to the host network Workstation 7
    Best Answer

    Posted Nov 30, 2009 09:21 PM

    Ok - see here - I sorted your vmx-file so that all ethernet0 entries appear nicely in a row.

    This is what you have now:

    ethernet0.addressType = "generated"

    ethernet0.connectionType = "pvn"

    ethernet0.generatedAddress = "00:0c:29:c3:36:10"

    ethernet0.generatedAddressOffset = "0"

    ethernet0.pciSlotNumber = "33"

    ethernet0.present = "TRUE"

    ethernet0.pvnID = "52 4c 5e 98 70 6a 82 1b-0f eb 97 5d 76 2e 8a 85"

    ethernet0.virtualDev = "e1000"

    ethernet0.wakeOnPcktRcv = "FALSE"

    Next I list all the parameters you should NOT touch:

    ethernet0.addressType

    ethernet0.generatedAddress

    ethernet0.generatedAddressOffset

    ethernet0.pciSlotNumber

    ethernet0.present

    ethernet0.startConnected

    ethernet0.virtualDev

    ethernet0.wakeOnPcktRcv

    Whatever this settings are - leave them alone - don't change them for this for this task. After this only this two lines are left:

    ethernet0.connectionType = "pvn"

    ethernet0.pvnID = "52 4c 5e 98 70 6a 82 1b-0f eb 97 5d 76 2e 8a 85"

    Those two are the ones that configure the LAN-segment.

    Remove them and replace them with this single line

    ethernet0.connectionType = "nat"

    In case you want to break up the team remove this line

    inVMTeam = "TRUE"

    and delete the *.vmxf file in the same directory.

    For more info about setting up network in the vmx-file read my site

    http://sanbarrow.com/vmx/vmx-network.html




    ___________________________________

    VMX-parameters- VMware-liveCD - VM-Sickbay



  • 5.  RE: How to connect one LAN Segment to the host network Workstation 7

    Posted Nov 30, 2009 09:43 PM

    Thanks Continuum.

    Modified two VMX files and tested.. they are now NATed and see ecah other as is suppose to be.

    What's next to let this two machines see/share my host internet connection? Or it should work just by the fact now ara NAT?



  • 6.  RE: How to connect one LAN Segment to the host network Workstation 7

    Posted Nov 30, 2009 09:58 PM

    should already work unless you disabled the NAT-service.

    Open the Virtual Network Editor - or run vmnetcfg.exe

    This will show current state of the services - post screenshot if you are unsure what to do






    ___________________________________

    VMX-parameters- VMware-liveCD - VM-Sickbay



  • 7.  RE: How to connect one LAN Segment to the host network Workstation 7

    Posted Nov 30, 2009 10:17 PM

    NAT is up and running.

    I'm not a network savvy, but I saw the gateway is set to 192.168.6.2 (See Clipboard01) and my virtual machine has static IP and is not the same family (see Clipboard02).

    Should I change the gateway on the NAT side?



  • 8.  RE: How to connect one LAN Segment to the host network Workstation 7

    Posted Nov 30, 2009 10:44 PM

    nope - NAT service will only work with private networks.

    Your IP starting with 200.200 ... is a public IP - NAT service should not allow this.

    If possible do not use static IPs and rather let the NAT-service assign them.

    Or - use static IP in the range of 192.168.6.10 - 192.168.6.100






    ___________________________________

    VMX-parameters- VMware-liveCD - VM-Sickbay



  • 9.  RE: How to connect one LAN Segment to the host network Workstation 7

    Posted Nov 30, 2009 11:15 PM

    mmm.. interesting..

    The TEAM already has some services and software up and running.. changing the IPs is a major change at this moment..

    What I can try is go back with some snapshots I have (before installing anything and even assigning IPs) and then try set private IPs and see if that works..

    Thanks a lot for your help.... I really appreciate it!!!!!!



  • 10.  RE: How to connect one LAN Segment to the host network Workstation 7

    Posted Nov 30, 2009 11:28 PM

    by the way ... the IP 200.200.8.10 is already used - it is assigned to some behind the bush location in Brazil

    see yourself http://ip-address-lookup-v4.com/lookup.php?ip=200.200.8.10

    You really should not use such IPs for a home/test network




    ___________________________________

    VMX-parameters- VMware-liveCD - VM-Sickbay



  • 11.  RE: How to connect one LAN Segment to the host network Workstation 7

    Posted Nov 30, 2009 11:41 PM

    jejejej

    I will change IPs ranges...