Ask Your Question
2

Can't reach instances by floating IPs; can ping router

asked 2017-10-19 10:07:04 -0500

zerorobben gravatar image

Hi,

I have an interesting problem I've not encountered before. I have recently created a new OpenStack environment that is functional in every respect but networking. I can instantiate instances and associate floating IPs, but when I attempt to ping or ssh, I receive no response from the nodes. I can ping the router from my external network.

I have configured my external network as a flat network with network address 10.247.1.0/24 and gateway 10.247.1.1, according to my physical network. I then created a local internal network with address 10.10.0.0/24 and gateway 10.10.0.1. I created a router and added the two networks (10.247.1.5 and 10.10.0.1 as interfaces).

I can ping the router:

$ ping -q -c 3 10.247.1.5
PING 10.247.1.5 (10.247.1.5) 56(84) bytes of data.

--- 10.247.1.5 ping statistics ---
3 packets transmitted, 3 received, 0% packet loss, time 1999ms
rtt min/avg/max/mdev = 0.153/0.171/0.200/0.023 ms

I can also associate floating IPs with my instances. However, I cannot reach the instances themselves:

$ ping -q -c 3 10.247.1.7
PING 10.247.1.7 (10.247.1.7) 56(84) bytes of data.

--- 10.247.1.7 ping statistics ---
3 packets transmitted, 0 received, +3 errors, 100% packet loss, time 2015ms
pipe 3

If I try to add instances to the external network itself, I cannot ping them, which leads me to believe there is some issue with my network configuration.

Is there some configuration file or any more information I could provide that could help with this?

I appreciate any information.

Thanks!

edit retag flag offensive close merge delete

Comments

First thing to check: Does the instance's security group allow ping/ssh. Next, use console to see if the instance has received its fixed IP address. Can you ping the router from the instance. Can you ping external addresses from the instance. Can you ping the fixed IP from the DHCP namespace.

Bernd Bausch gravatar imageBernd Bausch ( 2017-10-21 03:08:32 -0500 )edit

Dear Bernd, when you answer questions, could you please do it with the "Add answer" functionality instead of "Add comment"? That would make it easier to see which questions already got answered. Thanks a lot! David

rabel-b1 gravatar imagerabel-b1 ( 2017-10-27 03:57:23 -0500 )edit

I didn't consider it an answer, as I don't know exactly where the problem is.

Bernd Bausch gravatar imageBernd Bausch ( 2017-10-27 09:18:30 -0500 )edit

2 answers

Sort by » oldest newest most voted
1

answered 2017-12-14 02:23:48 -0500

zlcviobxcio2 gravatar image

Same Problem waiting for solve

basic info: centos 7 x64 eth0: 20.20.15.200 gateway:20.20.15.1 wan eth1: 20.20.15.201 gateway:20.20.15.1 wan flat ipaddresses:20.20.15.210-230 setup guide by Pike install docs,I choosed the provider network at neutron setup step. Then I make eth1 as provider in the conf file.And log into horizon with admin account,select Admin->Network->Networks to create network: <first page=""> Name: outoutoutNet Provider Network Type:flat Physical Network:provider √ Enable Admin State √ Shared √ External Network √ Create Subnet <second page=""> Subnet Name:uuuuco Network Address:20.20.15.0/24 IP Version:IPv4 Gateway IP:20.20.15.1 <third page=""> √ Enable DHCP Allocation Pools:20.20.15.205,20.20.15.210 DNS Name Servers:8.8.8.8 Host Routes:

#

the add a vroute at horizon console connected to outoutoutNet. done And now I create a instance and running it,it could get a ip addr 20.20.15.207.but It cannot ping 20.20.15.1 at all,and other like ping http://www.google.com or other wan ip it doesn't work too.

from outside,I can ping 20.20.15.201,and now this ip belong to br vnic, from ip netns the q-dhcp and q-router couldn't ping 20.20.15.1 too,from instance I cannot ping 20.20.15.200 too It really bother me alot

edit flag offensive delete link more
0

answered 2019-03-07 09:32:47 -0500

Riccardo M. gravatar image

I've the same problem on my lab. here my post https://ask.openstack.org/en/question/119783/no-route-to-instance-ssh-and-ping-no-route-to-host/ (here) May all together we can solve.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower

Stats

Asked: 2017-10-19 10:07:04 -0500

Seen: 248 times

Last updated: Mar 07