[ovs-discuss] Port mirroring for ingress or egress traffic

carlopmart carlopmart at gmail.com
Tue Oct 8 17:45:03 UTC 2013


On 08/10/13 17:43, Ben Pfaff wrote:
> On Tue, Oct 08, 2013 at 05:39:27PM +0000, carlopmart wrote:
>>  I am doing some tests with openvswitch in a CentOS 6.4 host all goes
>> pretty well until now.
>>
>>  I have configured a port mirroring in a ovs using the following command:
>>
>> ovs-vsctl -- set Bridge br0 mirrors=@m, at n -- --id=@eth0 get Port eth0 --
>> --id=@vnet1 get Port vnet1 -- --id=@vnet2 get Port vnet2 -- --id=@m
>> create Mirror name=mirror0 select-dst-port=@eth0 select-src-port=@eth0
>> output-port=@vnet1 -- --id=@n create Mirror name=mirror1
>> select-dst-port=@eth0 select-src-port=@eth0 output-port=@vnet2
>>
>>  But using this configuration ovs mirrors ingress and egress traffic. is
>> it possible to mirror only ingress or egress traffice to avoid duplicate
>> packets??
> 
> Yes, use only select-src-port or select-dst-port.
> 

Yep, pretty easy ... many thanks Ben.

-- 
CL Martinez
carlopmart {at} gmail {d0t} com



More information about the discuss mailing list