Guys,
i would like to learn more about Mesh network (with Batman-ADV), in order not to mess up the home network i dug out the old TP-link 1043 and used that for my experiments
I understand that it is a not recommended router (v1) and that it makes little sense to have only 1 node, but the idea is that if i start small i use this setup as a proof-of-concept without getting lynched by the family if something fails
current setup: ISP modem with DMZ, openwrt on archer c7 routing guest/standard wifis, laptop/pc/mobiles scattered around the house
mesh attempt: ISP modem with DMZ, openwrt on 1043 with mesh/batman enabled, laptop connected to mesh
mesh target: ISP modem with DMZ, openwrt on archer c7 with mesh/batman enabled, unused routers (like the 1043) working as mesh node in the different rooms, laptop/pc/mobiles connected to the mesh
unfortunately i cannot get my laptop to connect to the mesh
I initially though that the problem was with authentication and the candela firmware, so i removed encryption and i installed the non ct kmod-ath10k
but still i cannot get any connection, the laptop sees the mesh as a "normal" wifi, but no connection is established.
as it happened in the past, i probably made some silly mistake and i would really appreciate if someone could point me in the right direction
sorry if my explanation is not extremely clear, i hope this is enough to give you an idea of what i am trying to accomplish, if more info is needed please let me know
thanks in advance
M
openwrt version on 1043: OpenWrt SNAPSHOT, r11237-d1072096f4
i installed kmod-batman-adv, wpad-mesh-openssl, batctl
removed wpad-mini (couldn't find wpad-basic)
root@OpenWrt:~# iw phy | fgrep mesh
* mesh point
* #{ managed } <= 2048, #{ AP, mesh point } <= 8, #{ P2P-client, P2P-GO } <= 1, #{ IBSS } <= 1,
wireless config looks like this:
config wifi-device 'radio0'
option type 'mac80211'
option channel '11'
option hwmode '11g'
option path 'platform/ahb/180c0000.wmac'
option htmode 'HT20'
config wifi-iface 'default_radio0'
option device 'radio0'
option network 'lan'
option mode 'ap'
option ssid 'OpenWrt'
option encryption 'none'
config wifi-iface 'mesh0'
option device 'radio0'
option ifname 'mesh0'
option network 'nwi_mesh0'
option mode 'mesh'
option mesh_fwding '0'
option mesh_id 'SMASH_THE_MESH'
option encryption 'none'
this is what ip link gives:
root@OpenWrt:~# ip link
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN qlen 1000
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc fq_codel state UP qlen 1000
link/ether 54:e6:fc:9a:36:8e brd ff:ff:ff:ff:ff:ff
5: br-lan: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP qlen 1000
link/ether 54:e6:fc:9a:36:8e brd ff:ff:ff:ff:ff:ff
6: eth0.1@eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue master br-lan state UP qlen 1000
link/ether 54:e6:fc:9a:36:8e brd ff:ff:ff:ff:ff:ff
8: eth0.2@eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP qlen 1000
link/ether 54:e6:fc:9a:36:8e brd ff:ff:ff:ff:ff:ff
9: br-vlan211: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP qlen 1000
link/ether 2e:fe:2b:09:ea:64 brd ff:ff:ff:ff:ff:ff
10: bat0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue master br-vlan211 state UNKNOWN qlen 1000
link/ether 2e:fe:2b:09:ea:64 brd ff:ff:ff:ff:ff:ff
13: mesh0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 2304 qdisc noqueue master bat0 state UP qlen 1000
link/ether 54:e6:fc:9a:36:8e brd ff:ff:ff:ff:ff:ff
14: wlan0-1: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue master br-lan state UP qlen 1000
link/ether 56:e6:fc:9a:36:8e brd ff:ff:ff:ff:ff:ff
" iw dev mesh0 station dump" didn't give me anything, so i tried only iw dev:
phy#0
Interface wlan0-1
ifindex 14
wdev 0x5
addr 56:e6:fc:9a:36:8e
ssid OpenWrt
type AP
channel 11 (2462 MHz), width: 20 MHz, center1: 2462 MHz
txpower 23.00 dBm
multicast TXQ:
qsz-byt qsz-pkt flows drops marks overlmt hashcol tx-bytes tx-packets
0 0 585 0 0 0 0 39857 585
Interface mesh0
ifindex 13
wdev 0x4
addr 54:e6:fc:9a:36:8e
type mesh point
channel 11 (2462 MHz), width: 20 MHz, center1: 2462 MHz
txpower 23.00 dBm
multicast TXQ:
qsz-byt qsz-pkt flows drops marks overlmt hashcol tx-bytes tx-packets
0 0 623 0 0 0 0 67456 623
this is my network config:
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 'fd11:e6f9:4536::/48'
config interface 'lan'
option type 'bridge'
option ifname 'eth0.1'
option proto 'static'
option ipaddr '192.168.2.2'
option netmask '255.255.255.0'
option ip6assign '60'
config interface 'wan'
option ifname 'eth0.2'
option proto 'static'
option ipaddr '192.168.1.64'
option netmask '255.255.255.0'
option gateway '192.168.1.254'
option dns '192.168.1.254'
config interface 'wan6'
option ifname 'eth0.2'
option proto 'dhcpv6'
config switch
option name 'switch0'
option reset '1'
option enable_vlan '1'
config switch_vlan
option device 'switch0'
option vlan '1'
option ports '1 2 3 4 5t'
config switch_vlan
option device 'switch0'
option vlan '2'
option ports '0 5t'
config interface 'bat0'
option proto 'batadv'
option routing_algo 'BATMAN_IV'
option aggregated_ogms 1
option ap_isolation 0
option bonding 0
option fragmentation 1
#option gw_bandwidth '10000/2000'
option gw_mode 'off'
#option gw_sel_class 20
option log_level 0
option orig_interval 1000
option bridge_loop_avoidance 1
option distributed_arp_table 1
option multicast_mode 1
option network_coding 0
option hop_penalty 30
option isolation_mark '0x00000000/0x00000000'
config interface 'nwi_mesh0'
option mtu '2304'
option proto 'batadv_hardif'
option master 'bat0'
config interface 'vlan211'
option type 'bridge'
option stp '1'
option ifname 'eth0.1 bat0'
option proto 'static'
option ipaddr '192.168.2.11'
option netmask '255.255.255.0'
option delegate '0'
and eventually the outcome from batctl n
root@OpenWrt:~# batctl n
[B.A.T.M.A.N. adv openwrt-2019.3-0, MainIF/MAC: mesh0/54:e6:fc:9a:36:8e (bat0/2e:fe:2b:09:ea:64 BATMAN_IV)]
IF