Gateworks offers powerful, flexible, low power ARM single board computers for transmitting data, audio, and video.
Please see more information at http://www.gateworks.com
Gateworks manufactures single board computers (SBCs) that are used in many networking applications. One such application is a wireless bridge. This is where a Gateworks SBC is connected as a client to an existing wireless access point (AP) and the Ethernet port is used as a bridge to provide access to other devices over the wireless. Unfortunately, this scenario isn't supported by traditional wireless networks. The 802.11 standard only uses 3 MAC Addresses per frame and the source MAC gets replaced by the transmitting wireless AP. This then prevents any returned packets from being delivered to the actual host because the host is now believed to be the wireless client.
One method to address this issue is to use the Wireless Distribution System (WDS) which implements 4 MAC addresses in the header thus allowing the returned packet to be delivered to the correct end point. For WDS to be used both the AP and the client must support WDS. In many cases, an existing AP (ie. Linksys, Netgear) may be used which does not support WDS. For these situations, a special piece of solftware called relayd can be used. Relayd is able to relay packets and achieve the same results.
Below is a tutorial explaining how to configure a Gateworks SBC to create a wireless bridge without using WDS.
It is possible to acheive a bridge-like client mode configuration with the help of relayd for Gateworks Single Board Computers. With this method you can bridge a standard Wireless AP to a wired LAN or a wireless WLAN. This is useful in the following configurations:
Note, if WDS is available on the Access Point and Client(for example if you were using Gateworks SBCs for both the AP and client), then WDS is recommended and the preferred method. Relayd is only recommended when WDS is not available. The WDS Tutorial is located here: WDS Bridge
The following steps need to be done for OpenWRT:
Find these by doing an opkg list on the target and seeing if they are there. If they are not, they will need to be added. Instructions for compiling and adding packages can be located here: Package Installation
Luci package management is shown belown with relay packages:
The GUI has been updated and thus the instructions have slightly changed.
Below are sample files. Items may change depending on different network configurations such as IP addresses, etc
root@OpenWrt:/# cat /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 'fde7:c973:4a6d::/48' config interface 'lan' option ifname 'eth0' option proto 'static' option ipaddr '192.168.43.55' option netmask '255.255.255.0' option ip6assign '60' config interface 'wwan' option proto 'dhcp' config interface 'stabridge' option proto 'relay' list network 'lan' list network 'wwan'
root@OpenWrt:/# cat /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 htmode 'HT20' option disabled '0' option txpower '27' option country 'US' option channel '6' config wifi-iface option network 'wwan' option ssid 'Netgear101' option encryption 'psk2' option device 'radio0' option mode 'sta' option bssid '5C:0A:5B:C5:AF:23' option key 'abc123'
参考网址:https://www.right.com.cn/FORUM/thread-190115-1-1.html
步骤如下:(所有步骤均是在二级路由下操作,主路由不需要动)
1,请给二级路由安装一个插件 插件名是 luci-proto-relay (有些固件是已安装的就不用再装了)
2,在 网络--接口 中把 lan 地址 改成 与主路由不同网段 比如192.168.34.1,
3,关闭 lan 的DHCP功能 同时给自己的网卡改成与二级路由同网段的ip 比如192.168.34.2
4,打开网络--无线 界面 点击搜索 出现 主路由 信号,然后连接之,
5,在输入密码界面下方有个 创建/分配 防火墙区域 ,请选择 lan 然后点击提交 ,最后保持其他选项默认保存 应用
6,在 网络--接口 中添加新接口 名称自拟 比如stabridge 接口协议选中继桥,英文是 Realy bridge 然后点提交
7,网络--接口 修改刚刚建的 stabridge 接口 在 下方有很多接口,你只要在 lan 和 wwan 前打勾即可。
8,打开防火墙界面,检查一下第一行 lan wwan-->wan 那一行是不是都选择了允许。没允许的改一下
9,最后 打开网络--无线 添加一个新的Ap 信号即可。然后重启 再连接二级路由试试看 是不是得到了主路由分配的ip
参考链接
http://trac.gateworks.com/wiki/OpenWrt/wireless/relayd