1 |
Hi all, |
2 |
|
3 |
For my home network I am generally using wireless to get connected to the |
4 |
network and the internet. |
5 |
|
6 |
However for copying some large files I use the wire. |
7 |
|
8 |
That means I get 2 IPs in the same range. |
9 |
And both interfaces get the same metric : 0. |
10 |
|
11 |
I found out I can modify the metric for the default route using metric_wlan0. |
12 |
Code: |
13 |
|
14 |
Destination Gateway Genmask Flags Metric Ref Use Iface |
15 |
192.168.1.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0 |
16 |
192.168.1.0 0.0.0.0 255.255.255.0 U 0 0 0 wlan0 |
17 |
0.0.0.0 192.168.1.1 0.0.0.0 UG 2 0 0 eth0 |
18 |
0.0.0.0 192.168.1.1 0.0.0.0 UG 100 0 0 wlan0 |
19 |
|
20 |
(this is not the full routing table) |
21 |
However this changes the metric of the default route. |
22 |
Not of the route that is specifically for the local network. |
23 |
of course I can do this manually. |
24 |
However that is alot of hassle and seems to be something that should be |
25 |
configurable use files. |
26 |
|
27 |
Does anyone knows how I can accomplish this? Or how I can change the metric for |
28 |
each route for the wlan0 interface? |
29 |
|
30 |
Thanks in advance! |