From owner-freebsd-net@FreeBSD.ORG Sat Feb 3 20:03:40 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 780F916A400 for ; Sat, 3 Feb 2007 20:03:40 +0000 (UTC) (envelope-from thompsa@freebsd.org) Received: from heff.fud.org.nz (203-109-251-39.static.bliink.ihug.co.nz [203.109.251.39]) by mx1.freebsd.org (Postfix) with ESMTP id 1A53D13C481 for ; Sat, 3 Feb 2007 20:03:40 +0000 (UTC) (envelope-from thompsa@freebsd.org) Received: by heff.fud.org.nz (Postfix, from userid 1001) id 88DE51CC51; Sun, 4 Feb 2007 09:03:38 +1300 (NZDT) Date: Sun, 4 Feb 2007 09:03:38 +1300 From: Andrew Thompson To: Bartosz Giza Message-ID: <20070203200338.GA95102@heff.fud.org.nz> References: <458982175.20070202230326@blurp.pl> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <458982175.20070202230326@blurp.pl> User-Agent: Mutt/1.5.13 (2006-08-11) Cc: freebsd-net@freebsd.org Subject: Re: if_bridge and ip alias problem 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: Sat, 03 Feb 2007 20:03:40 -0000 On Fri, Feb 02, 2007 at 11:03:26PM +0100, Bartosz Giza wrote: > Hi, > > recently i have set up bridge based on if_bridge implementation. > I have IP address assigned to bridge0 iface and no addresses assigned > to members of bridge0. > Basicly i am configuring bridge0 in rc.conf: > > cloned_interfaces="bridge0" > autobridge_interfaces="bridge0" > autobridge_bridge0="rl0 rl1 em0" > ifconfig_bridge0="inet 10.1.1.1 netmask 255.255.255.0" > ifconfig_bridge0_alias0="inet 10.1.1.2 netmask 255.255.255.255" > ifconfig_rl0="up" > ifconfig_rl1="up" > ifconfig_em0="up" > > The problem is with my first alias(10.1.1.2) after system reboot this > alias is not visible over network. I can ping this ip on bridge box > but no other host can ping this address. > When i delete this alias from iface with: > ifconfig bridge0 delete 10.1.1.2 > and again add on running system > ifconfig bridge0 add 10.1.1.2/32 Do you see if the address is arped correctly from the other host? you can use tcpdump to view this or just add it statically to see if this resolves the problem. When you re-add the alias it will send out a gratuitous arp which suggests this is the problem. cheers, Andrew