Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot ping outside world from instance #69

Open
AJNOURI opened this issue Aug 5, 2017 · 1 comment
Open

Cannot ping outside world from instance #69

AJNOURI opened this issue Aug 5, 2017 · 1 comment
Assignees
Labels

Comments

@AJNOURI
Copy link
Owner

AJNOURI commented Aug 5, 2017

  • Devstack is installed to connect public network to physical external network
  • Correct floating IP is assigned to the instance
  • Can connect br-ex from the instance, but not the default gateway of the external network

[root@devstack1 ~]# ip netns exec qdhcp-267ed855-d615-4197-973d-ab843359889f ping 192.168.0.150

PING 192.168.0.150 (192.168.0.150) 56(84) bytes of data.
64 bytes from 192.168.0.150: icmp_seq=1 ttl=63 time=0.140 ms
64 bytes from 192.168.0.150: icmp_seq=2 ttl=63 time=0.108 ms
64 bytes from 192.168.0.150: icmp_seq=3 ttl=63 time=0.100 ms
64 bytes from 192.168.0.150: icmp_seq=4 ttl=63 time=0.116 ms
64 bytes from 192.168.0.150: icmp_seq=5 ttl=63 time=0.065 ms
64 bytes from 192.168.0.150: icmp_seq=6 ttl=63 time=0.088 ms
64 bytes from 192.168.0.150: icmp_seq=7 ttl=63 time=0.094 ms
^C
--- 192.168.0.150 ping statistics ---
7 packets transmitted, 7 received, 0% packet loss, time 6513ms
rtt min/avg/max/mdev = 0.065/0.101/0.140/0.024 ms

selection_0165

@AJNOURI AJNOURI added the neutron label Aug 5, 2017
@AJNOURI AJNOURI self-assigned this Aug 5, 2017
@AJNOURI
Copy link
Owner Author

AJNOURI commented Aug 5, 2017

Openstack host uses NAT (192.168.149.0/24) interface, supposed to be used for Openstack management instead of br-ex interface (192.168.0.150) bridged to external network 192.168.0.0/24:

[root@devstack1 ~]# ip r

default via 192.168.149.2 dev ens36
10.20.20.0/24 dev ens37 proto kernel scope link src 10.20.20.129
169.254.0.0/16 dev ens33 scope link metric 1002
169.254.0.0/16 dev ens36 scope link metric 1003
169.254.0.0/16 dev ens37 scope link metric 1004
169.254.0.0/16 dev br-ex scope link metric 1008
192.168.0.0/24 dev br-ex proto kernel scope link src 192.168.0.150
192.168.149.0/24 dev ens36 proto kernel scope link src 192.168.149.128
[root@devstack1 ~]# ping 192.168.0.254
PING 192.168.0.254 (192.168.0.254) 56(84) bytes of data.
64 bytes from 192.168.0.254: icmp_seq=1 ttl=64 time=3.91 ms
64 bytes from 192.168.0.254: icmp_seq=2 ttl=64 time=0.422 ms
64 bytes from 192.168.0.254: icmp_seq=3 ttl=64 time=0.346 ms
64 bytes from 192.168.0.254: icmp_seq=4 ttl=64 time=0.911 ms
^C
--- 192.168.0.254 ping statistics ---
4 packets transmitted, 4 received, 0% packet loss, time 3004ms
rtt min/avg/max/mdev = 0.346/1.399/3.918/1.470 ms
[root@devstack1 ~]#

---------------------
br-ex is already configured for IP and GW:

cat /etc/sysconfig/network-scripts/ifcfg-br-ex

DEFROUTE="yes"
PEERDNS="yes"
PEERROUTES="yes"
UUID="da67051d-85ca-4841-b877-b9ff16e935a3"
ONBOOT="yes"
DEVICE=br-ex
NAME=br-ex
DEVICETYPE=ovs
OVSBOOTPROTO="none"
TYPE=OVSBridge
OVS_EXTRA="set bridge br-ex fail_mode=standalone"
IPADDR=192.168.0.150
NETMASK=255.255.255.0
GATEWAY=192.168.0.254
DNS1=192.168.0.254

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant