You can try to dump kernel flows by using ovs-dpctl dump-flows. Then track the flow to see where it actually goes and what actions have been applied to the flow
On Nov 21, 2014 2:16 AM, Alex Wang <[email protected]> wrote:
Sorry for the delayed reply,I'm able to reproduce the issue, will investigate further and reply back~Which version of ovs did you use?Thanks,Alex Wang,On Wed, Nov 19, 2014 at 5:43 PM, 张伟 <[email protected]> wrote:Hi all,I have a question for the tap device attached to openvswitch bridge.My aim is to send the packets from tap device of physical machine A(physical IP:10.48.24.63) to tap device of physical machine B(physical IP:10.48.24.67) with vxlan setting.What I did is1)Physical machine A (physical IP:10.48.24.63)step1: create a tap device and make it up#create tap devicetunctl -t tap0ifconfig tap0 192.168.5.63 upstep2: create bridge, vxlan device and attach tap device#create bridge and add portsovs-vsctl add-br ovs-br0ovs-vsctl add-port ovs-br0 tap0ovs-vsctl add-port ovs-br0 vxlan0 -- set interface vxlan0 type=vxlan options:local_ip=10.48.24.63 options:remote_ip=10.48.24.67 options:key=flowstep3:#check port id in ovs bridgeovs-ofctl show ovs-br0step4:#add flow entry from tap device to vxlan device and from vxlan device to tap deviceovs-ofctl add-flow ovs-br0 "in_port=1, actions=output:2" outgoingovs-ofctl add-flow ovs-br0 "in_port=2, actions=output:1" incomingOn physical machine B, I did the similar operations. The tap device in physical machine B is 192.168.5.67When I ping the tap device 192.168.5.67 of physical machine B from physical machine A,ping 192.168.5.67I found that tap device droped alll of the packets on physical machine A. I did not know why. Can somebody give me some advice? The following is the output on my physical machine A. the ports statistical information, flow entries, the port id in openvswitch.ovs-ofctl dump-ports ovs-br0(ports statistical information)OFPST_PORT reply (xid=0x2): 3 portsport 1: rx pkts=0, bytes=0, drop=0, errs=0, frame=0, over=0, crc=0tx pkts=0, bytes=0, drop=8124, errs=0, coll=0port 4: rx pkts=0, bytes=0, drop=0, errs=0, frame=0, over=0, crc=0tx pkts=0, bytes=0, drop=0, errs=0, coll=0port LOCAL: rx pkts=6, bytes=468, drop=0, errs=0, frame=0, over=0, crc=0tx pkts=0, bytes=0, drop=0, errs=0, coll=0ovs-ofctl dump-flows ovs-br0(flow entries)NXST_FLOW reply (xid=0x4):cookie=0x0, duration=50903.320s, table=0, n_packets=0, n_bytes=0, idle_age=50903, priority=2,in_port=1,dl_dst=ce:82:4a:f4:2d:f3 actions=output:4cookie=0x0, duration=71137.959s, table=0, n_packets=5, n_bytes=378, idle_age=65534, hard_age=65534, priority=0 actions=NORMALcookie=0x0, duration=1544.792s, table=0, n_packets=0, n_bytes=0, idle_age=1544, priority=2,in_port=4 actions=output:1ovs-ofctl show ovs-br0(port information)OFPT_FEATURES_REPLY (xid=0x2): dpid:0000eafeac000142n_tables:254, n_buffers:256capabilities: FLOW_STATS TABLE_STATS PORT_STATS QUEUE_STATS ARP_MATCH_IPactions: 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 ENQUEUE1(tap0): addr:46:f1:26:89:45:88config: 0state: 0current: 10MB-FD COPPERspeed: 10 Mbps now, 0 Mbps max4(vxlan0): addr:0a:25:64:47:8b:f9config: 0state: 0speed: 0 Mbps now, 0 Mbps maxLOCAL(ovs-br0): addr:ea:fe:ac:00:01:42config: 0state: 0speed: 0 Mbps now, 0 Mbps maxOFPT_GET_CONFIG_REPLY (xid=0x4): frags=normal miss_send_len=0
_______________________________________________
discuss mailing list
[email protected]
http://openvswitch.org/mailman/listinfo/discuss
_______________________________________________ discuss mailing list [email protected] http://openvswitch.org/mailman/listinfo/discuss
