the VM I can ping the host machine, but can not ping other public IP

asked 2017-08-31 06:22:22 -0600

liaodalin19903 gravatar image

I in a remote Server (I call it host machine) setup the OpenStack Ocata. And in the OpenStack Ocata I created a VM, the VM use the Security Group (named allow ping & ssh), which is created by myself:

image description

Now, I can use my Mac ping the VM. but can not ssh connect to the VM.

And in the VM(it's IP is 192.168.1.4 and floating IP is 103.35.202.3), I can ping 192.168.1.1 and 103.35.202.1(the host machine's public IP), but can not ping google.com or other public IP.

Why? 1. Why in my Mac I can ping the VM but can not ssh to it? 2. Why in the VM I can ping the host machine, but can not ping other public IP?

where is the issue?

edit retag flag offensive close merge delete

Comments

SSH connectivity to your instance: There are too many factors to say anything. Any error message? Is sshd running? Does the OpenStack host accept ssh access to the instance? Trace NW traffic on the interfaces between the MAC and the instance to determine where the SSH packets are refused.

Bernd Bausch gravatar imageBernd Bausch ( 2017-08-31 19:23:06 -0600 )edit

internet connectivity from the instance: Does DNS work? Did you enable SNAT on the router (it's the default)? Also trace traffic.

Bernd Bausch gravatar imageBernd Bausch ( 2017-08-31 19:24:26 -0600 )edit

To identify interfaces where you should trace traffic, the networking guide tells you the underlying network topology.

Bernd Bausch gravatar imageBernd Bausch ( 2017-08-31 19:26:02 -0600 )edit