FOR TIPS, gUIDES & TUTORIALS

subscribe to our Youtube

GO TO YOUTUBE

14086 questions

16729 answers

27457 comments

53738 members

0 votes
26 views 1 comments
by
Hello folks. I'd like to have some kind of visible indication as to which WAN interface is currently in use - maybe green for preferred red for failover or anything similar. What would be the easiest way to achieve tnis? Thanks

1 Answer

0 votes
by

Hello,

The feature is missing from the WebUI at the moment. From 7.4 firmware release, WebUI Overview window should have indication of currently used Main WAN interface. 

As of now, you can check Network -> Interfaces section, where Main WAN is the highest online interface in the list. 

It can also be derived from the routing table from Status -> Routes -> General routes section as a route with lowest metric.

A couple of CLI/SSH commands:

  •  ubus call vuci.network.network interfaces_status | grep Main
  • ip route get 8.8.8.8

will also provide you main WAN interface name.

Best regards,

Best answer
by
Thanks. Can I reasonably poll the device regularly (say 5 mins?) over SSH? I'm thinking in terms of using a raspberry pi that could run a remote display or operate some indicator LEDs on the GPIO.