unable to ping gateway with openvswitch qrouter
Posted: 5. May 2014, 21:13
hello. i have a problem about network.
in short i can't ping to gateway on network namespace.
the environment i've setup is like this
virtualbox virsion : 4.3.2(r90405)
host : windows 7 64bit
guest : centos 6.5 64bit (openstack network node - l3 agent running)
using virtualbox as a test bed for openstack, i found really strange thing which isn't happening on vmware workstation.
as you can see below, i can get mac address of gateway, but can't ping it or can't arping it neither.
but pinging to other node which is on the same subnet seems to be working fine (192.168.1.140).
192.168.1.X is gateway of my router, which is on bridged network
on vmware, everything works fine, but only on virtualbox.
i don't know why this is happening, but this is really frustrating problem for cloud users to use virtualbox as testing bed for openstack.
i'm using eth1 as external nic, but it`s on promisc mode. the actual networking is on openvswitch.
in short i can't ping to gateway on network namespace.
the environment i've setup is like this
virtualbox virsion : 4.3.2(r90405)
host : windows 7 64bit
guest : centos 6.5 64bit (openstack network node - l3 agent running)
using virtualbox as a test bed for openstack, i found really strange thing which isn't happening on vmware workstation.
as you can see below, i can get mac address of gateway, but can't ping it or can't arping it neither.
but pinging to other node which is on the same subnet seems to be working fine (192.168.1.140).
192.168.1.X is gateway of my router, which is on bridged network
on vmware, everything works fine, but only on virtualbox.
i don't know why this is happening, but this is really frustrating problem for cloud users to use virtualbox as testing bed for openstack.
Code: Select all
[root@network ~]# ip netns | grep router | xargs -i ip netns exec {} arp -av
controller-external (192.168.1.140) at 08:00:27:bc:37:fb [ether] on qg-a2acd6cd-97
? (192.168.1.1) at 04:8d:38:08:49:ce [ether] on qg-a2acd6cd-97 [b] <== found mac address of gateway[/b]
Entries: 2 Skipped: 0 Found: 2
[root@network ~]#
[root@network ~]# ip netns | grep router | xargs -i ip netns exec {} arping -I qg-a2acd6cd-97 192.168.1.140
sysfs read broadcast value: No such file or directory
falling back to default broadcast value
ARPING 192.168.1.140 from 192.168.1.191 qg-a2acd6cd-97
Unicast reply from 192.168.1.140 [08:00:27:BC:37:FB] 2.104ms [b] <== success on arping to host on the same subnet [/b]
Unicast reply from 192.168.1.140 [08:00:27:BC:37:FB] 5.204ms
Unicast reply from 192.168.1.140 [08:00:27:BC:37:FB] 3.165ms
Unicast reply from 192.168.1.140 [08:00:27:BC:37:FB] 5.058ms
^CSent 4 probes (1 broadcast(s))
Received 4 response(s)
[root@network ~]# ip netns | grep router | xargs -i ip netns exec {} arping -I qg-a2acd6cd-97 192.168.1.1
sysfs read broadcast value: No such file or directory <== [b]failed on arping to gateway : no response [/b]
falling back to default broadcast value
ARPING 192.168.1.1 from 192.168.1.191 qg-a2acd6cd-97
^CSent 68 probes (68 broadcast(s))
Received 0 response(s)
[root@network ~]# ip netns | grep router | xargs -i ip netns exec {} ping 192.168.1.140
PING 192.168.1.140 (192.168.1.140) 56(84) bytes of data.
64 bytes from 192.168.1.140: icmp_seq=1 ttl=64 time=2.36 ms [b] <== success on pinging to host on the same subnet [/b]
64 bytes from 192.168.1.140: icmp_seq=2 ttl=64 time=2.66 ms
64 bytes from 192.168.1.140: icmp_seq=3 ttl=64 time=1.97 ms
64 bytes from 192.168.1.140: icmp_seq=4 ttl=64 time=2.15 ms
64 bytes from 192.168.1.140: icmp_seq=5 ttl=64 time=1.01 ms
^C
--- 192.168.1.140 ping statistics ---
5 packets transmitted, 5 received, 0% packet loss, time 4434ms
rtt min/avg/max/mdev = 1.013/2.035/2.669/0.561 ms
[root@network ~]# ip netns | grep router | xargs -i ip netns exec {} ping 192.168.1.1
PING 192.168.1.1 (192.168.1.1) 56(84) bytes of data.
From 192.168.1.191 icmp_seq=10 Destination Host Unreachable <== [b]failed on pinging to gateway : unreachable [/b]
From 192.168.1.191 icmp_seq=11 Destination Host Unreachable
From 192.168.1.191 icmp_seq=12 Destination Host Unreachable
^C
--- 192.168.1.1 ping statistics ---
13 packets transmitted, 0 received, +3 errors, 100% packet loss, time 12364ms
pipe 3i'm using eth1 as external nic, but it`s on promisc mode. the actual networking is on openvswitch.
Code: Select all
[root@network ~]# ovs-vsctl show
a5cca86d-7738-44ab-b4c3-fa5a9b21a6fc
Bridge br-ex
Port "qg-a2acd6cd-97"
Interface "qg-a2acd6cd-97"
type: internal
Port br-ex
Interface br-ex
type: internal
Port "eth1" [b] <== my external nic[/b]
Interface "eth1"
Bridge br-tun
Port patch-int
Interface patch-int
type: patch
options: {peer=patch-tun}
Port "gre-0a0a0a0f"
Interface "gre-0a0a0a0f"
type: gre
options: {in_key=flow, local_ip="10.10.10.14", out_key=flow, remote_ip="10.10.10.15"}
Port br-tun
Interface br-tun
type: internal
Port "gre-0a0a0a10"
Interface "gre-0a0a0a10"
type: gre
options: {in_key=flow, local_ip="10.10.10.14", out_key=flow, remote_ip="10.10.10.16"}
Bridge br-int
Port patch-tun
Interface patch-tun
type: patch
options: {peer=patch-int}
Port "tap5657b6f0-3f"
tag: 3
Interface "qr-ad9feea5-2d"
type: internal
ovs_version: "1.11.0"