OpenWrt Forum Archive

Topic: Bridge with relayd – Broadcast problem

The content of this topic has been archived on 6 Sep 2015. There are no obvious gaps in this topic, but there may still be some posts missing at the end.

Hi all!

I want to connect a PLC which is only equipped with one LAN port to my existing wireless network. To do this I have installed Open WRT to a Alfa AP121 router and configured it as bridge with relayd. All other options instead of relayd seem not to be possible, because it is not possible to do any changes of the wireless AP. So WEP is not possible.

In general the bridge with relady seems to be working fine. It’s possible to access or ping the PLC. But there is an problem with scan function of responsible PLC software. If PLC is connected by bridge it is not possible to find it by scan functions. I have attached a a Wireshark screenshot which shows the scan commands. If PLC is direct connected to my PC (by cable) scan function works fine. The screenshot shows scan request (line 2) and answer (line 4). Unfortunately if PLC is connected by bridge I do not get any response from it and scan function does not work hmm

http://www.bilder-upload.eu/thumb/855f06-1441292667.png

Until a few days ago I have used an adapter from EDIMAX  (CentOS, none WRT) for this and it works fine:
http://www.edimax.com/edimax/merchandis … 0/br-6258n

But this adapter is broken and is no longer available. Unfortunately I don’t know the way which this adapter was working, but think it must also be done by something like relayd, because it works with nearly same configuration requirements which are essential for a relayd bridge with Open WRT.

Can someone help to get this also work with Open WRT? I don’t know what I can additional configure to get this run. My bridge is configured like the example shown here: http://cavebeat.blogspot.de/2012/08/openwrt-bridge-with-relayd-pseudobridge.html

Find also attached my configuration:

/etc/config/network:

config interface 'loopback'
    option ifname 'lo'
    option proto 'static'
    option ipaddr '127.0.0.1'
    option netmask '255.0.0.0'

config globals 'globals'
    option ula_prefix 'fd64:0c08:67ef::/48'

config interface 'lan'
    option ifname 'eth0'
    option type 'bridge'
    option proto 'static'
    option gateway '192.168.1.1'
    option netmask '255.255.255.0'
    option dns '192.168.1.1'
    option broadcast '192.168.1.255'
    option ipaddr '192.168.1.30'

config interface 'wwan'
    option proto 'static'
    option ipaddr '192.168.1.254'
    option netmask '255.255.255.0'
    option gateway '192.168.1.1'

config interface 'stabridge'
    option proto 'relay'
    option ipaddr '192.168.1.254'
    list network 'lan'
    list network 'wwan'


/etc/config/wireless:

config wifi-device 'radio0'
    option type 'mac80211'
    option hwmode '11ng'
    option phy 'phy0'
    list ht_capab 'LDPC'
    list ht_capab 'SHORT-GI-20'
    list ht_capab 'SHORT-GI-40'
    list ht_capab 'TX-STBC'
    list ht_capab 'RX-STBC1'
    list ht_capab 'DSSS_CCK-40'
    option txpower '20'
    option country 'DE'
    option disabled '0'
    option channel 'auto'
    option htmode 'HT40'

config wifi-iface
    option network 'wwan'
    option ssid 'NAME'
    option encryption 'psk2'
    option device 'radio0'
    option mode 'sta'
    option bssid '34:31:C4:47:CC:F3'
    option key 'key'

(Last edited by Aquadukt on 3 Sep 2015, 18:21)

No one any ideas? sad

The discussion might have continued from here.