From owner-freebsd-net@FreeBSD.ORG Fri Aug 18 19:37:13 2006 Return-Path: X-Original-To: freebsd-net@freebsd.org Delivered-To: freebsd-net@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 85DCA16A4DE for ; Fri, 18 Aug 2006 19:37:13 +0000 (UTC) (envelope-from mendonan@gmail.com) Received: from nf-out-0910.google.com (nf-out-0910.google.com [64.233.182.189]) by mx1.FreeBSD.org (Postfix) with ESMTP id AFC8443D53 for ; Fri, 18 Aug 2006 19:37:12 +0000 (GMT) (envelope-from mendonan@gmail.com) Received: by nf-out-0910.google.com with SMTP id n29so1524494nfc for ; Fri, 18 Aug 2006 12:37:11 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition; b=Uo/C3gn7iORKtc7QkbGy1Q7EJYWuOBvr4UzqpwTciQ6TbVtASIPF43X2gQAZAh3U4YlUIZSD/b8Cjv8CgSGIi7CIXQIIs7jF9fnofJW9Xgp4tdsUUvWUthgtxfHS7XkDY3F+Zq+iAWlDK+xG/DJCEN4UCrllocp9AcamHvOEvg8= Received: by 10.49.94.20 with SMTP id w20mr4471814nfl; Fri, 18 Aug 2006 12:37:11 -0700 (PDT) Received: by 10.78.173.7 with HTTP; Fri, 18 Aug 2006 12:37:11 -0700 (PDT) Message-ID: <94c7120b0608181237h75d63432n2f9e3f328c0ac720@mail.gmail.com> Date: Sat, 19 Aug 2006 03:37:11 +0800 From: "Senandung Mendonan" To: freebsd-net@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline Subject: if_bridge: Assigning IP Address to Bridge Interface 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, 18 Aug 2006 19:37:13 -0000 Hi, I'm running the latest FreeBSD 6.1-RELEASE-p3 on the following piece of hardware:- IBM xSeries 336 - 1 add-on PCI dual-port NIC (IBM Netxtreme Dualpt Ethernet adapter) matching the Broadcom BCM5704C Dual Gigabit Ethernet chipset (detected as bge0 and bge1) - 2 internal built-in NICs matching the Broadcom BCM5721 Gigabit Ethernet chipset. (detected as bge2 and bge3) I run bridging on bge2 and bge3 as follows:- ROUTER o--o C650x o----- bge2 + bge3 -----o C3750G (SERVERS) *C650x = Cisco Catalyst C650x core switch *C3750G = Cisco Catalyst C3750G distribution switch In /etc/rc.conf:- ifconfig_bge2="up" ifconfig_bge3="up" cloned_interfaces="bridge0" ifconfig_bridge0="addm bge2 addm bge3 up" The bridge works OK:- bridge0: flags=8043 mtu 1500 ether ac:de:48:b0:96:99 priority 32768 hellotime 2 fwddelay 15 maxage 20 member: bge3 flags=3 member: bge2 flags=3 My servers can reach the router via the server, and tcpdump on bridge0 confirms traffic being passed through OK. I had earlier planned to assign IP address to either bge0 or bge1 for SSH remote access and running other services, but due to another problem (on a separate thread) I am left with bge2 and bge3 as the only usable interfaces. So I tried to assign IP on the bridge interface as follows:- $ ifconfig bridge0 inet 192.168.1.18 netmask 255.255.255.0 broadcast 192.168.1.255 (192.168.1.0/24 is the subnet active on the particular VLAN I'm on in the Cisco switchports). The IP got assigned OK in bridge0, I can ping to it from inside the box. However when I tried to ping my other servers on bge3 side as well as the router on bge2 side, I get request timed out, i.e. the IP address is not reachable. Would appreciate any assistance.. thanks. :) --mendonan "Yang mimpikan secangkir kopi panas dengan selimut.." (Dreaming of a cup of hot coffee, and a blanket..")