[ovs-discuss] mirror ports aggregation

Aaron Conole aconole at redhat.com
Wed Feb 22 22:20:23 UTC 2017


Laszlo Fekete <blackluck at ktk.bme.hu> writes:

>  
>
> On 2017. February 20. 15:43:05 Aaron Conole wrote:
>
>> Laszlo Fekete <blackluck at ktk.bme.hu> writes:
>
>> > Hello!
>
>> > 
>
>> > 
>
>> > 
>
>> > I have 8 separate ports where have some incomming traffic (not related to
>
>> > that interface so using promisc) and want to mirror these traffics to 1
>
>> > port. But not bridge together the 8 incomming ports, is it possible to
>
>> > create like this with ovs?
>
>> 
>
>> It should be possible to construct by setting the select_dst_port and
>
>> select_src_port elements of the mirror to the set of Port entries you
>
>> wish to monitor.
>
>  
>
> Could you please give an example config?

Completely untested (and may not be what you're asking) :

ovs-vsctl -- set Bridge br0 mirrors=@m \
  -- --id=@eth0 get Port eth0 \
  -- --id=@eth1 get Port eth1 \
  -- --id=@eth2 get Port eth2 \
  -- --id=@eth3 get Port eth3 \
  -- --id=@m create Mirror name=mymirror \
     select-dst-port=@eth0, at eth1, at eth2 \
     select-src-port=@eth0, at eth1, at eth2 \
     output-port=@eth3

> For example there is eth1 and eth2 in promisc mode where there is incomming traffic and mirror those
> ports all traffic to eth3. But want to see both traffic on eth3 only, not mix eth1 traffic with eth2 on eth1
> or eth2.
>
>  
>
> Thanks, Laszlo
>
>  
>
>> 
>
>> > Tried put all 8 ports in a bridge and set monitor to a 9th port but in
>
>> > this case on 1st port see other 7 ports traffic too, i want to see
>
>> > separately the 8 ports traffic and 1 aggregated traffic for all 8 ports,
>
>> > it is possible?
>
>> 
>
>> See above
>
>> 
>
>> > Regards, Laszlo


More information about the discuss mailing list