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?
VMwareVirtualizationNetwork Operations

Avatar of undefined
Last Comment
mokkan

8/22/2022 - Mon
Andrew Hancock (VMware vExpert PRO / EE Fellow/British Beekeeper)

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)
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.
Andrew Hancock (VMware vExpert PRO / EE Fellow/British Beekeeper)

no problems.
Your help has saved me hundreds of hours of internet surfing.
fblack61
Michael Ortega

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
Andrew Hancock (VMware vExpert PRO / EE Fellow/British Beekeeper)

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.
Michael Ortega

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
⚡ FREE TRIAL OFFER
Try out a week of full access for free.
Find out why thousands trust the EE community with their toughest problems.
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
Andrew Hancock (VMware vExpert PRO / EE Fellow/British Beekeeper)

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.
mokkan

ASKER
thank  you very much