Date: Mon, 2 Mar 2009 12:21:53 +0000 From: Faizan ul haq Muhammad <faizi62@hotmail.com> To: <on@cs.ait.ac.th> Cc: fbsd.questions@rachie.is-a-geek.net, fbsd1@a1poweruser.com, FreeBSD Questions <freebsd-questions@freebsd.org> Subject: RE: Bridging-(How to test and verify that bridging is enabled) Message-ID: <BLU149-W39D17E34A52D39B08A8503B6A90@phx.gbl> In-Reply-To: <200903020935.n229ZXXo090477@banyan.cs.ait.ac.th> References: <BLU149-W30AA22383B41E0B5F3E951B6A90@phx.gbl> <200903020828.n228SAN7080657@banyan.cs.ait.ac.th> <BLU149-W4004210FC05DBF9A1D024B6A90@phx.gbl> <200903020935.n229ZXXo090477@banyan.cs.ait.ac.th>
next in thread | previous in thread | raw e-mail | index | archive | help
=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<UP=2CBROADCAST=2CRUNNING=2CPROMISC=2CSIMPLEX=2CMULTICAST>= metric 0 mtu 1500 options=3Db<RXCSUM=2C TXCSUM=2C VLAN_MTU ether 00:0a:5e:1a:69:25 media: Ethernet autoselect (1000baseTX <full-duplex=2C flag0=2C flag1=2C f= lag2>) status: active =20 =20 sk1: flags=3D8943<UP=2CBROADCAST=2CRUNNING=2CPROMISC=2CSIMPLEX=2CMULTICAST>= metric 0 mtu 1500 options=3Db<RXCSUM=2C TXCSUM=2C VLAN_MTU ether 00:0a:5e:1a:67:ee media: Ethernet autoselect (1000baseTX <full-duplex=2C flag0=2C flag1=2C f= lag2>) status: active =20 here is the ifconfig output for the bridge interface: bridge0: flags=3D8943<UP=2CBROADCAST=2CRUNNING=2CSIMPLEX=2CMULTICAST> metri= c 0 mtu 1500 options=3Db<RXCSUM=2C TXCSUM=2C VLAN_MTU ether 0a:54:d7:7e:aa:66 inet 192.168.0.1 netmask 0xffffff00 broadcast 192.168.0.255 id 00:00:00:00:00:00 priortiy 32768 hellotime 2 fwddelay 15 maxage 20 holdcnt 6 proto rstp maxaddr 100 timeout 1200 root id 00:00:00:00:00:00 priority 32768 ifcost 0 port 0 >=20 > An example of ifconfig for a bridge (FreeBSD 4.xx): >=20 > fxp0: flags=3D89c3<UP=2CBROADCAST=2CRUNNING=2CNOARP=2CPROMISC=2CSIMPLEX= =2CMULTICAST> mtu 1500 > ether 00:07:e9:xx:xx:xx > media: Ethernet autoselect (100baseTX <full-duplex>) > status: active > fxp1: flags=3D89c3<UP=2CBROADCAST=2CRUNNING=2CNOARP=2CPROMISC=2CSIMPLEX= =2CMULTICAST> mtu 1500 > ether 00:07:e9:yy:yy:yy > media: Ethernet autoselect (100baseTX <full-duplex>) > 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=
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?BLU149-W39D17E34A52D39B08A8503B6A90>