Line 7: |
Line 7: |
| <pre>opkg update | | <pre>opkg update |
| opkg install relayd</pre> | | opkg install relayd</pre> |
| + | |
| + | ===WiFi client configuration=== |
| + | ---- |
| + | Add WiFi interface to make your router act as a WiFi client (connect to another AP) |
| + | |
| + | <pre>uci add wireless wifi-iface |
| + | uci set wireless.@wifi-iface[-1]=wifi-iface</pre> |
| + | |
| + | Add new WiFi interface to 2.4ghz device, can specify 'radio1' for 5ghz |
| + | |
| + | <pre>uci set wireless.@wifi-iface[-1].device='radio0' |
| + | uci set wireless.@wifi-iface[-1].mode='sta' |
| + | uci set wireless.@wifi-iface[-1].network='wifi_wan'</pre> |
| + | |
| + | Change SSID here to an SSID that the router will be connecting to |
| + | |
| + | <pre>uci set wireless.@wifi-iface[-1].ssid='RUT_4474_2G'</pre> |
| + | |
| + | Change BSSID here to BSSID that the router will be connecting to (L2 address) |
| + | |
| + | <pre>uci set wireless.@wifi-iface[-1].bssid='00:1E:42:44:44:74'</pre> |
| + | |
| + | Use appropriate auth method, PSK2 = WPA2-PSK here |
| + | |
| + | <pre>uci set wireless.@wifi-iface[-1].encryption='psk2'</pre> |
| + | |
| + | Change secret to appropriate one |
| + | |
| + | <pre>uci set wireless.@wifi-iface[-1].key='Vc80Tps1' |
| + | uci set wireless.@wifi-iface[-1].disabled='0' |
| + | uci set wireless.@wifi-iface[-1].skip_inactivity_poll='0' |
| + | uci set wireless.@wifi-iface[-1].wifi_id='wifi1'</pre> |