Dear Reader.
I love OpenWrt! I learn so much from you!
So here's my situation, I want to build a mesh network for learning purposes.
I also wish to enable SQM (bufferfloat)
My Situation:
I have Openwrt Version 18.06.4 running on:
TP-Link WNDR3600 (Modem) With IP 172.16.0.1 255.255.0.0 DHCP (Forced, starting from x.x.x.100)
TP-Link WNDR4300 (Mesh1) With IP 172.16.0.2 255.255.0.0
TP-Link WR1043ND (Mesh2) With IP 172.16.0.3 255.255.0.0
My Changes:
I configured Dropbear for LAN only
- Set my Admin password
- Added Mesh1 & Mesh2 in Modem it's DNS table.
My installation procedure
Login via SSH to update & Install the software
I've run the following commands (ascending) without error.
opkg update
opkg install kmod-batman-adv
opkg install batctl
opkg remove wpad-basic (Nothing is removed, cause it's not installed)
opkg install wpad-mesh-openssl
Reboot.
After Reboot
SCP to /etc/config/wireless & adding step 1 from tutorial
config wifi-iface 'mesh0'
option device 'radio5pci' (I changed this to radio0) (it's the wlan on tp-link)
option ifname 'mesh0'
option network 'nwi_mesh0'
option mode 'mesh'
option mesh_fwding '0'
option mesh_id 'meshnet'
option encryption 'psk2+ccmp'
option key 'test'
SAVE > SSH > Reboot
After Reboot
SCP to: /etc/config/network & add:
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'
SAVE > SSH > Reboot
After Reboot
Open SCP connection > Open /etc/config/network
and paste
Bridge With IPv4 Address
config interface 'vlan1111'
option type 'bridge'
option stp '1'
option ifname 'eth1.1111 bat0.1111'
option proto 'static'
option ipaddr '192.168.11.11'
option netmask '255.255.255.0'
option delegate '0'
Bridge Without IPv4 Address
config interface 'vlan2222'
option type 'bridge'
option stp '1'
option ifname 'eth1.2222 bat0.2222'
option proto 'none'
option auto '1'
option delegate '0'
Bridge Without Ethernet Interface
config interface 'vlan3333'
option type 'bridge'
option stp '1'
option ifname 'bat0.3333'
option proto 'none'
option auto '1'
option delegate '0'
SSH > Reboot > Result .
After Opening LUCI > network > interfaces i see:
BAT0 - unsuppored protocol type (wtf)
nwi_mesh0 ( unsuppored protocol type)
vlan 1111
vlan 2222
vlan 3333
And that's the point where I am stuck.
Who can help me?
Researched documents. and everything in there.
https://openwrt.org/docs/guide-user/network/wifi/mesh/batman