From mboxrd@z Thu Jan 1 00:00:00 1970 From: Toshiaki Makita Subject: Re: Cannot delete entries from bridge fdb Date: Thu, 03 Apr 2014 01:46:31 +0900 Message-ID: <1396457191.2215.45.camel@localhost.localdomain> References: Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Cc: netdev@vger.kernel.org To: Albert Krenz Return-path: Received: from mail-pd0-f179.google.com ([209.85.192.179]:35156 "EHLO mail-pd0-f179.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932339AbaDBQqh (ORCPT ); Wed, 2 Apr 2014 12:46:37 -0400 Received: by mail-pd0-f179.google.com with SMTP id w10so433182pde.38 for ; Wed, 02 Apr 2014 09:46:36 -0700 (PDT) In-Reply-To: Sender: netdev-owner@vger.kernel.org List-ID: On Wed, 2014-04-02 at 11:25 +0200, Albert Krenz wrote: > Hello everyone, > i have a question concerning the forwarding database (fdb) of the > bridges. I am using: > - Ubuntu 13.10 > - kernel 3.11.0 from ubuntu repos > - bridge utility 0.0 from iproute2 package > - bridge-utils 1.5 > > I have 3 applications, each one creating a tap (tap0 - tap2) which i > add to the bridge br0. Two Applications are receiving Frames (app0 and > app1) and the third one (app2) sends one Frame every second to app0. > SRC and DST MAC are different from the tap MAC's. App0 sends an answer > to app2 and the bridge adds an entry to his fdb with the MAC of app0 > on tap0. > > Now i wanted to delete this entry which does not work. RTNETLINK tells > me there is no file or directory. See the following example: > > root@mypc:~# bridge fdb show dev tap0 > 33:33:00:00:00:01 self permanent > 01:00:5E:00:00:01 self permanent > 40:EC:F8:03:A7:B5 vlan 0 > << i want to delete this one > 9A:0D:06:68:5D:75 vlan 0 permanent > << MAC of tap0 > root@mypc:~# bridge fdb del 40:EC:F8:03:A7:B5 vlan0 dev tap0 > RTNETLINK answers: No such file or directory Please try this command. # bridge fdb del 40:EC:F8:03:A7:B5 dev tap0 master Thanks, Toshiaki Makita > > If i add a random entry i can delete it without any problem. > > root@mypc:~# bridge fdb add 40:EC:F8:03:A7:FF vlan0 dev tap0 > root@mypc:~# bridge fdb del 40:EC:F8:03:A7:FF vlan0 dev tap0 > << this works > > Is there another syntax to delete entries which the bridge has added > by himself? Or is it not possible to delete entries which you haven't > added by hand? > > greetings > Albert Krenz > -- > To unsubscribe from this list: send the line "unsubscribe netdev" in > the body of a message to majordomo@vger.kernel.org > More majordomo info at http://vger.kernel.org/majordomo-info.html