Hello Henrique and Ben, that's it!

The command that I was looking for was # ovs-dpctl dump-flows <bridge>

Now I can see the packets passing through the open vswitch

root@ubuntu-Vostro-3300:/home/ubuntu/Desktop/openvswitch-1.9.0# ovs-ofctl
dump-flows ovs
NXST_FLOW reply (xid=0x4):
 cookie=0x0, duration=650.585s, table=0, n_packets=113, n_bytes=15590,
idle_age=1, priority=0 actions=NORMAL
root@ubuntu-Vostro-3300:/home/ubuntu/Desktop/openvswitch-1.9.0# ovs-dpctl
dump-flows ovs
in_port(1),eth(src=00:16:3e:90:30:4f,dst=00:16:3e:8f:55:67),eth_type(0x0800),ipv4(src=10.1.0.2,dst=10.1.0.1,proto=1,tos=0,ttl=64,frag=no),icmp(type=8,code=0),
packets:27, bytes:2646, used:0.544s, actions:2
in_port(2),eth(src=00:16:3e:8f:55:67,dst=00:16:3e:90:30:4f),eth_type(0x0800),ipv4(src=10.1.0.1,dst=10.1.0.2,proto=1,tos=0,ttl=64,frag=no),icmp(type=0,code=0),
packets:27, bytes:2646, used:0.544s, actions:1
in_port(1),eth(src=00:16:3e:90:30:4f,dst=00:16:3e:8f:55:67),eth_type(0x0800),ipv4(src=10.1.0.2,dst=10.1.0.1,proto=1,tos=0,ttl=64,frag=no),icmp(type=0,code=0),
packets:15, bytes:1470, used:0.124s, actions:2
in_port(2),eth(src=00:16:3e:8f:55:67,dst=00:16:3e:90:30:4f),eth_type(0x0800),ipv4(src=10.1.0.1,dst=10.1.0.2,proto=1,tos=0,ttl=64,frag=no),icmp(type=8,code=0),
packets:15, bytes:1470, used:0.124s, actions:1

There is a good explain about this on this link
http://openvswitch.org/pipermail/discuss/2010-August/004318.html




On Fri, Apr 19, 2013 at 5:01 AM, Henrique Rodrigues <
henriquesil...@gmail.com> wrote:

> Hi Natalia,
>
> I guess the command you are looking for is:
>
> # ovs-dpctl dump-flows system@ovs-system
>
> This will give you the list of flows in the ovs datapath (in the kernel),
> that are currently being used to forward traffic.
>
> --
> Henrique Rodrigues
> http://www.dcc.ufmg.br/~hsr
>
>
> On Thu, Apr 18, 2013 at 8:58 PM, Ben Pfaff <b...@nicira.com> wrote:
>
>> On Thu, Apr 18, 2013 at 10:27:18PM -0300, Natalia Queiroz wrote:
>> > Okay.. but it seems that it is lacking something because I can't see the
>> > flow passing through the ovs due to comand *ovs-ofctl dump-flows  ovs
>> > *
>> > I made a ping test between the 2 LXC vms, H1(port 1) to H2(port 2) and
>> port
>> > 0 is ovs.
>> >
>> > The ping works fine on the containers but on ovs I got this...
>> >
>> > root@ubuntu-Vostro-3300:/home/ubuntu/Desktop/openvswitch-1.9.0#
>> ovs-appctl
>> > fdb/show ovs
>> >  port  VLAN  MAC                Age
>> >     2     0  00:16:3e:8f:55:67   34
>> >     1     0  00:16:3e:90:30:4f   34
>> >     0     0  76:fc:14:c5:ad:49   10
>> >
>> > root@ubuntu-Vostro-3300:/home/ubuntu/Desktop/openvswitch-1.9.0#
>> ovs-ofctl
>> > dump-flows ovs
>> > NXST_FLOW reply (xid=0x4):
>> >  cookie=0x0, duration=206.795s, table=0, n_packets=433, n_bytes=46864,
>> > idle_age=0, priority=0 actions=NORMAL
>> >
>> > See? It doesn't inform from where the flow is passing.. in this example
>> > from port 1 to port 2 of my swicth. I don't get this information with
>> this
>> > command...  That is the reason that I'm supposing that I don't get
>> openflow
>> > traffic on my switch.
>>
>> If you want other flows, you can add them with "ovs-ofctl" or by setting
>> a controller.
>> _______________________________________________
>> discuss mailing list
>> discuss@openvswitch.org
>> http://openvswitch.org/mailman/listinfo/discuss
>>
>
>
>


-- 


Natália Queiroz
_______________________________________________
discuss mailing list
discuss@openvswitch.org
http://openvswitch.org/mailman/listinfo/discuss

Reply via email to