I setup my Luxul with an Australian NBN (looks like a plain simple ethernet WAN to OpenWRT) and just connected a TP-Linix M7350 LTE modem via USB and both work ok without mwan3 - i.e. when the NBN is disconnected the USB interface takes over and when the NBN is reconnected it picks up the traffic again.
But I want mwan3 for the extra smarts:
- Use "ping" to verify that the NBN is really up
- prevent certain local hosts from using the much more limited bandwidth of the LTE link when the NBN is down.
I set a metric to both (10 for NBN, 20 for LTE, identified as usb0
) but the mwan3 interface keeps saying that there is no metric set on the LTE interface.
Can someone please have a look at this and tell me what am I missing?
Here is the configuration:
root@OpenWrt:/etc/config# ubus call system board; \
> uci export network; uci export mwan3; \
> ip -4 addr ; ip -4 ro li tab all ; ip -4 ru; mwan3 status
{
"kernel": "5.15.167",
"hostname": "OpenWrt",
"system": "ARMv7 Processor rev 0 (v7l)",
"model": "Luxul ABR-4500 V1",
"board_name": "luxul,abr-4500-v1",
"rootfs_type": "squashfs",
"release": {
"distribution": "OpenWrt",
"version": "23.05.5",
"revision": "r24106-10cc5fcd00",
"target": "bcm53xx/generic",
"description": "OpenWrt 23.05.5 r24106-10cc5fcd00"
}
}
package network
config interface 'loopback'
option device 'lo'
option proto 'static'
option ipaddr '127.0.0.1'
option netmask '255.0.0.0'
config globals 'globals'
option ula_prefix 'fd6d:21d6:623a::/48'
option packet_steering '1'
config device
option name 'br-lan'
option type 'bridge'
list ports 'lan1'
list ports 'lan2'
list ports 'lan4'
config interface 'lan'
option device 'br-lan'
option proto 'static'
option ipaddr '172.16.69.1'
option netmask '255.255.255.0'
option ip6assign '60'
config device
option name 'wan'
option macaddr 'A4:13:4E:62:50:b3'
config interface 'wan'
option device 'wan'
option proto 'pppoe'
option username 'user@wba.nbnonline.com.au'
option password 'pass'
option ipv6 'auto'
option metric '10'
option peerdns '0'
list track_ip '1.0.0.1'
list track_ip '1.1.1.1'
list track_ip '208.67.222.222'
list track_ip '208.67.220.220'
option family 'ipv4'
list dns '8.8.8.8'
list dns '8.8.4.4'
config interface 'wan6'
option device 'wan'
option proto 'dhcpv6'
config device
option type '8021q'
option ifname 'lan3'
option vid '3'
option name 'lan3.3'
config interface 'wanb'
option proto 'dhcp'
option device 'usb0'
option metric '20'
list track_ip '1.0.0.1'
list track_ip '1.1.1.1'
list track_ip '208.67.222.222'
list track_ip '208.67.220.220'
option family 'ipv4'
package mwan3
config globals 'globals'
option mmx_mask '0x3F00'
config interface 'wan'
option enabled '1'
list track_ip '1.0.0.1'
list track_ip '1.1.1.1'
list track_ip '208.67.222.222'
list track_ip '208.67.220.220'
option family 'ipv4'
option reliability '2'
config interface 'wan6'
option enabled '0'
list track_ip '2606:4700:4700::1001'
list track_ip '2606:4700:4700::1111'
list track_ip '2620:0:ccd::2'
list track_ip '2620:0:ccc::2'
option family 'ipv6'
option reliability '2'
config member 'wan_m1_w3'
option interface 'wan'
option metric '1'
option weight '3'
config member 'wan_m2_w3'
option interface 'wan'
option metric '2'
option weight '3'
config member 'wan6_m2_w3'
option interface 'wan6'
option metric '2'
option weight '3'
config policy 'wan_only'
list use_member 'wan_m1_w3'
list use_member 'wan6_m1_w3'
config policy 'balanced'
list use_member 'wan_m1_w3'
list use_member 'wan6_m1_w3'
config rule 'https'
option sticky '1'
option dest_port '443'
option proto 'tcp'
option use_policy 'balanced'
config rule 'default_rule_v4'
option dest_ip '0.0.0.0/0'
option use_policy 'balanced'
option family 'ipv4'
config rule 'default_rule_v6'
option dest_ip '::/0'
option use_policy 'balanced'
option family 'ipv6'
config interface 'usb0'
option enabled '1'
option initial_state 'online'
option family 'ipv4'
list track_ip '8.8.8.8'
option track_method 'ping'
option reliability '1'
option count '1'
option size '56'
option max_ttl '60'
option timeout '4'
option interval '10'
option failure_interval '5'
option recovery_interval '5'
option down '5'
option up '5'
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000
inet 127.0.0.1/8 scope host lo
valid_lft forever preferred_lft forever
13: usb0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc fq_codel state UNKNOWN group default qlen 1000
inet 192.168.0.154/24 brd 192.168.0.255 scope global usb0
valid_lft forever preferred_lft forever
22: br-lan: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP group default qlen 1000
inet 172.16.69.1/24 brd 172.16.69.255 scope global br-lan
valid_lft forever preferred_lft forever
23: pppoe-wan: <POINTOPOINT,MULTICAST,NOARP,UP,LOWER_UP> mtu 1492 qdisc fq_codel state UNKNOWN group default qlen 3
inet 100.71.121.60 peer 203.134.4.193/32 scope global pppoe-wan
valid_lft forever preferred_lft forever
default via 203.134.4.193 dev pppoe-wan table 1 proto static metric 10
172.16.69.0/24 dev br-lan table 1 proto kernel scope link src 172.16.69.1
192.168.0.0/24 dev usb0 table 1 proto static scope link metric 20
203.134.4.193 dev pppoe-wan table 1 proto kernel scope link src 100.71.121.60
default via 203.134.4.193 dev pppoe-wan proto static metric 10
default via 192.168.0.1 dev usb0 proto static src 192.168.0.154 metric 20
172.16.69.0/24 dev br-lan proto kernel scope link src 172.16.69.1
192.168.0.0/24 dev usb0 proto static scope link metric 20
203.134.4.193 dev pppoe-wan proto kernel scope link src 100.71.121.60
local 100.71.121.60 dev pppoe-wan table local proto kernel scope host src 100.71.121.60
local 127.0.0.0/8 dev lo table local proto kernel scope host src 127.0.0.1
local 127.0.0.1 dev lo table local proto kernel scope host src 127.0.0.1
broadcast 127.255.255.255 dev lo table local proto kernel scope link src 127.0.0.1
local 172.16.69.1 dev br-lan table local proto kernel scope host src 172.16.69.1
broadcast 172.16.69.255 dev br-lan table local proto kernel scope link src 172.16.69.1
local 192.168.0.154 dev usb0 table local proto kernel scope host src 192.168.0.154
broadcast 192.168.0.255 dev usb0 table local proto kernel scope link src 192.168.0.154
0: from all lookup local
1001: from all iif pppoe-wan lookup 1
2001: from all fwmark 0x100/0x3f00 lookup 1
2061: from all fwmark 0x3d00/0x3f00 blackhole
2062: from all fwmark 0x3e00/0x3f00 unreachable
3001: from all fwmark 0x100/0x3f00 unreachable
32766: from all lookup main
32767: from all lookup default
Interface status:
interface wan is online 00h:06m:25s, uptime 00h:06m:27s and tracking is active
interface wan6 is offline and tracking is down
interface usb0 is offline and tracking is paused
Current ipv4 policies:
balanced:
wan (100%)
wan_only:
wan (100%)
Current ipv6 policies:
balanced:
unreachable
wan_only:
unreachable
Directly connected ipv4 networks:
172.16.69.0/24
224.0.0.0/3
192.168.0.255
172.16.69.255
127.0.0.0/8
127.255.255.255
203.134.4.193
172.16.69.1
192.168.0.0/24
192.168.0.154
127.0.0.1
Directly connected ipv6 networks:
fe80::8c8f:7632:f4aa:c6fa
2403:9e00:22c4:bc00::/64
fd6d:21d6:623a::/64
fe80::4a5a:dff:fe43:2213
fe80::/64
Active ipv4 user rules:
1264 76811 S https tcp -- * * 0.0.0.0/0 0.0.0.0/0 multiport dports 443
2598 418K - balanced all -- * * 0.0.0.0/0 0.0.0.0/0
Active ipv6 user rules:
825 71892 S https tcp * * ::/0 ::/0 multiport dports 443
1799 810K - balanced all * * ::/0 ::/0