From owner-freebsd-net Mon Oct 1 14:40: 0 2001 Delivered-To: freebsd-net@freebsd.org Received: from InterJet.elischer.org (c421509-a.pinol1.sfba.home.com [24.7.86.9]) by hub.freebsd.org (Postfix) with ESMTP id 36C6837B40F for ; Mon, 1 Oct 2001 14:39:56 -0700 (PDT) Received: from localhost (localhost.elischer.org [127.0.0.1]) by InterJet.elischer.org (8.9.1a/8.9.1) with ESMTP id PAA87892; Mon, 1 Oct 2001 15:26:25 -0700 (PDT) Date: Mon, 1 Oct 2001 15:26:23 -0700 (PDT) From: Julian Elischer To: "Jasper O'Malley" Cc: freebsd-net@freebsd.org Subject: Re: Netgraph bridging: what is LOCAL_IFACE? In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-net@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org 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