Link to home
Start Free TrialLog in
Avatar of mokkan
mokkan

asked on

Need vmware networking help

Here is the current setup.

1 Nic card connected to  physical host, it has  vswitch0 and connected to all the VMS.  I have 1 VM have public IP address and have no problem accessing to it.

VM1:  It has access to internet
I created 2 NIC cards  on the server and configured,
NIC1=  Public IP address
NIC2=  192.168.0.25

VM2
NIC  :  192.168.0.25

All using Vswitch0,  but I can't ping each other. What am I missng?

Since my  local  IP addresses are in same subnet, I don't the gatway IP address right?
Avatar of Andrew Hancock (VMware vExpert PRO / EE Fellow/British Beekeeper)
Andrew Hancock (VMware vExpert PRO / EE Fellow/British Beekeeper)
Flag of United Kingdom of Great Britain and Northern Ireland image

You need to build 2 (TWO) vSwitches.

vSwitch0, we will call Internal and Local vSwitch.

Create this vSwitch0, with a Virtual Machine Portgroup called e.g Internal LAN (192.168.0.x).

Attach this vSwitch to the Internal LAN physical uplink, network interface in the Host. eg. nic1

vSwitch1, we will call this Public.

Create this vSwitch1, with a Virtual Machine Portgroup called e.g Public LAN (this will server your public internet access).

Attach this vSwitch to the External/Public LAN physical uplink, network interface in the Host. (eg nic2)


In the VM, add two network interfaces, give nic1 internal IP Address 192.168.0.x, and the other IP Address - public IP Address.

Edit the VM Settings, and edit the VM nic interface and select Internal for nic1, and External for nic2.

see my EE Article

Part 14: HOW TO: Configure basic networking on a VMware vSphere Hypervisor 5.1 (ESXi 5.1) Host Server

(valid for all versions of ESXi)
Avatar of mokkan
mokkan

ASKER

THANK  YOU SO MUCH, THIS IS EXACTLY WHAT I WAS LOOKING FOR,  I WILL GO THORUGH AND UPDATE THE POST.

THANKS AGAIN FOR ALL THE INFO.
Correct me if I'm wrong, but even after configuring the network properly in VMWare, the publicly rout-able NIC/IP will still not be able to ping the private LAN/IP directly. This is a general networking principal, nothing that has to do with VMWare specifically.

MO
Since my  local  IP addresses are in same subnet, I don't the gatway IP address right?

Correct.

@mgortega Also correct, but the Asker, does not want to do that, he wants to Connect into, what would be a Management VM, and then connect to the other VMs from that, "jump start" as he calls it.

This is a related question to this, after discussing these issues.

https://www.experts-exchange.com/questions/28937105/networking-gateway-quesiton.html?anchorAnswerId=41533671#a41533671

How to do it.
Ok, I didn't realize there was a related question. Just wanted to make that the askers expectation wasn't that he could successfully communicate between the two subnets without something like a management VM which was connected to both vSwitches. I'll exit now. =)

MO
Avatar of mokkan

ASKER

Thank  you for your help it works. If I want to use different subnet without router, I need to create new network and assign it to interface.
ASKER CERTIFIED SOLUTION
Avatar of Andrew Hancock (VMware vExpert PRO / EE Fellow/British Beekeeper)
Andrew Hancock (VMware vExpert PRO / EE Fellow/British Beekeeper)
Flag of United Kingdom of Great Britain and Northern Ireland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of mokkan

ASKER

thank  you very much