Topic: Need help setting up a bridge

I'm new to OpenWrt but not to Linux. I've been trying to RTFM however ... the wiki is down. Also, some of what I read on the wiki has confused me (nvram vs /etc/config ... I should be using /etc/config, right?). I'd appreciate whatever help I can get.

My plan is this: install one router as my base unit and to provide an access point. Install the other router in the basement with a couple wired Ethernet connections. Down the road, I plan to install another router in my shop. I'd like (both/all) the remote unit(s) to route to the internet through the base unit.

I've flashed 2 brand new WRT54GL routers with kamikaze/7.07/brcm-2.4/openwrt-wrt54g-2.4-squashfs.bin. I've had both of them working (independently) as access points. wl is installed. At one point I had them to a point where they could ping each other (using mode adhoc) but they still wouldn't route to the internet connection. Also, I couldn't get an IP address on the laptop. A static IP didn't seem to help.

I'm currently trying to make wds work and not having much luck. They currently will not ping each other at all. Below you'll see details of my setup. I'm wondering why 'wl status' reports channel 1 on the remote unit, /etc/config/wireless clearly sets it to 9.

Once again, thanks (in advance)...
Russ

base wl0 MAC ID: 00:1C:10:34:37:D8
remote wl0 MAC ID: 00:1C:10:34:37:E4

base (access point) /etc/config/wireless:
config wifi-device  wl0
        option type     broadcom
        option channel  9

config wifi-iface
        option device   wl0
        option network  lan
        option mode     ap
        option ssid     myssid
        option bssid    "00:1C:10;34:37:E4"
        option encryption       wep
        option key      1
        option key1     0123456789

config wifi-iface
        option device   wl0
        option network  lan
        option mode     wds
        option ssid     wds
        option bssid    "00:1C:10:34:37:E4"
        option encryption wep
        option key 1
        option key1 0123456789

remote /etc/config/wireless:
config wifi-device  wl0
        option type     broadcom
        option channel  9

config wifi-iface
        option device   wl0
        option network  lan
        option mode     wds
        option ssid     wds
        option bssid    "00:1C:10:34:37:D8"
        option encryption wep
        option key 1
        option key1 0123456789

base 'ifconfig' output:
br-lan    Link encap:Ethernet  HWaddr 00:1C:10:34:37:D6
          inet addr:192.168.1.1  Bcast:192.168.1.255  Mask:255.255.255.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:2927 errors:0 dropped:0 overruns:0 frame:0
          TX packets:2741 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:586342 (572.5 KiB)  TX bytes:2030496 (1.9 MiB)

eth0      Link encap:Ethernet  HWaddr 00:1C:10:34:37:D6
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:7661 errors:0 dropped:0 overruns:0 frame:0
          TX packets:5627 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:2949133 (2.8 MiB)  TX bytes:2687519 (2.5 MiB)
          Interrupt:4

eth0.0    Link encap:Ethernet  HWaddr 00:1C:10:34:37:D6
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:2927 errors:0 dropped:0 overruns:0 frame:0
          TX packets:2741 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:598050 (584.0 KiB)  TX bytes:2041460 (1.9 MiB)

eth0.1    Link encap:Ethernet  HWaddr 00:1C:10:34:37:D6
          inet addr:75.106.200.164  Bcast:75.106.203.255  Mask:255.255.252.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:4737 errors:0 dropped:0 overruns:0 frame:0
          TX packets:2893 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:2213338 (2.1 MiB)  TX bytes:617139 (602.6 KiB)

lo        Link encap:Local Loopback
          inet addr:127.0.0.1  Mask:255.0.0.0
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)

wds0.1    Link encap:Ethernet  HWaddr 00:1C:10:34:37:D8
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)

wl0       Link encap:Ethernet  HWaddr 00:1C:10:34:37:D8
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:11
          TX packets:72 errors:54 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:0 (0.0 B)  TX bytes:11313 (11.0 KiB)
          Interrupt:2 Base address:0x5000

remote 'ifconfig' output:
br-lan    Link encap:Ethernet  HWaddr 00:1C:10:34:37:E2
          inet addr:192.168.1.2  Bcast:192.168.1.255  Mask:255.255.255.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:275 errors:0 dropped:0 overruns:0 frame:0
          TX packets:197 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:19439 (18.9 KiB)  TX bytes:19794 (19.3 KiB)

eth0      Link encap:Ethernet  HWaddr 00:1C:10:34:37:E2
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:274 errors:0 dropped:0 overruns:0 frame:0
          TX packets:197 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:25379 (24.7 KiB)  TX bytes:21510 (21.0 KiB)
          Interrupt:4

eth0.0    Link encap:Ethernet  HWaddr 00:1C:10:34:37:E2
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:275 errors:0 dropped:0 overruns:0 frame:0
          TX packets:197 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:20539 (20.0 KiB)  TX bytes:20582 (20.0 KiB)

eth0.1    Link encap:Ethernet  HWaddr 00:1C:10:34:37:E2
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)

lo        Link encap:Local Loopback
          inet addr:127.0.0.1  Mask:255.0.0.0
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)

wds0.1    Link encap:Ethernet  HWaddr 00:1C:10:34:37:E4
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)


Hmmm... how odd 'ifconfig' doesn't report wl0. Here's the remote's output from 'ifconfig wl0':

wl0       Link encap:Ethernet  HWaddr 00:1C:10:34:37:E4
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)
          Interrupt:2 Base address:0x5000

base 'wl status' output:
SSID: "myssid"
Mode: Managed   RSSI: 0 dBm     noise: 0 dBm    Channel: 9
BSSID: 00:1C:10:34:37:D8        Capability: ESS ShortSlot
Supported Rates: [ 1(b) 2(b) 5.5(b) 6 9 11(b) 12 18 24 36 48 54 ]

remote 'wl status' output:
SSID: ""
Mode: Ad Hoc   RSSI: 0 dBm     noise: 0 dBm    Channel: 1
BSSID: 00:00:00:00:00:00        Capability: IBSS
Supported Rates: [ 1(b) 2(b) 5.5(b) 6 9 11(b) 12 18 24 36 48 54 ]

Re: Need help setting up a bridge

You have a ";" instead of ":" in base config

Re: Need help setting up a bridge

Thanks for spotting that ';'. I blame a sticky shift key, a bad font, and weak eyes.

Okay, I've got that fixed. I also commented out the wep stuff to simplify things. The ap functionality of the base is fine. I'm posting this using it. I still can't ping between the base and the remote and 'wl status' on the remote still reports channel 1. The output of ifconfig and 'wl status' hasn't change significantly on either unit.

Any ideas?  (I now return to my regularly scheduled mining of the wiki)

Re: Need help setting up a bridge

Thank goodness the wiki is back up. I read this page (http://wiki.openwrt.org/OpenWrtDocs/Kam … amikaze%29) and tried sta mode on the remote unit. I'm now able to ping between the routers. Unfortunately, the remote unit cannot route to the internet. I've tried finding how to do this on the wiki, but I've not made any progress.

Any help would be appreciated.

My current configuration is:

base /etc/config/network:
#### VLAN configuration
config switch eth0
    option vlan0    "0 1 2 3 5*"
    option vlan1    "4 5"


#### Loopback configuration
config interface loopback
    option ifname    "lo"
    option proto    static
    option ipaddr    127.0.0.1
    option netmask    255.0.0.0


#### LAN configuration
config interface lan
    option type     bridge
    option ifname    "eth0.0"
    option proto    static
    option ipaddr    192.168.1.1
    option netmask    255.255.255.0


#### WAN configuration
config interface    wan
    option ifname    "eth0.1"
    option proto    dhcp

remote /etc/config/network:
#### VLAN configuration
config switch eth0
    option vlan0    "0 1 2 3 5*"
    option vlan1    "4 5"


#### Loopback configuration
config interface loopback
    option ifname    "lo"
    option proto    static
    option ipaddr    127.0.0.1
    option netmask    255.0.0.0


#### LAN configuration
config interface lan
    option type     bridge
    option ifname    "eth0.0"
    option proto    static
    option ipaddr    192.168.1.2
    option netmask    255.255.255.0


#### WAN configuration
config interface    wan
    option ifname    "eth0.1"
    option proto    'none'


base /etc/config/wireless:
config wifi-device  wl0
    option type     broadcom
    option channel  9
   
config wifi-iface
    option device    wl0
    option network    lan
    option mode    ap
    option ssid    myssid
    option bssid    "00:1C:10:34:37:E4"
    option encryption    wep
    option key    1
    option key1    "01223456789"

remote /etc/config/wireless:
config wifi-device  wl0
    option type     broadcom
    option channel    9

config wifi-iface
    option device   wl0
    option network    lan
    option mode     sta
    option encryption wep
    option key     1
    option key1    0123456789

Re: Need help setting up a bridge

I posted a solution for what I think you might want @ http://forum.openwrt.org/viewtopic.php?pid=56343#p56343