Need  vmware  networking help

mokkan
mokkan used Ask the Experts™
on
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?
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
Andrew Hancock (VMware vExpert / EE Fellow)VMware and Virtualization Consultant
Fellow 2018
Expert of the Year 2017

Commented:
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)

Author

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 Consultant
Fellow 2018
Expert of the Year 2017

Commented:
no problems.
Ensure you’re charging the right price for your IT

Do you wonder if your IT business is truly profitable or if you should raise your prices? Learn how to calculate your overhead burden using our free interactive tool and use it to determine the right price for your IT services. Start calculating Now!

Michael OrtegaSales & Systems Engineer

Commented:
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 Consultant
Fellow 2018
Expert of the Year 2017

Commented:
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 Engineer

Commented:
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

Author

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.
VMware and Virtualization Consultant
Fellow 2018
Expert of the Year 2017
Commented:
Yes, that will work, but if you want to VMs to communicate between subnets with a single nic, you need a router.

Author

Commented:
thank  you very much

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial