Netdev List
 help / color / mirror / Atom feed
From: Toshiaki Makita <toshiaki.makita1@gmail.com>
To: Albert Krenz <albert.krenz87@googlemail.com>
Cc: netdev@vger.kernel.org
Subject: Re: Cannot delete entries from bridge fdb
Date: Thu, 03 Apr 2014 01:46:31 +0900	[thread overview]
Message-ID: <1396457191.2215.45.camel@localhost.localdomain> (raw)
In-Reply-To: <CAPRaSD7v2S2Hy+4vJytX8Q1L42X_qJryDYRGmpauJfjqxsywwQ@mail.gmail.com>

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

  reply	other threads:[~2014-04-02 16:46 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-04-02  9:25 Cannot delete entries from bridge fdb Albert Krenz
2014-04-02 16:46 ` Toshiaki Makita [this message]
2014-04-03  6:30   ` Albert Krenz

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1396457191.2215.45.camel@localhost.localdomain \
    --to=toshiaki.makita1@gmail.com \
    --cc=albert.krenz87@googlemail.com \
    --cc=netdev@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox