Network and Yun
- Details
- Written by Sonny Yu
/etc/init.d/dnsmasq disable /etc/init.d/dnsmasq stop
Or
uci set dhcp.lan.ignore=1 uci commit dhcp /etc/init.d/dnsmasq restart
Write comment (0 Comments)
- Details
- Written by Sonny Yu
- configuration 1 : wifi connected to my home wifi as client, ethernet cable sometimes connected.
- configuration 2 : wifi as (bridged or not) AP using the ethernet cable.
- configuration 3 : wifi as AP, without ethernet cable.
configuration 1 : sta for managed (client) mode
uci import </root/sta.conf reboot
configuration 2 : bridge mode
uci import </root/bridge.conf reboot
configuration 3 : ap mode Access Point
uci import </root/ap.conf reboot
Write comment (0 Comments)
- Details
- Written by Sonny Yu
Log into your router, using the LuCi frontend by click advanced configuration panel link
go to the Network/Interfaces tab: There you should see your LAN device. Edit it to have an appropriate IP address from your local subnet. Most often your network will be 192.168.0.0 Lets put in a static IP address, so we can find our router in case something goes wrong. Also make sure to set the netmask (in this case 255.255.255.0), gateway and DNS server (both probably should point to your router, 192.168.0.1). make sure Disable DHCP for this interface as well.
Now go to the Physical Settings tab. Here, it's important to check "Bridge interfaces" and to select both the ethernet adapter, and the wireless network. One of devices will say "wan", the other one will say "lan". Last click save & apply
Set bridge mode between 2 AP(Router,Yun):
wlan0 (WIFI) and eth1 (ethernet) bridge together as br-lan
br-lan (wlan0,eth1 )
static ip:192.168.0.2
backup system wide setting:
uci export > /root/bridge.conf
whenever you need restore it:
uci import </root/bridge.conf reboot
Write comment (0 Comments)
- Details
- Written by Sonny Yu
Setup STA mode first:
/index.php/network-and-yun/28-sta-for-managed-client-mode
Switch to first BSSID:
#!/bin/ash uci set wireless.@wifi-iface[0].bssid=14:CF:E2:A2:XX:XX uci commit wifi down; wifi up /etc/init.d/network restart
Switch to second BSSID:
#!/bin/ash uci set wireless.@wifi-iface[0].bssid=48:5B:39:E7:XX:XX uci commit wifi down; wifi up /etc/init.d/network restart
Write comment (0 Comments)
Page 1 of 3