From owner-freebsd-questions@FreeBSD.ORG Fri Jun 22 02:01:56 2012 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id E91D8106566B for ; Fri, 22 Jun 2012 02:01:56 +0000 (UTC) (envelope-from proace@gmail.com) Received: from mail-yx0-f182.google.com (mail-yx0-f182.google.com [209.85.213.182]) by mx1.freebsd.org (Postfix) with ESMTP id A7FD38FC0A for ; Fri, 22 Jun 2012 02:01:56 +0000 (UTC) Received: by yenl8 with SMTP id l8so1400785yen.13 for ; Thu, 21 Jun 2012 19:01:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=TyMASwB7aTCVsPmqr7p6K/I+JxnrBSOHiordon54uxY=; b=t7iUJyePSnUfBDH1ye2Fil0lSgYGmk+ph3noM7fOXJQgBis1aiKDDyxaeIvXAAnpXA qwtX730uQrvT5kMeW4EpJXncb/M+DwlPvAr+E+RwtcIdX0eSVpixgAlGelZuOhs98f4M 8FJ1HhNo8p37ZwKEk1FGkRqDPAknW/27gpojGCbsf7qjxOZKeDmIY2VxcMgqB+sq8snZ WjJje5ChL/dfH9vNa1dehO0634r7XBKaGQi/QSJ5mkf3/mA/Qg/40o9SzXbuTsobX86Y 8kuNI/CQIpnQZJcCuFYNiR+w8icH1OwEtJ4vVfQVRZ2jw3AwS/SXPSILyeuekMHUqhDF CerA== MIME-Version: 1.0 Received: by 10.236.165.74 with SMTP id d50mr326374yhl.118.1340330516244; Thu, 21 Jun 2012 19:01:56 -0700 (PDT) Received: by 10.147.78.20 with HTTP; Thu, 21 Jun 2012 19:01:56 -0700 (PDT) Date: Fri, 22 Jun 2012 10:01:56 +0800 Message-ID: From: ProAce To: freebsd-questions@freebsd.org Content-Type: text/plain; charset=ISO-8859-1 Subject: something wrong of ifconfig bridge0 addr - mac address appears on wrong interface 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: Fri, 22 Jun 2012 02:01:57 -0000 ( untrust ) --- ( em0 , bridge0 , em1 ) --- ( trust ) Sometimes , I cannot connect to trust server from untrust. I log some information from ifconfig bridge0 addr. It seems some thing wrong of trust server's mac appear on em0. trust serv1's mac: 00:50:56:af:2e:43 trust serv2's mac: 00:50:56:af:75:63 STEP1: The serv2 is not shown in bridge addr. table tp-fw [~] -root- ifconfig bridge0 addr 00:50:56:af:2e:43 Vlan1 em1 1200 flags=0<> 64:9e:f3:06:52:03 Vlan1 em0 1192 flags=0<> 70:ca:9b:e3:a5:83 Vlan1 em0 1192 flags=0<> 70:ca:9b:e3:a5:c3 Vlan1 em0 1200 flags=0<> STEP2: I ping the serv2's ip from untrust , and I got 100% packet loss. STEP3: show bridge addr. table again tp-fw [~] -root- ifconfig bridge0 addr 00:50:56:af:75:63 Vlan1 em0 1198 flags=0<> 00:50:56:af:2e:43 Vlan1 em1 1200 flags=0<> 64:9e:f3:06:52:03 Vlan1 em0 1150 flags=0<> 70:ca:9b:e3:a5:83 Vlan1 em0 1150 flags=0<> 70:ca:9b:e3:a5:c3 Vlan1 em0 1200 flags=0<> OMG! It's wrong of the 00:50:56:af:75:63 is shown with em0 interface. STEP4: I ping the serv2's ip from tp-fw , and I got icmp reply. STEP5: show bridge addr. table again tp-fw [~] -root- ifconfig bridge0 addr 00:50:56:af:75:63 Vlan1 em1 1197 flags=0<> 00:50:56:af:2e:43 Vlan1 em1 1199 flags=0<> 64:9e:f3:06:52:03 Vlan1 em0 1170 flags=0<> 70:ca:9b:e3:a5:83 Vlan1 em0 1170 flags=0<> 70:ca:9b:e3:a5:c3 Vlan1 em0 1200 flags=0<> The 00:50:56:af:75:63 is shown with em1 interface correctly. Why does STEP2 cause the wrong bridge addr table? How to solve it?