Bridging-(How to test and verify that bridging is enabled)

Olivier Nicole on at cs.ait.ac.th
Mon Mar 2 01:35:46 PST 2009


Hi,

> > Are you using properly crossed cables?
> Isnt it enough check for the  that two linux can ping each other..
 
Yes and no. You must used crossed Ethernet cable between your FreeBSD
bridge and each of your Linux boxes.

As someone suggested, 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.

An example of ifconfig for a bridge (FreeBSD 4.xx):

fxp0: flags=89c3<UP,BROADCAST,RUNNING,NOARP,PROMISC,SIMPLEX,MULTICAST> mtu 1500
        ether 00:07:e9:xx:xx:xx
        media: Ethernet autoselect (100baseTX <full-duplex>)
        status: active
fxp1: flags=89c3<UP,BROADCAST,RUNNING,NOARP,PROMISC,SIMPLEX,MULTICAST> mtu 1500
        ether 00:07:e9:yy:yy:yy
        media: Ethernet autoselect (100baseTX <full-duplex>)
        status: active

Once you make sure that both interfaces on your FreeBSD box are up and
running, you can procced to the next step:

> > On the FreeBSD box=2C 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

You'd need to give more information about your connection; something
like:

Linux 192.168.0.4 <---> sk0 FreeBSD sk1 <---> Linux 192.168.0.5

And you should also specify if ou where tcpdump'ing on interface sk0
or sk1. Once your bridge is working, you will get the same thing for
tcpdump on both interfaces.

Olivier


More information about the freebsd-questions mailing list