[Tutorial] Mac Internet Access for your CC3 / CC4 VMWare Net

No, these are not photoshop tutorials!

Moderators: Community Moderators, Tutorial Writers

Cory
Tutorial Writer
Posts: 29
Joined: Wed Jan 28, 2009 6:26 am

[Tutorial] Mac Internet Access for your CC3 / CC4 VMWare Net

Postby Cory » Sun Aug 03, 2014 7:39 pm

Hi all,

Please be aware that this is ONLY for people who are using Mac's to host their VMAware stuff... The Windows Host stuff is fairly simple through bridging.. as I am sure you all know!

I'm probably the one in this forum who uses a mac, but in case anyone does!

Mac Running

VMWare Fusion 5.0 and Static IP’s for Windows AD and Client Machines

Here’s the problem. You have a two Windows VM’w (one of them an AD, another a server that uses the first as its Active Directory). You want these two VM’s to remain in synch, and they both must see each other on the local, virtual network, but you also want them both to be able to reach the shared internet connection used by your Mac). What now? You main challenge is ensuring that the Windows Server that isn’t the Active Directory (AD) won’t have name resolution issues.

Core Question: How can two servers on a private network both share the host internet access AND always see each other, particularly when one of those client machines is both an Active Directory (AD) as well as DNS server for the private network???

STEP 1

Check the file dhcpd.conf in Library/Preferences/VMware Fusion/vmnet8. Find the following information:

subnet 172.16.165.0 netmask 255.255.255.0 {
range 172.16.165.128 172.16.165.254;
option broadcast-address 172.16.165.255;
option domain-name-servers 172.16.165.2;
option domain-name localdomain;
default-lease-time 1800; # default is 30 minutes
max-lease-time 7200; # default is 2 hours
option netbios-name-servers 172.16.165.2;
option routers 172.16.165.2;
}

Note that this VMware 5 instance is using 172.16.165.X as the private VLAN for VM’s.

This means that any address where X is between 3 and 127 can be used as static addresses for one or many VM’s. Meanwhile, your gateway should be 172.16.165.2, as this is the routing address.

NOTE: Your VM may use a different range of address, in which case replace 172.16.165 with your own address.

STEP 2

Take VM #1 (your AD server), set the VMware Network Adapter to “Share with My Mac” (which is NAT, essentially). Configure the network settings as so.

IP:172.16.165.10
Mask: 255.255.255.0
Gateway:172.16.165.2
DNS Server: 127.0.0.1

Step 3 – Take VM#2 (your server that will access the AD server), set the VMware Network Adapter to “Share with My Mac” (which is NAT, essentially). Configure the network settings as so.

IP:172.16.165.11
Mask: 255.255.255.0
Gateway:172.16.165.2
DNS Server: 172.16.165.10 (note that we use the AD server as the DNS server).

This allows VM#2 to use the AD server for authentication and any DNS within your private network. This allows VM#1 to act as both DNS and AD locally, but passes through any other requests to the host system.

So, since you are now using static IP’s, when you VM’s startup, they can always find each other…. good news!

User avatar
phiber
Site Admin
Posts: 260
Joined: Sun Oct 13, 2002 11:26 pm
Location: Cakovec, Croatia

Re: [Tutorial] Mac Internet Access for your CC3 / CC4 VMWare

Postby phiber » Mon Aug 04, 2014 10:32 pm

kudos Cory!
---
'I've got more IP's in /etc/hosts than i have friends on Facebook'

Nikola Strahija, Xatrix Security
http://www.xatrix.org


Return to “Tutorials”

Who is online

Users browsing this forum: No registered users and 1 guest