Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Internet Access: WAN Failover #148

Closed
unclelez opened this issue Apr 30, 2023 · 9 comments
Closed

Internet Access: WAN Failover #148

unclelez opened this issue Apr 30, 2023 · 9 comments

Comments

@unclelez
Copy link

unclelez commented Apr 30, 2023

Hi, and thank you for your help.

I'm currently expensing an issue that might be a bug. I'm using a static IP with NBN FTTP Fixed Ethernet and WWAN
(WAN Sensing Off). When the Fixed Ethernet goes offline, it fails to route the traffic via the WWAN but failover works fine when the Broadband is set to VDSL2

The Broadband tab show Fixed Ethernet disconnected and the WWAN online but the light on the front of the router is Green.

Any help would be great.

@unclelez
Copy link
Author

unclelez commented Apr 30, 2023

image

root@mymodem:~# ping 8.8.8.8
PING 8.8.8.8 (8.8.8.8): 56 data bytes

--- 8.8.8.8 ping statistics ---
75 packets transmitted, 0 packets received, 100% packet loss

@seud0nym
Copy link
Owner

seud0nym commented May 1, 2023

I guess you have turned on the Permanent WAN switch?

I will have to set up to do some testing. I can't test vDSL, but I can simulate FttP.

@unclelez
Copy link
Author

unclelez commented May 1, 2023 via email

@seud0nym
Copy link
Owner

seud0nym commented May 3, 2023

Sorry, just double checking: you don't have IPv6 enabled at all, and the SIM profile is also IPv4 with no IPv6 enabled. Is that correct?

@unclelez
Copy link
Author

unclelez commented May 3, 2023 via email

@seud0nym
Copy link
Owner

seud0nym commented May 6, 2023

I have done a couple of tests and I can't reproduce your issue.

What does this command return when routing fails:

ip route show

@unclelez
Copy link
Author

unclelez commented May 9, 2023

The LED will always stay green regardless if WAN cable is connected or not

Output on Ethernet interface

root@mymodem:~# ip route show
default via XXX.XXX.255.101 dev eth4 proto static metric 1 
default via XXX.XXX.164.201 dev wwan0 proto static src XXX.XXX.164.200 metric 20 
XXX.XXX.164.192/28 dev wwan0 proto static scope link metric 20 
XXX.XXX.255.100/30 dev eth4 proto static scope link metric 1 
192.168.1.0/24 dev br-lan proto kernel scope link src 192.168.1.1 
192.168.2.0/25 dev wl0_1 proto kernel scope link src 192.168.2.126 
192.168.2.128/25 dev wl1_1 proto kernel scope link src 192.168.2.254 
239.0.0.0/8 dev br-lan scope link 

Output on VDSL2 interface

default via XXX.XXX.164.201 dev wwan0 proto static src XXX.XXX.164.200 metric 20 
XXX.XXX.164.192/28 dev wwan0 proto static scope link metric 20 
192.168.1.0/24 dev br-lan proto kernel scope link src 192.168.1.1 
192.168.2.0/25 dev wl0_1 proto kernel scope link src 192.168.2.126 
192.168.2.128/25 dev wl1_1 proto kernel scope link src 192.168.2.254 
239.0.0.0/8 dev br-lan scope link 

@unclelez
Copy link
Author

unclelez commented May 9, 2023

The LED will always stay green regardless if WAN cable is connected or not

2023-05-09 21_40_28-Window

@seud0nym
Copy link
Owner

The LED handling is really complicated, and doesn't understand when both wan and wwan are simultaneously enabled. Because it is really complicated, I haven't touched it, and I won't until I get a really good handle on what causes the LED state to change and how it is changed.

The status of "Ethernet disabled" is confusing - it just means that it is down. I will fix that in the next release.

Your routing tables look fine. Packets should follow the default route on the active interface with the lowest metric. So when your ethernet cable is pulled, it should ignore the XXX.XXX.255.101 route, and go to the default route with the next highest metric (XXX.XXX.164.201 metric=20).

I assume your VDSL2 routing table has no route with a metric of 1 because you don't actually have a VDSL connection.

I cannot explain why it is not working for you.

What does the following command show:

traceroute 8.8.8.8

(It probably won't work at all, but if it does it might tell us something...)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants