From: Simon Barber <simon@superduper.net>
To: Dirk Gouders <gouders@et.bocholt.fh-gelsenkirchen.de>
Cc: bridge@lists.linux-foundation.org
Subject: Re: [Bridge] IP address on bridged interface
Date: Thu, 05 Mar 2009 08:53:25 -0800 [thread overview]
Message-ID: <49B00385.1010401@superduper.net> (raw)
In-Reply-To: <giab80caq6.fsf@karga.hank.lab>
Normally it does not make sense to put any L3 protocol address on port
interfaces - because incoming packets are diverted to the bridge
interface before the L3 protocol is examined. This means the L3 protocol
running on the port interface will never see any incoming packets.
There are a few rare circumstances where it makes sense to have IP
addresses on the port interfaces - it can be done with the use of the
ebtables BROUTE chain - this allows one to selectively pass frames to
the L3 protocol decode on a port rather than passing them to the bridge
interface. One situation where I have used this trick is on an NFS root
mounted networking device. On kernel boot the kernel NFS code assigns an
IP address directly to the ethernet port. Once my networking code starts
it creates a bridge and puts the ethernet port into the bridge. This
stops the NFS root mount from working, and the machine halts. The work
around is to put an ebtables rule in place to allow the NFS root mount
IP address to continue working.
Simon
Dirk Gouders wrote:
> Hello,
>
> I am currently playing with bridging to learn about various
> possibilities to setup a bridge to enable networking for KVM guests.
>
> I learned that I cannot use an IP address on one of the bridged
> interfaces but have to assign that IP address to the bridge interface if
> I want to use it to reach the bridge itself.
>
> The documentation I found does not say much about this subject and I am
> wondering whether there are situations when I can use IP addresses on
> bridged interfaces or if it absolutely makes no sense to have an IP
> address assigned to a bridged interface.
>
> Any explanation or pointers are very welcome.
>
> Dirk
> _______________________________________________
> Bridge mailing list
> Bridge@lists.linux-foundation.org
> https://lists.linux-foundation.org/mailman/listinfo/bridge
>
next prev parent reply other threads:[~2009-03-05 16:53 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-03-05 14:20 [Bridge] IP address on bridged interface Dirk Gouders
2009-03-05 16:53 ` Simon Barber [this message]
2009-03-06 11:45 ` Dirk Gouders
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=49B00385.1010401@superduper.net \
--to=simon@superduper.net \
--cc=bridge@lists.linux-foundation.org \
--cc=gouders@et.bocholt.fh-gelsenkirchen.de \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.