Hi Ben,

I have three VMs, I want like this, VM1 ping VM2, duplicate the packets to
VM3

root@node-35:~# ovs-ofctl add-flow br-int
"dl_src=VM1,priority=100,actions=NORMAL,mod_dl_dst=vm3_mac_address,NORMAL"

I can use the above command to make the packet first output to normal, and
then modify the destination mac and output to normal again (reach the
modified dest_mac). It works fine ! I run tcpdump on VM3 and I saw it
capture the packet from VM1 to VM2.

But, when I use the IP address  (by changing nw_src nw_dst) to do the same
thing, the tcpdump on VM3 only shows that

"ARP, request who-has VM2 IP tell VM2IP"


Do you know how can I make it work by matching and modifying  IP header
instead of mac ?

Thanks very much


On Tue, Nov 12, 2013 at 10:32 AM, terryxing <xingtia...@gmail.com> wrote:

> I tried the add-flow command before, and it is just there when I use
> dump-flows to see the flow table. I am just wondering that if it will just
> staying there if I keep the OVS running.
>
> BTW, the port mirroring works, Thank your so much.
>
>
> On Tue, Nov 12, 2013 at 10:30 AM, Ben Pfaff <b...@nicira.com> wrote:
>
>> When you try it, what do you see?
>>
>> On Tue, Nov 12, 2013 at 09:56:27AM -0800, terryxing wrote:
>> > it is okay for the short-lived controller exit, but will the rule last
>> in
>> > OVS If I just keep it running ?
>> >
>> >
>> > On Tue, Nov 12, 2013 at 8:00 AM, Ben Pfaff <b...@nicira.com> wrote:
>> >
>> > > On Mon, Nov 11, 2013 at 11:23:36PM -0800, terryxing wrote:
>> > > > What do you mean by short-lived ? How long it can last and can I
>> save the
>> > > > flowtable ?
>> > >
>> > > Most controllers run until you stop them.  ovs-ofctl connects and
>> > > executes the command you give it, then exits.
>> > >
>>
>
>
_______________________________________________
discuss mailing list
discuss@openvswitch.org
http://openvswitch.org/mailman/listinfo/discuss

Reply via email to