[ovs-discuss] port mirror on bond0
Ben Pfaff
blp at nicira.com
Tue Aug 28 19:41:25 UTC 2012
No, this looks OK to me. I don't know why you are having trouble.
On Tue, Aug 28, 2012 at 12:15:04PM +0200, Oswald, Thomas wrote:
> in syslog I see this messages:
>
> Aug 28 12:14:04 autolab8 ovs-vsctl: 00001|vsctl|INFO|Called as ovs-vsctl add-port br100 eth3
> Aug 28 12:14:04 autolab8 kernel: [ 2308.962045] device eth3 entered promiscuous mode
> Aug 28 12:14:04 autolab8 ovs-vsctl: 00001|vsctl|INFO|Called as ovs-vsctl -- set Bridge br100 mirrors=@m -- --id=@bond0 get Port bond0 -- --id=@eth3 get Port eth3 -- --id=@m create Mirror name=mymirror select-dst-port=@bond0 select-src-port=@bond0 output-port=@eth3
>
> On a vm I execute a ping to a remote router-ip (outside the host). On the correspondig vnet0 I get a dump with tcpdump. Also on eth1 and eth2 that are members of bond0
>
> # ovs-vsctl show
> d1c0be94-786d-452e-bcbf-a294edfdddea
> Bridge "br100"
> Port "eth3"
> Interface "eth3"
> Port "bond0"
> trunks: [3000, 3001, 3002, 3003]
> Interface "eth2"
> Interface "eth1"
> Port "vnet0"
> tag: 3001
> Interface "vnet0"
> Port "br3001"
> tag: 3001
> Interface "br3001"
> type: internal
> Port "br100"
> Interface "br100"
> type: internal
> ovs_version: "1.4.0+build0"
>
>
> # ovs-appctl bond/list
> bond type slaves
> bond0 stable eth1, eth2
>
> do you see anything that is strange?
>
>
>
> -----Ursprüngliche Nachricht-----
> Von: Ben Pfaff [mailto:blp at nicira.com]
> Gesendet: Montag, 27. August 2012 02:06
> An: Oswald, Thomas
> Cc: discuss at openvswitch.org
> Betreff: Re: [ovs-discuss] port mirror on bond0
>
> On Fri, Aug 24, 2012 at 11:35:35AM +0200, Oswald, Thomas wrote:
> > I have an issue with a port mirror. I bundled the interfaces eth1, eth2 in bond0. After that I want to see the network traffic on it. "tcpdump -i bond0" doesn't work. I configured a port mirror in the following way:
> >
> > ovs-vsctl add-port br100 eth3
> >
> > ovs-vsctl -- set Bridge br100 mirrors=@m
> > -- --id=@bond0 get Port bond0
> > -- --id=@eth3 get Port eth3
> > -- --id=@m create Mirror name=mymirror select-dst-port=@bond0 select-src-port=@bond0 output-port=@eth3
> >
> >
> > Now I'm a little bit confused because I assumed that all traffic ingress and egress on bond0 is mirrored to eth3 and I just have to tcpdump on that interface, but I see nothing.
> >
> > Any idea?
>
> Your configuration looks correct to me. Is there anything in the
> ovs-vswitchd log about a configuration problem?
More information about the discuss
mailing list