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?
mokkanAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Andrew Hancock (VMware vExpert / EE Fellow)VMware and Virtualization ConsultantCommented:
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)
mokkanAuthor Commented:
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 / EE Fellow)VMware and Virtualization ConsultantCommented:
no problems.
Your Guide to Achieving IT Business Success

The IT Service Excellence Tool Kit has best practices to keep your clients happy and business booming. Inside, you’ll find everything you need to increase client satisfaction and retention, become more competitive, and increase your overall success.

Michael OrtegaSales & Systems EngineerCommented:
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 / EE Fellow)VMware and Virtualization ConsultantCommented:
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.

http://www.experts-exchange.com/questions/28937105/networking-gateway-quesiton.html#a41533671

How to do it.
Michael OrtegaSales & Systems EngineerCommented:
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
mokkanAuthor Commented:
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.
Andrew Hancock (VMware vExpert / EE Fellow)VMware and Virtualization ConsultantCommented:
Yes, that will work, but if you want to VMs to communicate between subnets with a single nic, you need a router.

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
mokkanAuthor Commented:
thank  you very much
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
VMware

From novice to tech pro — start learning today.