Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 1 Oct 2001 15:26:23 -0700 (PDT)
From:      Julian Elischer <julian@elischer.org>
To:        "Jasper O'Malley" <jooji@nickelkid.com>
Cc:        freebsd-net@freebsd.org
Subject:   Re: Netgraph bridging: what is LOCAL_IFACE?
Message-ID:  <Pine.BSF.4.21.0110011518111.87441-100000@InterJet.elischer.org>
In-Reply-To: <Pine.BSF.4.21.0110011640270.38226-100000@cornflake.nickelkid.com>

next in thread | previous in thread | raw e-mail | index | archive | help


On Mon, 1 Oct 2001, Jasper O'Malley wrote:

> On Mon, 1 Oct 2001, Julian Elischer wrote:
> 
> > I think that if you send out a packet on one of these interfaces it may
> > still make it out because we don't actually (last time I checked) bother
> > to disconnect that, but all incoming packets will be passed to the bridge
> > module, which will be keeoping track of MAC addresses and doing bridging
> > as required.
> 
> So, essentially, there's no TOP part of the virtual bnet0 interface to
> move the packets up the network stack? Or have I got it wrong?


The tops of all the NICS specified are basically disabled.
You specifically re-enable ONE of them to act as your connection to the
bridged virtual network.

bnet 0 is a logical name for the bridging node in the 
netgraph namespace..
it is not an interface.

You can have several separate bridges in the same machine..
just give each one a different bridge name..


> 
> > Now, if you want to be on that bridged network as well, then
> > you need to nominate which of the NICS should be your representative on
> > that bridged network. The TOP part of that NIC (the bit you assign
> > addresses to) will be joined into the bridging set, just like all the
> > other NICS (logically there is no difference). The bridging code will send
> > it a copy of any packets that have it's MAC address as destination and
> > broadcast packets, just as it would any other segment..
> 
> So the entire point of "nominating" a local interface is just to select
> the MAC address by which your machine is known on the Ethernet?

yes.. and to give an interface through which your routing tables
can reach the bridged virtual network.

> 
> I'm still a bit confused, though. Do you ifconfig your IP protocol
> configuration on bnet0 (or whatever you decide to name the interface),
> or on the LOCAL_IFACE interface?

you give the IP address to the selected LOCAL_IFACE..



> 
> Cheers,
> Mick
> 
> 
> To Unsubscribe: send mail to majordomo@FreeBSD.org
> with "unsubscribe freebsd-net" in the body of the message
> 


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-net" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.4.21.0110011518111.87441-100000>