From owner-freebsd-questions@FreeBSD.ORG Mon Mar 2 12:21:54 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 0D7921065672 for ; Mon, 2 Mar 2009 12:21:54 +0000 (UTC) (envelope-from faizi62@hotmail.com) Received: from blu0-omc1-s19.blu0.hotmail.com (blu0-omc1-s19.blu0.hotmail.com [65.55.116.30]) by mx1.freebsd.org (Postfix) with ESMTP id C25208FC21 for ; Mon, 2 Mar 2009 12:21:53 +0000 (UTC) (envelope-from faizi62@hotmail.com) Received: from BLU149-W39 ([65.55.116.8]) by blu0-omc1-s19.blu0.hotmail.com with Microsoft SMTPSVC(6.0.3790.3959); Mon, 2 Mar 2009 04:21:53 -0800 Message-ID: X-Originating-IP: [194.237.142.7] From: Faizan ul haq Muhammad To: Date: Mon, 2 Mar 2009 12:21:53 +0000 Importance: Normal In-Reply-To: <200903020935.n229ZXXo090477@banyan.cs.ait.ac.th> References: <200903020828.n228SAN7080657@banyan.cs.ait.ac.th> <200903020935.n229ZXXo090477@banyan.cs.ait.ac.th> MIME-Version: 1.0 X-OriginalArrivalTime: 02 Mar 2009 12:21:53.0364 (UTC) FILETIME=[78789140:01C99B31] Content-Type: text/plain; charset="Windows-1252" Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: fbsd.questions@rachie.is-a-geek.net, fbsd1@a1poweruser.com, FreeBSD Questions Subject: RE: Bridging-(How to test and verify that bridging is enabled) 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: Mon, 02 Mar 2009 12:21:54 -0000 =20 > Date: Mon=2C 2 Mar 2009 16:35:33 +0700 > From: on@cs.ait.ac.th > To: faizi62@hotmail.com > CC: fbsd.questions@rachie.is-a-geek.net=3B freebsd-questions@freebsd.org= =3B fbsd1@a1poweruser.com > Subject: Re: Bridging-(How to test and verify that bridging is enabled) >=20 > Hi=2C >=20 > > > Are you using properly crossed cables? > > Isnt it enough check for the that two linux can ping each other.. >=20 > Yes and no. You must used crossed Ethernet cable between your FreeBSD > bridge and each of your Linux boxes. Frankly i am not sure about the cables type but they works PC to PC connect= ivity.=20 > As someone suggested=2C what is ifconfig saying on the FreeBSD box? You > should see that both sk0 and sk1 have a status: active. Else it means > you have a cable problem. sk0: flags=3D8943= metric 0 mtu 1500 options=3Db) status: active =20 =20 sk1: flags=3D8943= metric 0 mtu 1500 options=3Db) status: active =20 here is the ifconfig output for the bridge interface: bridge0: flags=3D8943 metri= c 0 mtu 1500 options=3Db=20 > An example of ifconfig for a bridge (FreeBSD 4.xx): >=20 > fxp0: flags=3D89c3 mtu 1500 > ether 00:07:e9:xx:xx:xx > media: Ethernet autoselect (100baseTX ) > status: active > fxp1: flags=3D89c3 mtu 1500 > ether 00:07:e9:yy:yy:yy > media: Ethernet autoselect (100baseTX ) > status: active >=20 > Once you make sure that both interfaces on your FreeBSD box are up and > running=2C you can procced to the next step: >=20 > > > On the FreeBSD box=3D2C you can tcpdump(8) and see the packets moving= : > > > tcpdump -i sk0 and tcpdump -i sk1 and you will see the pick request > > > and ping echo packets. > > it says arp: who has 192.168.0.4 tell 192.168.0.5 >=20 > You'd need to give more information about your connection=3B something > like: >=20 > Linux 192.168.0.4 <---> sk0 FreeBSD sk1 <---> Linux 192.168.0.5 >=20 > And you should also specify if ou where tcpdump'ing on interface sk0 > or sk1. Once your bridge is working=2C you will get the same thing for > tcpdump on both interfaces. ok here is the detail: =20 Linux 192.168.0.5 <---> sk0 FreeBSD sk1 <---> Linux 192.168.0.4 ping from 192.168.0.5 to 192.168.0.4 tcpdump (on freeBSD) tcpdump -i sk0 RESULT arp: who has 192.168.0.4 tell 1= 92.168.0.5 ping from 192.168.0.4 to 192.168.0.5 tcpdump (on freeBSD) tcpdump -i sk1 RESULT arp: who has 192.168.0.5 tell 1= 92.168.0.4 tcpdump -i bridge0 gives nothing... > Olivier _________________________________________________________________ Windows Live=99 Groups: Create an online spot for your favorite groups to m= eet. http://windowslive.com/online/groups?ocid=3DTXT_TAGLM_WL_groups_032009=