[ovs-discuss] Help needed to mirror a port

LuisMi Cruz luismi.cruz at gmail.com
Thu Jun 1 22:09:46 UTC 2017


Thanks, buy i want the traffic copied to other server

On 1 Jun 2017 21:50, "Aaron Conole" <aconole at redhat.com> wrote:

LuisMi Cruz <luismi.cruz at gmail.com> writes:

> Hello all,
>
> This message might a very common question I think but I wouldn't be here
if I am not fully desperate.
>
> I am trying to do a simple port mirror and it is not working.
>
> The scenario is:
> Bridge: xapi3
>
> Source port  vif208.1
>
> Destination port vif210.2
>
> # ovs-vsctl --version
>
> ovs-vsctl (Open vSwitch) 2.3.2
>
> Compiled Feb 16 2017 14:07:50
>
> DB Schema 7.6.2
>
> I can't change the version, just in case someone is thinking on a
potential upgrade.
>
> I executed the next command:
>
> ovs-vsctl -- set Bridge xapi3 mirrors=@m \
>
>               -- --id=@vif208.1 get Port vif208.1 \
>
>               -- --id=@vif210.2 get Port vif210.2 \
>
>               -- --id=@m create Mirror name=mymirror
select-dst-port=@vif208.1
> select-src-port=@vif208.1 output-port=@vif210.2
>

I might also suggest using ovs-tcpdump, which will do the mirror and run
tcpdump on the mirrored interface for you.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.openvswitch.org/pipermail/ovs-discuss/attachments/20170601/0c214708/attachment.html>


More information about the discuss mailing list