mips74k-ar71xx-lede-patch
mips74k-ar71xx-lede-patch copied to clipboard
Multiple WAN interfaces
Hello, I've built the latest LEDE 17.01 with these patches and some small adjustments (kernel 4.4.83) for my WR1043ND v2. It has been running pretty nicely, however I'm having trouble setting up multiple wan interfaces.
For that I created a VLAN with untagged LAN port on eth0
to function as a WAN port.
Here is my WAN switch configuration:
config switch_vlan
option device 'switch0'
option vlan '3'
option vid '3'
option ports '5 6t'
config switch_vlan
option device 'switch0'
option vlan '4'
option vid '4'
option ports '4 6t'
This works, and by now I have 2 WAN interfaces set up.
However, only one of them can access the internet at a time (based on metric). If both WAN interfaces are up, only the one with lower metric will work. The second interface is still accessible, however, I can only ping the gateway subnet (255.255.255.0) and just can't reach further.
# traceroute 8.8.8.8 -i eth0.3 (interface with lower metric)
traceroute to 8.8.8.8 (8.8.8.8), 30 hops max, 38 byte packets
1 192.168.1.1 (192.168.1.1) 0.295 ms 0.218 ms 0.224 ms (WAN gateway)
2 10.59.74.1 (10.59.74.1) 1.352 ms 0.547 ms 0.558 ms
3 further into the ISP's network...
# traceroute 8.8.8.8 -i eth0.4 (higher metric)
traceroute to 8.8.8.8 (8.8.8.8), 30 hops max, 38 byte packets
1 10.50.11.1 (10.50.11.1) 3.028 ms 1.660 ms 1.152 ms (WAN gateway)
2 * * *
As you can see here, the interface eth0.4
clearly cannot reach any further.
As I have tried almost everything, It got me thinking if its not something related to these patches (fast path etc.)
Thanks in advance!
Also this looks quite bad...
# cat /sys/fast_classifier/debug_info
size=89 offload=0 offload_no_match=0 offloaded=0 done=0 offloaded_fail=191 done_fail=164
I have built it with kmod-fast-classifier & kmod-shortcut-fe enabled
Thing is SFE uses fwmark like MWAN3 so that is the problem
Hm, I thought even so both WANs can be used at the same time.
Hopefully we can somehow fix this issue. MWAN3 is one of the most useful features available.