Neutron node router can not access external gateway

asked 2015-07-16 04:34:34 -0500

Chenziya gravatar image

updated 2015-07-17 00:34:03 -0500

Ranjit gravatar image

Hi,

In neutron node I can not access the external gate way using the config router:

root@network:~# ip netns exec qrouter-15929d62-0e4c-4963-ae52-95f4e81f6097 ping 10.30.180.1
PING 10.30.180.1 (10.30.180.1) 56(84) bytes of data.
From 10.30.180.155 icmp_seq=54 Destination Host Unreachable
From 10.30.180.155 icmp_seq=55 Destination Host Unreachable

Below is my network node config, could some one help me analyze the reason?

--------------------------------------------------

(neutron) net-list
+--------------------------------------+----------+-----------------------------------------------------+
| id                                   | name     | subnets                                             |
+--------------------------------------+----------+-----------------------------------------------------+
| 06ef921b-6d96-4752-a9db-2b0a9569804e | ext-net  | 3138afb6-3d45-4e60-b16c-95b2017ba19a 10.30.180.0/23 |
| ab9f39a5-e3b8-408e-9cab-b1af28ad4e99 | demo-net | b699e013-d292-43ac-bf1a-fc27ea763df1 192.168.1.0/24 |
+--------------------------------------+----------+-----------------------------------------------------+
(neutron) 

root@network:~# ovs-vsctl show
4d639e07-ec0f-4a04-a5ab-ee5f8b316dc8
    Bridge br-int
        fail_mode: secure
        Port int-br-ex
            Interface int-br-ex
                type: patch
                options: {peer=phy-br-ex}
        Port patch-tun
            Interface patch-tun
                type: patch
                options: {peer=patch-int}
        Port br-int
            Interface br-int
                type: internal
        Port "qg-c35ac8df-04"
            tag: 2
            Interface "qg-c35ac8df-04"
                type: internal
        Port "qr-fd8ee042-5d"
            tag: 1
            Interface "qr-fd8ee042-5d"
                type: internal
        Port "tapdb966e5f-41"
            tag: 1
            Interface "tapdb966e5f-41"
                type: internal
    Bridge br-tun
        fail_mode: secure
        Port br-tun
            Interface br-tun
                type: internal
        Port patch-int
            Interface patch-int
                type: patch
                options: {peer=patch-tun}
        Port "gre-0a1eb043"
            Interface "gre-0a1eb043"
                type: gre
                options: {df_default="true", in_key=flow, local_ip="10.30.168.151", out_key=flow, remote_ip="10.30.176.67"}
    Bridge br-ex
        Port "eth0"
            Interface "eth0"
        Port phy-br-ex
            Interface phy-br-ex
                type: patch
                options: {peer=int-br-ex}
        Port br-ex
            Interface br-ex
                type: internal
    ovs_version: "2.3.1"


root@network:~# ifconfig
eth0      Link encap:Ethernet  HWaddr 00:50:56:b2:14:ac  
          inet addr:10.30.181.254  Bcast:10.30.181.255  Mask:255.255.254.0
          inet6 addr: fe80::250:56ff:feb2:14ac/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:3884165 errors:0 dropped:0 overruns:0 frame:0
          TX packets:16720 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:315672252 (315.6 MB)  TX bytes:2288408 (2.2 MB)

eth1      Link encap:Ethernet  HWaddr 00:50:56:b2:01:0a  
          inet addr:10.30.154.193  Bcast:10.30.155.255  Mask:255.255.254.0
          inet6 addr: fe80::250:56ff:feb2:10a/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:21356865 errors:0 dropped:0 overruns:0 frame:0
          TX packets:228546 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:2153044684 (2.1 GB)  TX bytes:49608382 (49.6 MB)

eth2      Link encap:Ethernet  HWaddr 00:50:56:b2:0c:c4  
          inet addr:10.30.168.151  Bcast:10.30.175.255  Mask:255.255.248.0
          inet6 addr: fe80::250:56ff:feb2:cc4/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:15710024 errors:0 dropped:0 overruns:0 frame:0
          TX packets:2225599 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:1351494973 (1.3 GB)  TX bytes:396365420 (396.3 MB)

lo        Link encap:Local Loopback  
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:65536 ...
(more)
edit retag flag offensive close merge delete

Comments

1

Br-ex should come up in ifconfig with IP of eth0, and eth0 shouldn't have IP at all. You cannot be routed outside.

dbaxps gravatar imagedbaxps ( 2015-07-17 01:55:21 -0500 )edit