FOR TIPS, gUIDES & TUTORIALS

subscribe to our Youtube

GO TO YOUTUBE

14232 questions

16882 answers

27767 comments

54450 members

0 votes
173 views 0 comments
by
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

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