[ovs-discuss] port mirroring

Ben Pfaff blp at nicira.com
Sat Oct 27 15:25:14 UTC 2012


On Sat, Oct 27, 2012 at 03:37:27PM +0330, rahim entezari wrote:
> I have 3 VMs with the folowing interfaces:
> VM1-->vnet0
> VM2-->vnet1
> VM3-->vnet2
> 
> and the ovs bridge which VMs use is "ovsbr0"
> 
> i just want to mirror all packets sent and received by VM2(vnet1) be
> mirrored to VM3(vnet2).i did this in terminal :(according to
> http://openvswitch.org/cgi-bin/ovsman.cgi?page=utilities%2Fovs-vsctl.8#EXAMPLES
> )
> 
> ovs-vsctl -- set Bridge ovsbr0 mirrors=@m \ -- --id=@vnet1 get Port vnet1 \
> -- --id=@vnet2 get Port vnet2 \ -- --id=@m create Mirror name=mymirror
> select-dst-port=@vnet1 select-src-port=@vnet1 output-port=@vnet2
> 
> but this error comes up :
> ovs-vsctl:  --: missing column name

The \s in the example cause the shell to treat multiple lines as a
single command.  If you are going to put the entire command on a single
line, delete the \s.



More information about the discuss mailing list