from neutron router to external world not reachable

asked 2018-08-28 10:20:43 -0500

prasa880 gravatar image

Hi, i have installed packstack all in one . i'm not able to ping external world from neutron router but internal network and guest vms everything reachable. here is ovs-vsctl show:

8e6fb7cc-4054-43d6-a3c2-2f75e9e16406

Manager "ptcp:6640:127.0.0.1"
    is_connected: true
Bridge br-ex
    Controller "tcp:127.0.0.1:6633"
        is_connected: true
    fail_mode: secure
    Port br-ex
        Interface br-ex
            type: internal
    Port phy-br-ex
        Interface phy-br-ex
            type: patch
            options: {peer=int-br-ex}
    Port "enp7s0f0"
        Interface "enp7s0f0"
Bridge br-int
    Controller "tcp:127.0.0.1:6633"
        is_connected: true
    fail_mode: secure
    Port "qvo87e1f0cc-02"
        tag: 3
        Interface "qvo87e1f0cc-02"
    Port patch-tun
        Interface patch-tun
            type: patch
            options: {peer=patch-int}
    Port "tap83b48951-07"
        tag: 3
        Interface "tap83b48951-07"
            type: internal
    Port int-br-ex
        Interface int-br-ex
            type: patch
            options: {peer=phy-br-ex}
    Port br-int
        Interface br-int
            type: internal
    Port "qr-4e4b1681-12"
        tag: 3
        Interface "qr-4e4b1681-12"
            type: internal
    Port "qg-b73656c9-12"
        tag: 5
        Interface "qg-b73656c9-12"
            type: internal
    Port "qvo0729512a-ff"
        tag: 3
        Interface "qvo0729512a-ff"
Bridge br-tun
    Controller "tcp:127.0.0.1:6633"
        is_connected: true
    fail_mode: secure
    Port patch-int
        Interface patch-int
            type: patch
            options: {peer=patch-tun}
    Port br-tun
        Interface br-tun
            type: int

*internal network is reachable*

ip netns exec qrouter-7baa78b2-5144-4941-bd1b-f10dfcf9c1a6 ping 192.168.16.1 PING 192.168.16.1 (192.168.16.1) 56(84) bytes of data.

  64 bytes from 192.168.16.1: icmp_seq=1 ttl=64 time=0.044 ms
  64 bytes from 192.168.16.1: icmp_seq=2 ttl=64 time=0.034 ms
  64 bytes from 192.168.16.1: icmp_seq=3 ttl=64 time=0.029 ms

[root@openstack ~]# iptables -t nat -L Chain PREROUTING (policy ACCEPT) target prot opt source destination

        Chain INPUT (policy ACCEPT)
        target     prot opt source               destination          

       Chain OUTPUT (policy ACCEPT)
       target     prot opt source               destination         

     Chain POSTROUTING (policy ACCEPT)
     target     prot opt source               destination         
     MASQUERADE  all  --  172.24.4.0/24        anywhere             /* 000 nat */

is there anything wrong in config

 DEVICE=br-ex
 DEVICETYPE=ovs
 TYPE=OVSBridge
 BOOTPROTO=static
 IPADDR=12.40.244.122 
 NETMASK=255.255.255.192 # your netmask
 GATEWAY=12.40.244.193  # your gateway                  this is a sample ip
 DNS1=8.8.8.8     # your nameserver
 ONBOOT=yes

root@openstack ~]# cat /etc/sysconfig/network-scripts/ifcfg-enp7s0f0

   DEVICE=enp7s0f0 
   TYPE=OVSPort
   DEVICETYPE=ovs 
   OVS_BRIDGE=br-ex
   ONBOOT=yes

really i dont know why router not able to external world

thanks in advance prasanth

edit retag flag offensive close merge delete