From 5434b304dd53b90faa8b8375f514ad8650c134ec Mon Sep 17 00:00:00 2001 From: backbone Date: Mon, 18 Apr 2022 19:01:56 +0300 Subject: [PATCH] metric cmds --- README | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 README diff --git a/README b/README new file mode 100644 index 0000000..c1e038e --- /dev/null +++ b/README @@ -0,0 +1,20 @@ +=== SET IDENTICAL METRICS === +sudo route add 0.0.0.0 via 192.168.2.3 metric 600 +sudo route add default via 192.168.2.3 metric 600 +sudo route add 0.0.0.0/0 via 192.168.2.3 metric 600 +sudo route add 0.0.0.0/0 gw 192.168.2.3 metric 600 +sudo route del 0.0.0.0/0 gw 192.168.2.3 metric 600 +sudo route add 0.0.0.0/0 gw 192.168.2.3 metric 600 +sudo route del 0.0.0.0/0 gw 192.168.2.3 metric 600 +sudo route add default gw 192.168.2.3 metric 600 +sudo route del default gw 192.168.2.3 metric 600 +sudo route del default gw 192.168.2.3 metric 600 +set ipv4.route-metric 100 +sudo set ipv4.route-metric 100 +sudo route add default gw 192.168.2.3 metric 100 +sudo route add default gw 192.168.2.3 metric 100 link table 102 +sudo ip route delete default via 192.168.43.1 dev wifi0 metric 100 +rm 'set ipv4.route-metric 100' +sudo ip route del default via 192.168.43.1 dev wifi0 proto dhcp metric 100 +sudo ip route del default via 192.168.2.2 dev wan0 proto static metric 100 +sudo ip route del default via 192.168.2.2 dev wan0 proto static metric 100