From owner-freebsd-net@FreeBSD.ORG Fri Mar 9 13:44:33 2007 Return-Path: X-Original-To: freebsd-net@freebsd.org Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 0466D16A405 for ; Fri, 9 Mar 2007 13:44:33 +0000 (UTC) (envelope-from frank@pinky.sax.de) Received: from pinky.frank-behrens.de (pinky.frank-behrens.de [82.139.199.24]) by mx1.freebsd.org (Postfix) with ESMTP id 6583C13C442 for ; Fri, 9 Mar 2007 13:44:32 +0000 (UTC) (envelope-from frank@pinky.sax.de) Received: from [192.168.20.32] (sun.behrens [192.168.20.32]) by pinky.frank-behrens.de (8.13.8/8.13.8) with ESMTP id l29DiRRE008786 for ; Fri, 9 Mar 2007 14:44:27 +0100 (CET) (envelope-from frank@pinky.sax.de) Message-Id: <200703091344.l29DiRRE008786@pinky.frank-behrens.de> From: "Frank Behrens" To: freebsd-net@freebsd.org Date: Fri, 09 Mar 2007 14:44:27 +0100 MIME-Version: 1.0 Priority: normal X-mailer: Pegasus Mail for Windows (4.31, DE v4.31 R1) Content-type: text/plain; charset=US-ASCII Content-transfer-encoding: 7BIT Content-description: Mail message body Subject: Assign IP address to which interface when using if_bridge(4)? X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 09 Mar 2007 13:44:33 -0000 I see some problems with if_bridge(4) and want to investigate this further. But before I make further tests I want to be sure to have the right setup. I could not find any hints in the documentation including FreeBSD handbook. I have an ethernet device xl0 and want to create a if_bridge(4) to tap(4): ifconfig bridge0 create ifconfig bridge0 addm xl0 addm tap0 up Now I have 3 interfaces, to which of them should I assign the ip address? When searching for information I found both possibilities: 1. Assign the IP address to child interface (e.g. xl0) and use this also for routing setup. 2. Assign the address to bridge interface (bridge0) and use this as reference interface. I assume 1. is the right solution, because the bridge0 does not even create link-local addresses. Am I right? Regards, Frank -- Frank Behrens, Osterwieck, Germany PGP-key 0x5B7C47ED on public servers available.