[suggestion] Default route improvement

I’ve been dealing with MT connected to three ISP links, and I needed one simple feature evailable even under Windows - option to set materic for the interface.

Thing is MT sets distance for dynamic default routes on it’s own (or at least I could not find a way to make a change). If I want default route to have changed metrics I have to set static default route. Problem is that I have an dynamic IP and when IP changes even gateway changes, so my static default routes became obsolette.

Windows has simple option, one can set importance order of intefaces, and metric for default routes on that interfaces would be set according to that settings.

Is it possible on MT?

you can use /routing filters and put a rule into the ‘dynamic-in’ chain. You DHCP gateway can be modified per your rules there.

note for MT, please add a ‘interface’ specifier to routing filters! If you have more than 1 DHCP interface you can’t control them separately.

There is another way..

In DHCP-Client Turn off Add Default Route..

In Routing add a route using the Interface as the Gateway instead of a IP address. This way you can specify a cost..

Example

DST-ADDRESS PREF-SRC G GATEWAY DISTANCE INTERFACE

0 S 0.0.0.0/0 r 3g1 10 3g1
1 A S 0.0.0.0/0 r zen 5 zen
2 A S 10.0.0.0/8 r 10.65.81.254 1 redbus
3 ADC 10.65.81.254/32 10.65.81.235 0 redbus
4 ADC 10.81.235.0/24 10.81.235.254 0 Secure
5 ADC 10.112.112.132/32 10.227.211.34 0 3g1
6 ADC 62.3.86.7/32 82.69.103.144 0 zen
7 ADC 192.168.1.0/24 192.168.1.10 0 dsl1

Lee

This setup will work only on point to point networks otherwise you have to use routing filter as changeip said.

I understand - why simple when it may be done in complicated way :slight_smile: