[ovs-discuss] traffic not passed to eth1 NIC access port
Ronald van der Pol
Ronald.vanderPol at rvdp.org
Fri Jan 3 13:52:01 UTC 2014
I am stuck with debugging the situation below. What other debugging
can I try?
I have a server (helium) with ovs and eth1 and a VM. Eth1 is
connected to an Ethernet switch access port, which is connected
to another server (serverB). I am trying to ping between serverB
and the VM, through the external switch.
+----------------+
+ helium | eth1 +--------+ +---------+
+ VM --- ovs ---+ ------ + switch + --- + serverB +
+----------------+ +--------+ +---------+
10.10.10.2 10.10.10.1
(eth1 on VM) 00:60:dd:46:13:ae
The VM runs in an openstack environment and has 10.10.10.2/24
on its eth1. When pinging 10.10.10.2 from serverB I see
requests comming in on the VM and replies going out.
But I see no packets going out on eth1 of helium.
On the VM:
[root at host-10-0-1-3 ~]# tshark -n -i eth1 -c 4
Running as user "root" and group "root". This could be dangerous.
Capturing on 'eth1'
1 0.000000 10.10.10.1 -> 10.10.10.2 ICMP 98 Echo (ping) request id=0x7c38, seq=2496/49161, ttl=64
2 0.000057 10.10.10.2 -> 10.10.10.1 ICMP 98 Echo (ping) reply id=0x7c38, seq=2496/49161, ttl=64 (request in 1)
2 3 1.007903 10.10.10.1 -> 10.10.10.2 ICMP 98 Echo (ping) request id=0x7c38, seq=2497/49417, ttl=64
4 1.007959 10.10.10.2 -> 10.10.10.1 ICMP 98 Echo (ping) reply id=0x7c38, seq=2497/49417, ttl=64 (request in 3)
4
[root at host-10-0-1-3 ~]#
On helium:
root at helium:~# tshark -n -i eth1 -c 3
tshark: Lua: Error during loading:
[string "/usr/share/wireshark/init.lua"]:45: dofile has been disabled
Running as user "root" and group "root". This could be dangerous.
Capturing on eth1
0.000000 10.10.10.1 -> 10.10.10.2 ICMP 98 Echo (ping) request id=0x7c38, seq=2565/1290, ttl=64
1.007866 10.10.10.1 -> 10.10.10.2 ICMP 98 Echo (ping) request id=0x7c38, seq=2566/1546, ttl=64
2.015667 10.10.10.1 -> 10.10.10.2 ICMP 98 Echo (ping) request id=0x7c38, seq=2567/1802, ttl=64
3 packets captured
root at helium:~#
Details of helium and its ovs:
root at helium:~# ifconfig eth1
eth1 Link encap:Ethernet HWaddr 00:60:dd:46:13:84
inet6 addr: fe80::260:ddff:fe46:1384/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:9000 Metric:1
RX packets:14404 errors:0 dropped:0 overruns:0 frame:0
TX packets:3350 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:1137245 (1.1 MB) TX bytes:217004 (217.0 KB)
root at helium:~#
(no vconfig interfaces on eth1)
--------------------------------------------------------------------
root at helium:~# ovs-vsctl show
f391b8f0-5c91-431e-ae9c-4a1a20032fe1
Bridge br-of
Port br-of
Interface br-of
type: internal
Port "eth1"
tag: 3800
Interface "eth1"
Port phy-br-of
Interface phy-br-of
Bridge br-int
Port int-br-ex
Interface int-br-ex
Port "tapd9a332ba-7a"
tag: 1
Interface "tapd9a332ba-7a"
type: internal
Port "qvo1688cbe1-a1"
tag: 2
Interface "qvo1688cbe1-a1"
Port "tapbaaf406c-3f"
tag: 2
Interface "tapbaaf406c-3f"
type: internal
Port "qvocff2e793-54"
tag: 1
Interface "qvocff2e793-54"
Port br-int
Interface br-int
type: internal
Port int-br-of
Interface int-br-of
Port "qr-20301baf-9e"
tag: 1
Interface "qr-20301baf-9e"
type: internal
Bridge br-ex
Port "qg-4ef7d6c4-6a"
Interface "qg-4ef7d6c4-6a"
type: internal
Port phy-br-ex
Interface phy-br-ex
Port "p2p2"
Interface "p2p2"
Port br-ex
Interface br-ex
type: internal
ovs_version: "1.10.2"
root at helium:~#
--------------------------------------------------------------------
root at helium:~# ovs-ofctl dump-flows br-of
NXST_FLOW reply (xid=0x4):
cookie=0x0, duration=1587.356s, table=0, n_packets=10, n_bytes=590, idle_age=98, priority=4,in_port=3,dl_vlan=1 actions=mod_vlan_vid:3803,NORMAL
cookie=0x0, duration=1587.055s, table=0, n_packets=88, n_bytes=4178, idle_age=189, priority=4,in_port=3,dl_vlan=2 actions=mod_vlan_vid:3800,NORMAL
cookie=0x0, duration=1588.916s, table=0, n_packets=28, n_bytes=4838, idle_age=564, priority=2,in_port=3 actions=drop
cookie=0x0, duration=1589.493s, table=0, n_packets=1474, n_bytes=141184, idle_age=189, priority=1 actions=NORMAL
root at helium:~#
--------------------------------------------------------------------
root at helium:~# ovs-appctl fdb/show br-of
port VLAN MAC Age
11 3800 fa:16:3e:30:e1:bd 285
5 3800 00:60:dd:46:13:ae 285
11 3803 fa:16:3e:83:07:56 194
root at helium:~#
--------------------------------------------------------------------
root at helium:~# ovs-appctl ofproto/trace br-of in_port=3,dl_vlan=2,dl_dst=00:60:dd:46:13:ae
Flow: metadata=0,in_port=3,dl_vlan=2,dl_vlan_pcp=0,dl_src=00:00:00:00:00:00,dl_dst=00:60:dd:46:13:ae,dl_type=0x0000
Rule: table=0 cookie=0 priority=4,in_port=3,dl_vlan=2
OpenFlow actions=mod_vlan_vid:3800,NORMAL
forwarding to learned port
Final flow: metadata=0,in_port=3,dl_vlan=3800,dl_vlan_pcp=0,dl_src=00:00:00:00:00:00,dl_dst=00:60:dd:46:13:ae,dl_type=0x0000
Datapath actions: pop_vlan,5
root at helium:~#
--------------------------------------------------------------------
So, tags gets popped and sent to port 5, which is the correct port.
--------------------------------------------------------------------
br-of (system at ovs-system):
lookups: hit:6454 missed:773
flows: cur: 0, avg: 2.552, max: 12, life span: 13172(ms)
hourly avg: add rate: 5.850/min, del rate: 5.872/min
overall avg: add rate: 7.352/min, del rate: 7.352/min
br-of 65534/4: (internal)
eth1 13/5:
phy-br-of 3/11:
--------------------------------------------------------------------
root at helium:~# ovs-ofctl show br-of
OFPT_FEATURES_REPLY (xid=0x2): dpid:00000060dd461384
n_tables:254, n_buffers:256
capabilities: FLOW_STATS TABLE_STATS PORT_STATS QUEUE_STATS ARP_MATCH_IP
actions: OUTPUT SET_VLAN_VID SET_VLAN_PCP STRIP_VLAN SET_DL_SRC SET_DL_DST SET_NW_SRC SET_NW_DST SET_NW_TOS SET_TP_SRC SET_TP_DST ENQUEUE
3(phy-br-of): addr:f2:ac:af:1b:6c:cb
config: 0
state: 0
current: 10GB-FD COPPER
speed: 10000 Mbps now, 0 Mbps max
13(eth1): addr:00:60:dd:46:13:84
config: 0
state: 0
current: 10GB-FD FIBER
advertised: FIBER
supported: FIBER
speed: 10000 Mbps now, 0 Mbps max
LOCAL(br-of): addr:00:60:dd:46:13:84
config: 0
state: 0
speed: 0 Mbps now, 0 Mbps max
OFPT_GET_CONFIG_REPLY (xid=0x4): frags=normal miss_send_len=0
root at helium:~#
Any suggestions?
rvdp
More information about the discuss
mailing list