FOR TIPS, gUIDES & TUTORIALS

subscribe to our Youtube

GO TO YOUTUBE

14455 questions

17168 answers

28195 comments

0 members

We are migrating to our new platform at https://community.teltonika.lt. Moving forward, you can continue discussions on this new platform. This current platform will be temporarily maintained for reference purposes.
0 votes
242 views 0 comments
by anonymous
Hello:

From the webUI we know how to change the WAN priority to lower than that GPRS priority so that GPRS will be primary and fail over to WAN(eth1).

How to I check this from the bash console?

How do I change this form the bash console?

Where how do I change this in the /etc/config/network file?

Cheers,

John

1 Answer

0 votes
by anonymous

Hello,

Failover configuration settings as well as load balancing options are stored in /etc/config/mwan3 file.

Here are a couple of ways you can go about editing information.

  • By using uci commands like this: 
    • uci set mwan3.<interface_title>_member_mwan.metric='<integer_value>'
    • uci commit
  • By editing interface metric values in mwan3 file with a text editor. For example:
    • vim /etc/config/mwan3

After setting your vales you need to enter following command:

  • /etc/init.d/mwan3 restart

Best regards,

Žygimantas