adding you back to the ML - again. You should check the system and ovs logs too.

> -----Original Message-----
> From: [email protected] [mailto:[email protected]]
> Sent: 22 December 2016 15:34
> To: O'Reilly, Darragh <[email protected]>
> Subject: Re: Openvswitch is acting like a hub in my case?
> 
> 
> I just did "ovs-appctl fdb/flush vmbr1" and suddenly it started to learn the 
> mac
> addresses correcly and now I don't see traffic in VM3 anymore.
> Tried it on the first installation and fixed it there too...
> 
> While this 'fixed' it, it doesn't explain what happend here (twice) and so I 
> need to
> investigate further and try to get back the issue..
> 
> Regards,
> Andy
> 
> ----- Oorspronkelijk bericht -----
> Van: [email protected]
> Aan: "Darragh O'Reilly" <[email protected]>
> Verzonden: Donderdag 22 december 2016 16:12:51
> Onderwerp: Re: Openvswitch is acting like a hub in my case?
> 
> Hi,
> 
> I messed something up with the copy/paste it seems. I just checked again and
> eth0 is there in ovs-vsctl show.
> Sorry for the confusing reply!!
> 
> I just finished my installation on a different server and I'm experiencing 
> the same
> issue with this one.
> On this system I've been doing some testing with 'ovs-appctl ofproto/trace' in
> order to try finding the cause...
> 
> It looks like the problem is related to openvswitch not learning a mac address
> for some reason.
> 
> See, this is what the command it tells me:
> 
> 
> # ovs-appctl ofproto/trace vmbr1
> in_port=36,tcp,nw_src=x.x.1.190,tcp_dst=22,nw_dst=x.x.2.152
> Bridge: vmbr1
> Flow:
> tcp,in_port=36,vlan_tci=0x0000,dl_src=00:00:00:00:00:00,dl_dst=00:00:00:00:0
> 0:00,nw_src=x.x.x.1.190,nw_dst=x.x.x.2.152,nw_tos=0,nw_ecn=0,nw_ttl=0,tp_s
> rc=0,tp_dst=22,tcp_flags=0
> 
> Rule: table=0 cookie=0 priority=0
> OpenFlow actions=NORMAL
> no learned MAC for destination, flooding
> 
> Final flow: unchanged
> Megaflow:
> recirc_id=0,ip,in_port=36,vlan_tci=0x0000,dl_src=00:00:00:00:00:00,dl_dst=00:0
> 0:00:00:00:00,nw_frag=no
> Datapath actions: push_vlan(vid=20,pcp=0),3,4,pop_vlan,5,16,10,24
> 
> 
> Looking at 'ovs-appctl fdb/show vmbr1' it is indeed not showing the mac 
> address
> of the destination IP while a lot of traffic is going to the specified IP.
> I have no f*cking clue on why it's not learning that MAC address. There 
> either is
> an option for this or it's a bug ..
> 
> It's telling me "no learned MAC for destination, flooding" so it is indeed 
> sending
> the packet to all ports. But how can I tell it to learn mac addresses like a 
> normal
> switch?
> 
> 
> Kind regards,
> Sander
> 
> ----- Oorspronkelijk bericht -----
> Van: "Darragh O'Reilly" <[email protected]>
> Aan: [email protected], "ovs-discuss" <[email protected]>
> Verzonden: Donderdag 22 december 2016 15:56:16
> Onderwerp: RE: Openvswitch is acting like a hub in my case?
> 
> The interface eth0 is not in "ovs-vsctl show", but it is in "ovs-appctl 
> dpif/show".
> I have no idea how this could be.
> 
> > -----Original Message-----
> > From: [email protected] [mailto:[email protected]]
> > Sent: 22 December 2016 14:06
> > To: O'Reilly, Darragh <[email protected]>
> > Subject: Re: Openvswitch is acting like a hub in my case?
> >
> >
> >
> >
> > Here it is:
> >
> > # ovs-vsctl show vmbr0
> > ovs-vsctl: 'show' command takes at most 0 arguments
> >
> > # ovs-vsctl show
> > ca7b0daf-79cf-4de9-904b-da2bd8a47faf
> >     Bridge "vmbr0"
> >         Port "tap100i0"
> >             tag: 20
> >             Interface "tap100i0"
> >         Port "tap101i0"
> >             tag: 20
> >             Interface "tap101i0"
> >         Port "tap102i0"
> >             tag: 20
> >             Interface "tap102i0"
> >         Port "vmbr0"
> >             Interface "vmbr0"
> >                 type: internal
> >     ovs_version: "2.6.0"
> >
> >
> > # ovs-appctl fdb/show vmbr0
> > ovs-appctl fdb/show vmbr1
> >  port  VLAN  MAC                Age
> >     1    20  24:a4:3c:3c:36:5a  204
> >     1    20  b6:7c:eb:dc:89:e4  182
> >     1    20  e2:57:b3:3c:2c:70  168
> >
> >
> > # ovs-ofctl dump-flows vmbr0
> > NXST_FLOW reply (xid=0x4):
> >  cookie=0x0, duration=193731.551s, table=0, n_packets=273168342,
> > n_bytes=249224303688, idle_age=0, hard_age=65534, priority=0
> > actions=NORMAL
> >
> > # ovs-appctl dpif/show
> > system@ovs-system: hit:1082166023 missed:1824617
> >     vmbr0:
> >             eth0 1/2: (system)
> >             tap100i0 31/15: (system)
> >             tap101i0 8/11: (system)
> >             tap102i0 15/19: (system)
> >             vmbr0 65534/1: (internal)
> >
> >
> >
> >
> > ----- Oorspronkelijk bericht -----
> > Van: "O'Reilly, Darragh" <[email protected]>
> > Aan: [email protected], "ovs-discuss"
> > <[email protected]>
> > Verzonden: Donderdag 22 december 2016 14:13:16
> > Onderwerp: RE: Openvswitch is acting like a hub in my case?
> >
> > What do these commands show?
> > ovs-vsctl show vmbr0
> > ovs-appctl fdb/show vmbr0
> > ovs-ofctl dump-flows vmbr0
> > ovs-appctl dpif/show
> >
> >
> > From: [email protected] [mailto:ovs-discuss-
> > [email protected]] On Behalf Of [email protected]
> > Sent: 22 December 2016 12:12
> > To: ovs-discuss <[email protected]>
> > Subject: Re: [ovs-discuss] Openvswitch is acting like a hub in my case?
> >
> >
> > Just for testing I just disconnected the physical link to the network
> > and it's still the same. So it's not my router or something else in
> > the network causing this effect...
> >
> > It looks like openvswitch is not learning the mac addresses correctly
> > and assigning them to the right port or something.
> >
> > Please help me out. I'm kind of stuck now...
> >
> >
> >
> > ________________________________________
> > Van: [email protected]
> > Aan: "ovs-discuss" <[email protected]>
> > Verzonden: Donderdag 22 december 2016 12:26:52
> > Onderwerp: [ovs-discuss] Openvswitch is acting like a hub in my case?
> >
> > Hi,
> >
> > I have a proxmox+openvswitch installation and I have 3 VM's installed
> > on in but
> > VM3 is able to see traffic going from VM1 to VM2 while I think it shouldn't.
> > openvswitch is a switch, right? but in my case it seems to think it's a 
> > hub...
> >
> > VM3 has nothing to do with VM1 or VM2 so it shouldn't be able to see
> > the traffic as openvswitch should have learned the mac addresses of
> > VM1+VM2 and send traffic to their ports only, isn't it?
> > In my case I'm able to do "tcpdump -XX -i eth0" inside VM3 and see
> > traffic going from the IP of VM1 to the IP of VM2 which is a problem...
> >
> > More details:
> >
> > All VM's have a single public IP address. They are all configured to
> > use network interface "vmbr0" which is openvswith configured like this
> > in
> > /etc/network/interfaces:
> >
> > auto vmbr0
> > iface vmbr0 inet manual
> >     ovs_type OVSBridge
> >     ovs_ports eth0
> > eth0 is the physical interface connected to my switch.
> > The switch is configured as a trunk port so I can use vlans. Vlan 20
> > is for public internet access and is currently the only active vlan on the 
> > switch.
> > All VM's have vlan tag 20 set.
> >
> > VM1 sends a lot of traffic to VM2 but none of these VM's have anything
> > to do with VM3. But still, inside VM3 I can see all traffic when doing
> > "tcpdump -XX -i eth0" inside VM3.
> >
> > I do not understand how this is possible. I thought a switch (and
> > openvswitch is a switch, right?) will learn mac addresses and send
> > traffic to the correct ports only?
> >
> > Any help here would be much appreciated!
> >
> > Thanks,
> > Sander
> >
> >
> > _______________________________________________
> > discuss mailing list
> > [email protected]
> > https://mail.openvswitch.org/mailman/listinfo/ovs-discuss
_______________________________________________
discuss mailing list
[email protected]
https://mail.openvswitch.org/mailman/listinfo/ovs-discuss

Reply via email to