[ovs-discuss] question about the OVS-OFCTL

terryxing xingtianyi at gmail.com
Tue Nov 12 00:50:37 UTC 2013


Thanks Ben,

I tried the command line below by change the set into add you mentioned but
it did not work,

I tried the below one, it did not work, it said add command requires at
least 4 arguments.

ovs-vsctl -- add Bridge br-int mirrors=@m -- --id=@vm4 get port
tapa0a5bd27-98 -- --id=@vm3 get port tap0cdb8e01-88 -- --id=@m create
Mirror name=mirrirvm34 selct-dst-port=@vm4 selesct-src-port=@vm3


 using set work, but will replace the previous one:

ovs-vsctl -- set Bridge br-int mirrors=@m -- --id=@vm4 get port
tapa0a5bd27-98 -- --id=@vm3 get port tap0cdb8e01-88 -- --id=@m create
Mirror name=mirrirvm34 selct-dst-port=@vm4 selesct-src-port=@vm3



Can you point me out the wrong part ?  or let me know the complete CLI to
add additional port mirror ?


Thanks very much


On Mon, Nov 11, 2013 at 2:44 PM, Ben Pfaff <blp at nicira.com> wrote:

> On Mon, Nov 11, 2013 at 02:31:13PM -0800, terryxing wrote:
> > I have a question about the port mirror.
> >
> > I use the command line as below: I just want to implement the port mirror
> > algorithm like this, on the same bridge, mirror ovs port 1 traffic to ovs
> > port 10, and mirror ovs port 2 traffic to ovs port 11 .... and mirror ovs
> > port x traffic to ovs port y.  *But NOT* forwarding all ovs port to a
> SPAN
> > port, which involves multiple ports but only within one policy.
> >
> > ovs-vsctl -- --id=@p get port tap519eb2f0-13 -- --id=@client1 get Port
> > tapbe8770a1-6b -- set bridge br-int mirrors=@m -- --id=@m create mirror
> > name=br-int select-dst-port=@client1 select-src-port=@client1
> output-port=@p
> >
> > I mirror all traffic arrived or originated from the client 1 port, for
> > example, the ovs port for VM1, and output port is the ovs port of a
> monitor
> > device VM for VM1.
> >
> > What if I want to add additional port mirror on the same bridge ? Can I
> use
> > the same CLI but different tap IP ?  and I will use another port other
> than
> >  output port I previously used, will that work ?
>
> You should be able to add another one with a very similar command, by
> changing "set bridge br-int mirrors=@m" to say "add bridge br-int
> mirrors @m".  You can change all the other parameters to suit
> yourself; they can be the same or different.
>
> > If, the above multi-port mirror policy works on the same bridge, *how can
> > my OVS can find the output port existing on the different OVS* ? these
> > bridges on multiple OVS are tunneled by connecting to a bridge call
> br-tun
> > which has gre port on the tunnel.
>
> Your other OVS will have to figure out where to send it somehow.  You
> could use a separate tunnel or a different key within a tunnel to
> designate the output port.
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://openvswitch.org/pipermail/ovs-discuss/attachments/20131111/d6623cb2/attachment.html>


More information about the discuss mailing list