Open FreifunkUFO opened 11 years ago
the config at the moment is:
uci set wireless.radio2.disabled=0 uci set wireless.radio2.channel=6 uci set wireless.@wifi-iface[-1].ssid=Battlemesh uci set wireless.@wifi-iface[-1].ssid=Battlemesh uci commit wireless
uci set network.lan_olsr.ifname=@lan.10 uci set network.lan_bmx6.ifname=@lan.11 uci set network.lan_batadv.ifname=@lan.12 uci set network.lan_babel.ifname=@lan.13 uci del network.lan_mgmt uci set network.lan.type=bridge uci set network.lan.ifname="eth0 bat1" uci commit network
uci set dhcp.lan.ignore=1 uci commit dhcp
and at the moment, with that commands, the bat1 - management interface will NOT get an ip-adress any more (its 192.168.1.1:-o ), so no access from the battlemesh-management-node via ipv4! quickfix: at least one node without that usb-wifi-configuration at one battlemesh netzwork, so you can access to at least that one..
new commands with newest firmware are:
uci set wireless.radio2.disabled=0 uci set wireless.radio2.channel=6 uci set wireless.@wifi-iface[-1].ssid=Battlemesh
uci del network.lan_mgmt uci set network.lan.type=bridge uci set network.lan.ifname="eth0 bat1"
uci set network.mgmt.ifname="@lan"
uci set dhcp.lan.ignore=1 uci commit
uci set wireless.wbm3.ifname="usbwlan0" uci del wireless.wbm3.mcast_rate uci del wireless.wbm3.macaddr uci del wireless.wbm3.bssid uci set wireless.wbm3.network=lan uci set wireless.wbm3.mode=ap uci set wireless.wbm3.ssid=Battlemesh uci set wireless.wbm3.mode=ap uci set wireless.radio2.disabled=0 uci set wireless.radio2.channel=6 uci del network.lan_mgmt uci set network.lan.type=bridge uci set network.lan.ifname="eth0 bat1" uci set network.mgmt.ifname="@lan" uci set dhcp.lan.ignore=1 uci commit
at the moment there is a limit of 7 clients at each usb-wifi :-(
Jun 6 13:03:19 wbm-f9e0 daemon.info hostapd: usbwlan0: STA bc:77:37:95:7d:1f IEEE 802.11: associated (aid 7) Jun 6 13:03:19 wbm-f9e0 daemon.notice hostapd: usbwlan0: STA bc:77:37:95:7d:1f IEEE 802.11: Could not add STA to kernel driver Jun 6 13:03:19 wbm-f9e0 daemon.info hostapd: usbwlan0: STA 78:9e:d0:4a:b0:17 IEEE 802.11: authenticated Jun 6 13:03:19 wbm-f9e0 daemon.info hostapd: usbwlan0: STA 78:9e:d0:4a:b0:17 IEEE 802.11: associated (aid 8) Jun 6 13:03:22 wbm-f9e0 daemon.info hostapd: usbwlan0: STA bc:77:37:95:7d:1f IEEE 802.11: authenticated Jun 6 13:03:22 wbm-f9e0 daemon.info hostapd: usbwlan0: STA bc:77:37:95:7d:1f IEEE 802.11: associated (aid 7) Jun 6 13:03:22 wbm-f9e0 daemon.notice hostapd: usbwlan0: STA bc:77:37:95:7d:1f IEEE 802.11: Could not add STA to kernel driver Jun 6 13:03:23 wbm-f9e0 daemon.info hostapd: usbwlan0: STA bc:77:37:95:7d:1f IEEE 802.11: authenticated Jun 6 13:03:23 wbm-f9e0 daemon.info hostapd: usbwlan0: STA bc:77:37:95:7d:1f IEEE 802.11: associated (aid 7)
hm, i will try now:
uci set wireless.wbm1.ifname="usbwlan0" uci del wireless.wbm1.mcast_rate uci del wireless.wbm1.macaddr uci del wireless.wbm1.bssid uci set wireless.wbm1.network=lan uci set wireless.wbm1.mode=ap uci set wireless.wbm1.ssid=BattlemeshV6 uci set wireless.wbm1.mode=ap uci set wireless.radio2.disabled=0 uci set wireless.radio2.channel=11 uci set wireless.radio0.channel=6 uci del network.lan_mgmt uci set network.lan.type=bridge uci set network.lan.ifname="eth0 bat1" uci set network.mgmt.ifname="@lan" uci set dhcp.lan.ignore=1 uci commit
uci set wireless.wbm1.ifname="usbwlan0" uci del wireless.wbm1.mcast_rate uci del wireless.wbm1.macaddr uci del wireless.wbm1.bssid uci set wireless.wbm1.network=lan uci set wireless.wbm1.mode=ap uci set wireless.wbm1.ssid=BattlemeshV6 uci set wireless.wbm1.mode=ap uci set wireless.radio2.disabled=0 uci set wireless.radio2.channel=11 uci set wireless.radio0.channel=6 uci del network.lan_mgmt uci set network.lan.type=bridge uci set network.lan.ifname="eth0 bat1" uci set network.mgmt.ifname="@lan" uci set dhcp.lan.ignore=1 wireless.wbm3.encryption=psk2 wireless.wbm3.key=Punkrock uci commit
uci set wireless.wbm1.ifname="accesspoint" uci del wireless.wbm1.mcast_rate uci del wireless.wbm1.macaddr uci del wireless.wbm1.bssid uci set wireless.wbm1.network=lan uci set wireless.wbm1.mode=ap uci set wireless.wbm1.ssid=BattlemeshV6 uci set wireless.wbm1.mode=ap uci set wireless.radio2.disabled=0 uci set wireless.radio2.channel=11 uci set wireless.radio0.channel=6 uci del network.lan_mgmt uci set network.lan.type=bridge uci set network.lan.ifname="eth0 bat1" uci set network.mgmt.ifname="@lan" uci set dhcp.lan.ignore=1 uci set wireless.wbm1.encryption=psk2 uci set wireless.wbm1.key=Punkrock uci set wireless.radio0.channel=7 uci commit
uci set wireless.wbm1.ifname="accesspoint" uci del wireless.wbm1.mcast_rate uci del wireless.wbm1.macaddr uci del wireless.wbm1.bssid uci set wireless.wbm1.network=lan uci set wireless.wbm1.mode=ap uci set wireless.wbm1.ssid=Battlemesh uci set wireless.wbm1.mode=ap uci set wireless.radio2.disabled=0 uci set wireless.radio2.channel=11 uci set wireless.radio0.channel=6 uci del network.lan_mgmt uci set network.lan.type=bridge uci set network.lan.ifname="eth0 bat1" uci set network.mgmt.ifname="@lan" uci set dhcp.lan.ignore=1 uci set wireless.radio0.channel=7 uci commit
for tplink 3040:
uci add wireless wifi-iface uci set wireless.@wifi-iface[1].ifname="accesspoint" uci set wireless.@wifi-iface[1].network=lan uci set wireless.@wifi-iface[1].mode=ap uci set wireless.@wifi-iface[1].ssid=Battlemesh uci set wireless.@wifi-iface[1].device=radio0 uci del network.lan_mgmt uci set network.lan.type=bridge uci set network.lan.ifname="eth0 bat1" uci set network.mgmt.ifname="@lan" uci set dhcp.lan.ignore=1 uci commit
oh, we also need a /etc/init.d/firewall disable
some of the usb-wifi-sticks are now in AP-Mode and bridged to bat1 management vlan.. maybe we should do that by default? maybe we make more vAPs and could bridge/route all routingprotokoll-vlan to that?