[ovs-discuss] Help needed to mirror a port

Aaron Conole aconole at redhat.com
Thu Jun 1 20:50:13 UTC 2017


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.


More information about the discuss mailing list