1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

WRT54G as transparent bridge?

Discussion in 'Cisco/Linksys Wireless Routers' started by Anonymous, Mar 24, 2005.

  1. Anonymous

    Anonymous Guest

    Hello,

    I have a WRT54G v2.0 hardware running Alchemy-pre7a v3.37.6.8sv. At the moment I'm using it in client mode to connect my computer and a VoIP hardphone to a router in another apartment (a Netgear MR814 [802.11b]). The Netgear connects to the internet.

    The way this is currently configured, we've got two nets (192.168.0.0/24 for the netgear and 192.168.1.0/24 for the WRT54G). We'd like to set up the WRT54G as a transparent bridge so all our computers are on the same subnet (192.168.0.0/24) where the MR814 can assign IP addresses to the devices connected to the WET54G. The MR814 is currently set up to allocate a static IP (192.168.0.20) for the WET54G.

    I tried to set up both ethernet devices in the WRT54G with bridging by scp-ing the following script to the WRT54G's /tmp directory and running it with a shell. This is the script I wrote (it doesn't yet work):

    Code:
    #/bin/sh
    
    #
    #  Info from Ethernet Bridge + netfilter Howto by Nils Radtke
    #
    
    BRIDGE=br0
    ALLINTERFACES="eth0 eth1"
    IPADDRESS="192.168.0.20"
    
    # tear old connections down
    #for INTERFACE in $ALLINTERFACES
    #do
    #  ifconfig $INTERFACE down
    #done
    ifconfig $BRIDGE down
    
    # delete bridge
    brctl delbr $BRIDGE
    
    # tell os about bridge
    brctl addbr $BRIDGE
    
    # turn off STP -- not sure this is a good idea?
    brctl stp $BRIDGE off
    
    # tell WRT54G about bridge
    brctl addbr $BRIDGE
    
    # turn off STP -- not sure this is a good idea?
    brctl stp $BRIDGE off
    
    # add physical device interfaces
    for INTERFACE in $ALLINTERFACES
    do
      brctl addif $BRIDGE $INTERFACE
    done
    
    # release IPs
    for INTERFACE in $ALLINTERFACES
    do
      ifconfig $INTERFACE down
      ifconfig $INTERFACE 0.0.0.0 up
    done
    
    # associate single IP with bridge interface
    ifconfig $BRIDGE $IPADDRESS up
    

    Unfortunately once the above is run on the WRT54G it stops communicating with the connected devices and must be reset. Any insight or help would be appreciated. Thanks.
     
  2. Morpheus

    Morpheus Network Guru Member

    pre3b???????
     
  3. jagboy

    jagboy Network Guru Member

    i heard that pre3b is pretty stable so a lot of people are using it.
     

Share This Page