if_bridge not working with second interface

From: Qzkan_KIRIK?= (ozkan_at_mersin.edu.tr)
Date: 11/27/05

  • Next message: Imrani: "Re: Configure wireless connection using Cisco aironet 350"
    Date: Sun, 27 Nov 2005 18:03:35 +0200
    To: freebsd-net@freebsd.org
    
    

    Hi,

    i am trying to bridge two interfaces via if_bridge.
    i built a new kernel that includes "device if_bridge" line.

    my physical interfaces are fxp0 and fxp1
    bridge0 works with fxp0, but it doesnt work with fxp1

    i tried configurations below:

    Note: fxp0 and fxp1 doesnt have ip adress

    # ifconfig bridge0 create
    # ifconfig bridge0 addm fxp0
    # ifconfig bridge0 inet 10.0.0.1/24

    # ping 10.0.0.2
    PING 10.0.0.2 (10.0.0.2): 56 data bytes
    64 bytes from 10.0.50.1: icmp_seq=0 ttl=64 time=1.847 ms
    ...

    it works. Then, I removed cable from fxp0 and plugged to fxp1.
    # ifconfig bridge0 destroy
    # ifconfig bridge0 create
    # ifconfig bridge0 addm fxp1
    # ifconfig bridge0 inet 10.0.0.1/24

    # ping 10.0.0.2
    PING 10.0.0.2 (10.0.0.2): 56 data bytes
    ping: sendto: Host is down
    ...

    After this result, i removed fxp0 from my pc. Now the old fxp1 becomes
    fxp0. And now i can ping via bridge member fxp0.
    All NICs are working , but as you see if_bridge doesnt work with the
    second interface.

    How can i solve problem? ( OS is: FreeBSD 6.0 - RELEASE )

    thanks for your interests
    _______________________________________________
    freebsd-net@freebsd.org mailing list
    http://lists.freebsd.org/mailman/listinfo/freebsd-net
    To unsubscribe, send any mail to "freebsd-net-unsubscribe@freebsd.org"


  • Next message: Imrani: "Re: Configure wireless connection using Cisco aironet 350"

    Relevant Pages

    • Re: is if_bridge broken?
      ... ifconfig: SIOCIFCREATE2: Invalid argument ... `ifconfig bridge0 create' fails with: ...
      (freebsd-current)
    • How to use if_bridge
      ... It seems that none of the packets from ath0 appear on bridge0. ... When I run tcpdump.. ... ifconfig bridge0 create ...
      (freebsd-net)
    • Re: ifconfig bridge0 without module not work ?
      ... ifconfig bridge0 without module not work? ... I have disabled/removed module on kernel, anyone ok, ... I just added "options BRIDGE" on my kernel conf. ...
      (freebsd-net)
    • Re: ifconfig bridge0 without module not work ?
      ... but when I create bridge0: ... I just added "options BRIDGE" on my kernel conf. ... You will either want to kldload if_bridge, and ifconfig bridge0 create - although this automatically loaded if_bridge on my machine (without options BRIDGE) configured. ...
      (freebsd-net)