Solved

vm can't ping gateway, how to set up network in vmware

Posted on 2015-02-04
14
4,816 Views
Last Modified: 2015-02-04
I have just cloned a vm from a production server. I updated the IP address and try to ping the gateway, but failed.

Since it's in a vmware environment, I checked the vmware networking for this host. There are three networks for the vSwitch0, their names are

1. VM Network, without IP range, having VLAN ID of 240

2. vMontion Network, vmk1: 10.50.199.18, having VLAN ID of 999

3. management Network, vmk0:10.50.240.168, having VLAN ID 240.

I would like to put this vm in the first "VM Network" so that I can SSH on it from my primary network. How could I do it?

In the vm, I chose the network "VM Network" for the NIC1, but i still can't ping the gateway, please help.

thanks.
vmware-host-networking-setup.png
0
Comment
Question by:Jason Yu
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 9
  • 5
14 Comments
 
LVL 121
ID: 40589919
The only network available to VMs, is the VM Network, which is a virtual machine network portgroup.

What Default Gateway IP Address are you trying to Ping, and what is the IP Address of the VM ?

So, the IP Address of the VM is in the network 10.50.240.168, and is your default gateway 10.50.240.254 ?

can the VM ping the host, on the same network ?

Are they are firewalls in place, based on Mac Address or IP Address ?

The production server is not on the network at the same time, and the Clone and Production Servers do have different IP Addresses ?
0
 

Author Comment

by:Jason Yu
ID: 40589936
the ip for the vm is 10.50.240.126, the gateway should be 10.50.240.1


very strangly, I got five virtual ips for this NIC. Please see the copy screen.
virutl-ips.png
0
 
LVL 121
ID: 40589944
could you also look at my questions, and go through them and answer.

are you supposed to have 5 virtual IPs ?
0
Microsoft Certification Exam 74-409

Veeam® is happy to provide the Microsoft community with a study guide prepared by MVP and MCT, Orin Thomas. This guide will take you through each of the exam objectives, helping you to prepare for and pass the examination.

 

Author Comment

by:Jason Yu
ID: 40589946
it even can't ping the host's ip.

what does this mean?

I indeed chose the first network for the NIC1.
0
 

Author Comment

by:Jason Yu
ID: 40589949
NO, I am not supposed to have 5 virutal ips. Where can I get the virtual ip settings?
0
 

Author Comment

by:Jason Yu
ID: 40589953
The vm's ip is 10.50.240.126, the host ip is 10.50.240.168, they are on the same network.

I couldn't ping the gateway from the vm.
0
 
LVL 121
ID: 40589958
Okay, well it means, that you networking in the VM is broke.

what is the OS, and how was it cloned ?

was the production server a Virutal Machine?

is this Ubuntu or Centos ?
0
 

Author Comment

by:Jason Yu
ID: 40589961
I am sorry for the confusion of my answers, I was too nervous. let me rephrase all the answers to your question.

What Default Gateway IP Address are you trying to Ping, and what is the IP Address of the VM ?
A: The default gateway is 10.50.240.1 which was defined in /etc/sysconfig/network-scripts/ifcfg-eth0. The IP address for the VM is 10.50.240.126. Another one for the second NIC is 1.2.3.6.


So, the IP Address of the VM is in the network 10.50.240.168, and is your default gateway 10.50.240.254 ?
See above, the 10.50.240.168 is the ip of the host. default gateway is 10.50.240.1.


can the VM ping the host, on the same network ?

No, it can't.

Are they are firewalls in place, based on Mac Address or IP Address ?
there is no firewall running. iptables service is off.

The production server is not on the network at the same time, and the Clone and Production Servers do have different IP Addresses ?


No, they are on different network now, the production server has been removed. Only the cloned vm holds this ip.
0
 

Author Comment

by:Jason Yu
ID: 40589963
Okay, well it means, that you networking in the VM is broke.

what is the OS, and how was it cloned ?
It is a red hat enterprise linux 6.5. It was cloned from another virtual machine in vmware. I used the default clone tool to do it.

was the production server a Virutal Machine?
Yes, it is.

is this Ubuntu or Centos ?

RHEL 6.5
0
 

Author Comment

by:Jason Yu
ID: 40589975
In the networking configuration on the host. For "VM Network" it doesn't show the IP for this network, which is different from the other two networks "vMotionNetwork" and "ManagementNetwork", is it the problem?

would you please take a look at the picture?
host-networking-config-2.png
0
 
LVL 121

Accepted Solution

by:
Andrew Hancock (VMware vExpert / EE MVE^2) earned 500 total points
ID: 40589985
In the networking configuration on the host. For "VM Network" it doesn't show the IP for this network, which is different from the other two networks "vMotionNetwork" and "ManagementNetwork", is it the problem?

Not a problem, VM Network Portgroups do not have an IP Address, because traffic just flows through the network to the VM which have an IP Address.

VMKernel Portgroups e.g. Vmotion and Management networks, are different and need an IP Address, because they have a MAC Address ID! Device!

okay, there is a known fault when cloning Linux Machines

see here

http://kb.vmware.com/selfservice/microsites/search.do?language=en_US&cmd=displayKC&externalId=2002767
0
 

Author Comment

by:Jason Yu
ID: 40590027
That's wonderful, it's working now after I modify the MAC address.

You are a genius!!!

IT's so helpful for get your timely help!
0
 

Author Closing Comment

by:Jason Yu
ID: 40590028
He is a real expert!
0
 
LVL 121
ID: 40590037
Thanks for your kinds words!
0

Featured Post

Back Up Your Microsoft Windows Server®

Back up all your Microsoft Windows Server – on-premises, in remote locations, in private and hybrid clouds. Your entire Windows Server will be backed up in one easy step with patented, block-level disk imaging. We achieve RTOs (recovery time objectives) as low as 15 seconds.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In this article, I will show you HOW TO: Install VMware Tools for Windows on a VMware Windows virtual machine on a VMware vSphere Hypervisor 6.5 (ESXi 6.5) Host Server, using the VMware Host Client. The virtual machine has Windows Server 2016 instal…
In this article we will learn how to backup a VMware farm using Nakivo Backup & Replication. In this tutorial we will install the software on a Windows 2012 R2 Server.
After creating this article (http://www.experts-exchange.com/articles/23699/Setup-Mikrotik-routers-with-OSPF.html), I decided to make a video (no audio) to show you how to configure the routers and run some trace routes and pings between the 7 sites…
In this brief tutorial Pawel from AdRem Software explains how you can quickly find out which services are running on your network, or what are the IP addresses of servers responsible for each service. Software used is freeware NetCrunch Tools (https…

705 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question