Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

qrouter can't ping external gateway

root@network:/etc/neutron# ip netns exec qrouter-1b811a4e-858a-43c7-a1a0-351293670195 ifconfig

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 Metric:1 RX packets:759 errors:0 dropped:0 overruns:0 frame:0 TX packets:759 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:67488 (67.4 KB) TX bytes:67488 (67.4 KB)

qg-77d9ae55-25 Link encap:Ethernet HWaddr fa:16:3e:60:27:d4 inet addr:16.157.128.85 Bcast:16.157.255.255 Mask:255.255.0.0 inet6 addr: fe80::f816:3eff:fe60:27d4/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:40517 errors:0 dropped:211 overruns:0 frame:0 TX packets:663 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:3850306 (3.8 MB) TX bytes:28542 (28.5 KB)

qr-314ac6df-db Link encap:Ethernet HWaddr fa:16:3e:33:84:d8 inet addr:192.168.1.1 Bcast:192.168.255.255 Mask:255.255.0.0 inet6 addr: fe80::f816:3eff:fe33:84d8/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:6 errors:0 dropped:0 overruns:0 frame:0 TX packets:10 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:480 (480.0 B) TX bytes:864 (864.0 B)

root@network:/etc/neutron# ip netns exec qrouter-1b811a4e-858a-43c7-a1a0-351293670195 route -n Kernel IP routing table Destination Gateway Genmask Flags Metric Ref Use Iface 0.0.0.0 16.157.128.1 0.0.0.0 UG 0 0 0 qg-77d9ae55-25 16.157.0.0 0.0.0.0 255.255.0.0 U 0 0 0 qg-77d9ae55-25 192.168.0.0 0.0.0.0 255.255.0.0 U 0 0 0 qr-314ac6df-db

root@network:/etc/neutron# ip netns exec qrouter-1b811a4e-858a-43c7-a1a0-351293670195 ping 16.157.128.1


PING 16.157.128.1 (16.157.128.1) 56(84) bytes of data.
From 16.157.128.85 icmp_seq=1 Destination Host Unreachable
From 16.157.128.85 icmp_seq=2 Destination Host Unreachable
From 16.157.128.85 icmp_seq=3 Destination Host Unreachable
^C
--- 16.157.128.1 ping statistics ---
6 packets transmitted, 0 received, +3 errors, 100% packet loss, time 5031ms

root@network:/etc/neutron# ping 16.157.128.1


PING 16.157.128.1 (16.157.128.1) 56(84) bytes of data.
64 bytes from 16.157.128.1: icmp_seq=1 ttl=255 time=0.699 ms
64 bytes from 16.157.128.1: icmp_seq=2 ttl=255 time=0.574 ms
64 bytes from 16.157.128.1: icmp_seq=3 ttl=255 time=0.913 ms
^C
--- 16.157.128.1 ping statistics ---
3 packets transmitted, 3 received, 0% packet loss, time 1999ms
rtt min/avg/max/mdev = 0.574/0.728/0.913/0.143 ms

qrouter can't ping external gateway

root@network:/etc/neutron# ip netns exec qrouter-1b811a4e-858a-43c7-a1a0-351293670195 ifconfig

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 Metric:1 RX packets:759 errors:0 dropped:0 overruns:0 frame:0 TX packets:759 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:67488 (67.4 KB) TX bytes:67488 (67.4 KB)

qg-77d9ae55-25 Link encap:Ethernet HWaddr fa:16:3e:60:27:d4 inet addr:16.157.128.85 Bcast:16.157.255.255 Mask:255.255.0.0 inet6 addr: fe80::f816:3eff:fe60:27d4/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:40517 errors:0 dropped:211 overruns:0 frame:0 TX packets:663 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:3850306 (3.8 MB) TX bytes:28542 (28.5 KB)

qr-314ac6df-db Link encap:Ethernet HWaddr fa:16:3e:33:84:d8 inet addr:192.168.1.1 Bcast:192.168.255.255 Mask:255.255.0.0 inet6 addr: fe80::f816:3eff:fe33:84d8/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:6 errors:0 dropped:0 overruns:0 frame:0 TX packets:10 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:480 (480.0 B) TX bytes:864 (864.0 B)

root@network:/etc/neutron# ip netns exec qrouter-1b811a4e-858a-43c7-a1a0-351293670195 route -n


Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
0.0.0.0         16.157.128.1    0.0.0.0         UG    0      0        0 qg-77d9ae55-25
16.157.0.0      0.0.0.0         255.255.0.0     U     0      0        0 qg-77d9ae55-25
192.168.0.0     0.0.0.0         255.255.0.0     U     0      0        0 qr-314ac6df-db

root@network:/etc/neutron# ip netns exec qrouter-1b811a4e-858a-43c7-a1a0-351293670195 ping 16.157.128.1


PING 16.157.128.1 (16.157.128.1) 56(84) bytes of data.
From 16.157.128.85 icmp_seq=1 Destination Host Unreachable
From 16.157.128.85 icmp_seq=2 Destination Host Unreachable
From 16.157.128.85 icmp_seq=3 Destination Host Unreachable
^C
--- 16.157.128.1 ping statistics ---
6 packets transmitted, 0 received, +3 errors, 100% packet loss, time 5031ms

root@network:/etc/neutron# ping 16.157.128.1


PING 16.157.128.1 (16.157.128.1) 56(84) bytes of data.
64 bytes from 16.157.128.1: icmp_seq=1 ttl=255 time=0.699 ms
64 bytes from 16.157.128.1: icmp_seq=2 ttl=255 time=0.574 ms
64 bytes from 16.157.128.1: icmp_seq=3 ttl=255 time=0.913 ms
^C
--- 16.157.128.1 ping statistics ---
3 packets transmitted, 3 received, 0% packet loss, time 1999ms
rtt min/avg/max/mdev = 0.574/0.728/0.913/0.143 ms

qrouter can't ping external gateway

root@network:/etc/neutron# ip netns exec qrouter-1b811a4e-858a-43c7-a1a0-351293670195 ifconfig

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 Metric:1 RX packets:759 errors:0 dropped:0 overruns:0 frame:0 TX packets:759 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:67488 (67.4 KB) TX bytes:67488 (67.4 KB)

qg-77d9ae55-25 Link encap:Ethernet HWaddr fa:16:3e:60:27:d4 inet addr:16.157.128.85 Bcast:16.157.255.255 Mask:255.255.0.0 inet6 addr: fe80::f816:3eff:fe60:27d4/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:40517 errors:0 dropped:211 overruns:0 frame:0 TX packets:663 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:3850306 (3.8 MB) TX bytes:28542 (28.5 KB)

qr-314ac6df-db Link encap:Ethernet HWaddr fa:16:3e:33:84:d8 inet addr:192.168.1.1 Bcast:192.168.255.255 Mask:255.255.0.0 inet6 addr: fe80::f816:3eff:fe33:84d8/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:6 errors:0 dropped:0 overruns:0 frame:0 TX packets:10 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:480 (480.0 B) TX bytes:864 (864.0 B)

root@network:/etc/neutron# ip netns exec qrouter-1b811a4e-858a-43c7-a1a0-351293670195 route -n


Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
0.0.0.0         16.157.128.1    0.0.0.0         UG    0      0        0 qg-77d9ae55-25
16.157.0.0      0.0.0.0         255.255.0.0     U     0      0        0 qg-77d9ae55-25
192.168.0.0     0.0.0.0         255.255.0.0     U     0      0        0 qr-314ac6df-db

root@network:/etc/neutron# ip netns exec qrouter-1b811a4e-858a-43c7-a1a0-351293670195 ping 16.157.128.1


PING 16.157.128.1 (16.157.128.1) 56(84) bytes of data.
From 16.157.128.85 icmp_seq=1 Destination Host Unreachable
From 16.157.128.85 icmp_seq=2 Destination Host Unreachable
From 16.157.128.85 icmp_seq=3 Destination Host Unreachable
^C
--- 16.157.128.1 ping statistics ---
6 packets transmitted, 0 received, +3 errors, 100% packet loss, time 5031ms

root@network:/etc/neutron# ping 16.157.128.1


PING 16.157.128.1 (16.157.128.1) 56(84) bytes of data.
64 bytes from 16.157.128.1: icmp_seq=1 ttl=255 time=0.699 ms
64 bytes from 16.157.128.1: icmp_seq=2 ttl=255 time=0.574 ms
64 bytes from 16.157.128.1: icmp_seq=3 ttl=255 time=0.913 ms
^C
--- 16.157.128.1 ping statistics ---
3 packets transmitted, 3 received, 0% packet loss, time 1999ms
rtt min/avg/max/mdev = 0.574/0.728/0.913/0.143 ms

soauser@controller:~$ neutron net-list


+--------------------------------------+----------+-----------------------------------------------------+
| id                                   | name     | subnets                                             |
+--------------------------------------+----------+-----------------------------------------------------+
| 055be3b8-6db7-42d1-aa93-3c94159bd3ba | demo-net | f78b30b5-d723-4a14-a464-8254942ee816 192.168.0.0/16 |
| 1379c63f-002c-48af-8485-9852f6de2145 | ext-net  | 0b60c8ac-1340-4620-9322-60bee5aaacce 16.157.0.0/16  |
+--------------------------------------+----------+-----------------------------------------------------+
soauser@controller:~$ neutron net-show ext-net
+---------------------------+--------------------------------------+
| Field                     | Value                                |
+---------------------------+--------------------------------------+
| admin_state_up            | True                                 |
| id                        | 1379c63f-002c-48af-8485-9852f6de2145 |
| mtu                       | 0                                    |
| name                      | ext-net                              |
| provider:network_type     | flat                                 |
| provider:physical_network | external                             |
| provider:segmentation_id  |                                      |
| router:external           | True                                 |
| shared                    | False                                |
| status                    | ACTIVE                               |
| subnets                   | 0b60c8ac-1340-4620-9322-60bee5aaacce |
| tenant_id                 | 61fb8056916941c6bb19ef1a0f1109c0     |
+---------------------------+--------------------------------------+

qrouter can't ping external gateway

root@network:/etc/neutron# ip netns exec qrouter-1b811a4e-858a-43c7-a1a0-351293670195 ifconfig

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 Metric:1 RX packets:759 errors:0 dropped:0 overruns:0 frame:0 TX packets:759 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:67488 (67.4 KB) TX bytes:67488 (67.4 KB)

qg-77d9ae55-25 Link encap:Ethernet HWaddr fa:16:3e:60:27:d4 inet addr:16.157.128.85 Bcast:16.157.255.255 Mask:255.255.0.0 inet6 addr: fe80::f816:3eff:fe60:27d4/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:40517 errors:0 dropped:211 overruns:0 frame:0 TX packets:663 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:3850306 (3.8 MB) TX bytes:28542 (28.5 KB)

qr-314ac6df-db Link encap:Ethernet HWaddr fa:16:3e:33:84:d8 inet addr:192.168.1.1 Bcast:192.168.255.255 Mask:255.255.0.0 inet6 addr: fe80::f816:3eff:fe33:84d8/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:6 errors:0 dropped:0 overruns:0 frame:0 TX packets:10 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:480 (480.0 B) TX bytes:864 (864.0 B)

root@network:/etc/neutron# ip netns exec qrouter-1b811a4e-858a-43c7-a1a0-351293670195 route -n


Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
0.0.0.0         16.157.128.1    0.0.0.0         UG    0      0        0 qg-77d9ae55-25
16.157.0.0      0.0.0.0         255.255.0.0     U     0      0        0 qg-77d9ae55-25
192.168.0.0     0.0.0.0         255.255.0.0     U     0      0        0 qr-314ac6df-db

root@network:/etc/neutron# ip netns exec qrouter-1b811a4e-858a-43c7-a1a0-351293670195 ping 16.157.128.1


PING 16.157.128.1 (16.157.128.1) 56(84) bytes of data.
From 16.157.128.85 icmp_seq=1 Destination Host Unreachable
From 16.157.128.85 icmp_seq=2 Destination Host Unreachable
From 16.157.128.85 icmp_seq=3 Destination Host Unreachable
^C
--- 16.157.128.1 ping statistics ---
6 packets transmitted, 0 received, +3 errors, 100% packet loss, time 5031ms

root@network:/etc/neutron# ping 16.157.128.1


PING 16.157.128.1 (16.157.128.1) 56(84) bytes of data.
64 bytes from 16.157.128.1: icmp_seq=1 ttl=255 time=0.699 ms
64 bytes from 16.157.128.1: icmp_seq=2 ttl=255 time=0.574 ms
64 bytes from 16.157.128.1: icmp_seq=3 ttl=255 time=0.913 ms
^C
--- 16.157.128.1 ping statistics ---
3 packets transmitted, 3 received, 0% packet loss, time 1999ms
rtt min/avg/max/mdev = 0.574/0.728/0.913/0.143 ms

soauser@controller:~$ neutron net-list


+--------------------------------------+----------+-----------------------------------------------------+
| id                                   | name     | subnets                                             |
+--------------------------------------+----------+-----------------------------------------------------+
| 055be3b8-6db7-42d1-aa93-3c94159bd3ba | demo-net | f78b30b5-d723-4a14-a464-8254942ee816 192.168.0.0/16 |
| 1379c63f-002c-48af-8485-9852f6de2145 | ext-net  | 0b60c8ac-1340-4620-9322-60bee5aaacce 16.157.0.0/16  |
+--------------------------------------+----------+-----------------------------------------------------+
soauser@controller:~$ neutron net-show ext-net
+---------------------------+--------------------------------------+
| Field                     | Value                                |
+---------------------------+--------------------------------------+
| admin_state_up            | True                                 |
| id                        | 1379c63f-002c-48af-8485-9852f6de2145 |
| mtu                       | 0                                    |
| name                      | ext-net                              |
| provider:network_type     | flat                                 |
| provider:physical_network | external                             |
| provider:segmentation_id  |                                      |
| router:external           | True                                 |
| shared                    | False                                |
| status                    | ACTIVE                               |
| subnets                   | 0b60c8ac-1340-4620-9322-60bee5aaacce |
| tenant_id                 | 61fb8056916941c6bb19ef1a0f1109c0     |
+---------------------------+--------------------------------------+

root@network:/var/log/neutron# ip a |grep eth0


2: eth0: <broadcast,multicast,promisc,up,lower_up> mtu 1500 qdisc mq master ovs-system state UP group default qlen 1000
root@network:/var/log/neutron# ovs-vsctl show
6786d85c-0346-48b1-9f38-2d1e0869a189
    Bridge br-ex
        Port phy-br-ex
            Interface phy-br-ex
                type: patch
                options: {peer=int-br-ex}
        Port "eth0"
            Interface "eth0"
        Port "qg-77d9ae55-25"
            Interface "qg-77d9ae55-25"
                type: internal
        Port br-ex
            Interface br-ex
                type: internal

qrouter can't ping external gateway

root@network:/etc/neutron# ip netns exec qrouter-1b811a4e-858a-43c7-a1a0-351293670195 ifconfig

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 Metric:1 RX packets:759 errors:0 dropped:0 overruns:0 frame:0 TX packets:759 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:67488 (67.4 KB) TX bytes:67488 (67.4 KB)

qg-77d9ae55-25 Link encap:Ethernet HWaddr fa:16:3e:60:27:d4 inet addr:16.157.128.85 Bcast:16.157.255.255 Mask:255.255.0.0 inet6 addr: fe80::f816:3eff:fe60:27d4/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:40517 errors:0 dropped:211 overruns:0 frame:0 TX packets:663 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:3850306 (3.8 MB) TX bytes:28542 (28.5 KB)

qr-314ac6df-db Link encap:Ethernet HWaddr fa:16:3e:33:84:d8 inet addr:192.168.1.1 Bcast:192.168.255.255 Mask:255.255.0.0 inet6 addr: fe80::f816:3eff:fe33:84d8/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:6 errors:0 dropped:0 overruns:0 frame:0 TX packets:10 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:480 (480.0 B) TX bytes:864 (864.0 B)

root@network:/etc/neutron# ip netns exec qrouter-1b811a4e-858a-43c7-a1a0-351293670195 route -n


Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
0.0.0.0         16.157.128.1    0.0.0.0         UG    0      0        0 qg-77d9ae55-25
16.157.0.0      0.0.0.0         255.255.0.0     U     0      0        0 qg-77d9ae55-25
192.168.0.0     0.0.0.0         255.255.0.0     U     0      0        0 qr-314ac6df-db

root@network:/etc/neutron# ip netns exec qrouter-1b811a4e-858a-43c7-a1a0-351293670195 ping 16.157.128.1


PING 16.157.128.1 (16.157.128.1) 56(84) bytes of data.
From 16.157.128.85 icmp_seq=1 Destination Host Unreachable
From 16.157.128.85 icmp_seq=2 Destination Host Unreachable
From 16.157.128.85 icmp_seq=3 Destination Host Unreachable
^C
--- 16.157.128.1 ping statistics ---
6 packets transmitted, 0 received, +3 errors, 100% packet loss, time 5031ms

root@network:/etc/neutron# ping 16.157.128.1


PING 16.157.128.1 (16.157.128.1) 56(84) bytes of data.
64 bytes from 16.157.128.1: icmp_seq=1 ttl=255 time=0.699 ms
64 bytes from 16.157.128.1: icmp_seq=2 ttl=255 time=0.574 ms
64 bytes from 16.157.128.1: icmp_seq=3 ttl=255 time=0.913 ms
^C
--- 16.157.128.1 ping statistics ---
3 packets transmitted, 3 received, 0% packet loss, time 1999ms
rtt min/avg/max/mdev = 0.574/0.728/0.913/0.143 ms

soauser@controller:~$ neutron net-list


+--------------------------------------+----------+-----------------------------------------------------+
| id                                   | name     | subnets                                             |
+--------------------------------------+----------+-----------------------------------------------------+
| 055be3b8-6db7-42d1-aa93-3c94159bd3ba | demo-net | f78b30b5-d723-4a14-a464-8254942ee816 192.168.0.0/16 |
| 1379c63f-002c-48af-8485-9852f6de2145 | ext-net  | 0b60c8ac-1340-4620-9322-60bee5aaacce 16.157.0.0/16  |
+--------------------------------------+----------+-----------------------------------------------------+
soauser@controller:~$ neutron net-show ext-net
+---------------------------+--------------------------------------+
| Field                     | Value                                |
+---------------------------+--------------------------------------+
| admin_state_up            | True                                 |
| id                        | 1379c63f-002c-48af-8485-9852f6de2145 |
| mtu                       | 0                                    |
| name                      | ext-net                              |
| provider:network_type     | flat                                 |
| provider:physical_network | external                             |
| provider:segmentation_id  |                                      |
| router:external           | True                                 |
| shared                    | False                                |
| status                    | ACTIVE                               |
| subnets                   | 0b60c8ac-1340-4620-9322-60bee5aaacce |
| tenant_id                 | 61fb8056916941c6bb19ef1a0f1109c0     |
+---------------------------+--------------------------------------+

root@network:/var/log/neutron# ip a |grep eth0


2: eth0: <broadcast,multicast,promisc,up,lower_up> mtu 1500 qdisc mq master ovs-system state UP group default qlen 1000
root@network:/var/log/neutron# ovs-vsctl show
 6786d85c-0346-48b1-9f38-2d1e0869a189
    Bridge br-ex
        Port phy-br-ex
            Interface phy-br-ex
                type: patch
                options: {peer=int-br-ex}
        Port "eth0"
            Interface "eth0"
        Port "qg-77d9ae55-25"
            Interface "qg-77d9ae55-25"
                type: internal
        Port br-ex
            Interface br-ex
                type: internal