Il 04/02/2019 19:29, Luuk wrote:
On 4-2-2019 17:21, Lew Pitcher wrote:
Joe rock wrote:
hello,
I observed that when I connect a usb android tethering to a
windows machine ( that have a ethernet connection functional ) ,
the default route change automatically, and windows use the usb
route to go on internet.
Why happened this?
It has (something) to do with 'metric': https://en.wikipedia.org/wiki/Metrics_(networking)
Ok, I understood. The default gateway will go with the lowest metric.
In my case I have:
netstat -rn
https://justpaste.it/2c9m8
Route active:
network address Mask Gateway Interface Metric
0.0.0.0 0.0.0.0 192.168.42.129 192.168.42.165 10
0.0.0.0 0.0.0.0 192.168.1.1 192.168.1.10 25
So the metric of gateway 192.168.42.129 is smaller than 192.168.1.1 ,
so the default gateway is set to 192.168.42.129 ( it's the usb tethering).
I'm looking from use 192.168.42.129 as default gateway to go on
internet, and 192.168.1.1 ( the dsl router) to use only 192.168.1.1/24 ( internal lan network).
How may I do it with windows using "route" command from cmd prompt ?
Thank you very much.
Mirko
I'm looking for windows firewall at application level,
to set program A to use ethernet , and program B to use usb thetering.
I search on google but I didnt found nothing about it.
Who know anything more about firewall/routing in windows?
You're more likely to get a relevant answer about Microsoft Windows
firewalls and routing from a group that addresses that topic than you are
from a group that addresses networking under Linux.
Redirecting this to comp.os.ms-windows.networking.misc
Routing has to do with networking, that's why the basic rules apply to
both linux and windows.
The implementation of that rules, and how to apply those rules, is
another story.
HTH
--- SoupGate-Win32 v1.05
* Origin: fsxNet Usenet Gateway (21:1/5)