LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Virtualization and Cloud
User Name
Password
Linux - Virtualization and Cloud This forum is for the discussion of all topics relating to Linux Virtualization and Linux Cloud platforms. Xen, KVM, OpenVZ, VirtualBox, VMware, Linux-VServer and all other Linux Virtualization platforms are welcome. OpenStack, CloudStack, ownCloud, Cloud Foundry, Eucalyptus, Nimbus, OpenNebula and all other Linux Cloud platforms are welcome. Note that questions relating solely to non-Linux OS's should be asked in the General forum.

Notices


Reply
  Search this Thread
Old 07-20-2018, 09:12 AM   #1
ccarminati
LQ Newbie
 
Registered: Apr 2002
Posts: 19

Rep: Reputation: 0
Cant connect or ping host


I have the following issue. Vms in virsh net2 are fine.

Vms in net1 connect everywhere but the host. They can ping and connect to each other including vms in net1. Vms in net2 can only connect to the host using internal ip (192.168.X.X).

Example from the host:

Ping vm internal ip:

ping 192.168.100.134
PING 192.168.100.134 (192.168.100.134) 56(84) bytes of data.
64 bytes from 192.168.100.134: icmp_seq=1 ttl=64 time=0.370 ms
64 bytes from 192.168.100.134: icmp_seq=2 ttl=64 time=0.432 ms
Ping same vm WAN ip:

ping 100.x.x.x
PING 100.x.x.x (100.x.x.x) 56(84) bytes of data.
From 100.x.x.x icmp_seq=1 Destination Host Unreachable
From 100.x.x.x icmp_seq=2 Destination Host Unreachable
ssh vm wan ip:

ssh 100.x.x.x
ssh: connect to host 100.x.x.x port 22: No route to host
In other words, the vm above can connect and receive connections to/from anywhere but the host. I has internet connection and it is able to accept connections from any place other than the host.

I tried UFW disable and got same results, which I assume takes firewall off the issue.
 
Old 07-20-2018, 09:32 AM   #2
jlinkels
LQ Guru
 
Registered: Oct 2003
Location: Bonaire, Leeuwarden
Distribution: Debian /Jessie/Stretch/Sid, Linux Mint DE
Posts: 5,195

Rep: Reputation: 1043Reputation: 1043Reputation: 1043Reputation: 1043Reputation: 1043Reputation: 1043Reputation: 1043Reputation: 1043
You are providing too little and way too sloppy information.

What is the IP of the host?
What is the IP of the VMs
What is net1 and what is net2
How are your NICs configured in the VMs

Quote:
They can ping and connect to each other including vms in net1. Vms in net2 can only connect to the host using internal ip (192.168.X.X).
So it seems there is significance in what is net1 and net2 and where you VMs are located?

Do you think we are waiting for mystery games?

jlinkels
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
ping: unknown host error when trying to connect 32 bit SME Server 8.1 to the internet kjell159 Linux - Server 13 05-20-2014 12:26 AM
guset can ping the host but host can't ping the guest . linuxreza Linux - Newbie 1 07-28-2012 02:47 PM
Forwarding ping packets from one 1st host to 2nd host via 2rd host sachee Linux - Networking 1 09-25-2011 01:51 PM
[SOLVED] no route to host connect socket error..ping and traceroute ok mgard Linux - Kernel 1 01-17-2010 04:32 AM
[SOLVED] Problem Connect to Internet...Ping :Unkown host www.yahoo.com manthena Linux - Newbie 7 01-13-2010 05:17 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Virtualization and Cloud

All times are GMT -5. The time now is 12:56 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration