From owner-freebsd-questions@FreeBSD.ORG Sun Aug 9 06:23:47 2009 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 721A2106566B for ; Sun, 9 Aug 2009 06:23:47 +0000 (UTC) (envelope-from nlandys@gmail.com) Received: from mail-qy0-f191.google.com (mail-qy0-f191.google.com [209.85.221.191]) by mx1.freebsd.org (Postfix) with ESMTP id 2DAC18FC08 for ; Sun, 9 Aug 2009 06:23:47 +0000 (UTC) Received: by qyk29 with SMTP id 29so2166901qyk.3 for ; Sat, 08 Aug 2009 23:23:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:date:message-id:subject :from:to:content-type:content-transfer-encoding; bh=NhZChNV63ZAOzjYLsxL5qlJV7SH8AIepPmH5K+b/FV4=; b=fXprjPLZIPEdgrKOU4zrUCP5wDyE6n5GK6R72/lbK10TwBUXfXKl9w/odVxHcxKFTV 0VsiZFJQNaoZZCUy5LNXkYJSjMU3PKkJd94LgrVrVXRsZuj/wg5UF/EPAk7F0Qfn7Oh8 GfAvsh771ULy8X4y7Ud/qNpa1e/qF7Tb6NczA= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type :content-transfer-encoding; b=vS5DEg2V7oNka4uLw83gtPV3RriTeRWeQpG8TkkLU7Nb/6wngTEUnV5NeJ/UF9BJQr Ptgc/Fbp4HED879b0DzMcxMfzwz8S9o7BF1SEZCIwCY646wHwhIavzbDMWezYdAC+0Ek nl6UpUNEWRhmPbN3SHoYfp7PSSCLTWk6by7eg= MIME-Version: 1.0 Received: by 10.229.99.212 with SMTP id v20mr1054789qcn.28.1249799026621; Sat, 08 Aug 2009 23:23:46 -0700 (PDT) Date: Sat, 8 Aug 2009 23:23:46 -0700 Message-ID: <560f92640908082323j7a243fd0r22af5b947442745d@mail.gmail.com> From: Nerius Landys To: FreeBSD Mailing List Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Subject: Network bridge, but assigned IP address X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 09 Aug 2009 06:23:47 -0000 I am creating a simple network bridge (as described in http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/network-bridging.html) which consists of 5 network interface cards. Function-wise, it's basically acting as a switch. However, I want to assign an IP address to the machine with the 5 NICs. So far without the bridge everything is working perfectly, and my /etc/rc.conf looks like this: gateway_enable="YES" hostname="speedy.i" ifconfig_fxp4="DHCP" ifconfig_em0="inet 192.168.0.254 netmask 255.255.255.0" And I have a NAT (using pf) to allow the 192.168.0.x hosts to directly reach the outside internet. fxp4 is the external network card. My other network cards that I want to make part of the internal network (acting as a switch) are fxp0 through fxp3. So I'm not sure what to do with my rc.conf. In the handbook it says to add these lines: cloned_interfaces="bridge0" ifconfig_bridge0="addm em0 addm fxp0 addm fxp1 addm fxp2 addm fxp3 up" ifconfig_fxp0="up" ifconfig_fxp1="up" ifconfig_fxp2="up" ifconfig_fxp3="up" ifconfig_em0="up" How should I intermingle these lines with my existing rc.conf, and/or which lines should I remove? I want em0, fxp0, fxp1, fxp2, and fxp3 to be a bridge and be assigned the IP address 192.168.0.254.