public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-user] configure wlan0 route metric
@ 2011-04-12 21:14 deadeyes
  2011-04-13  9:33 ` Kfir Lavi
  0 siblings, 1 reply; 8+ messages in thread
From: deadeyes @ 2011-04-12 21:14 UTC (permalink / raw
  To: gentoo-user

Hi all,

For my home network I am generally using wireless to get connected to the
network and the internet.

However for copying some large files I use the wire.

That means I get 2 IPs in the same range.
And both interfaces get the same metric : 0.

I found out I can modify the metric for the default route using metric_wlan0.
Code:

Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
192.168.1.0     0.0.0.0         255.255.255.0   U     0      0        0 eth0
192.168.1.0     0.0.0.0         255.255.255.0   U     0      0        0 wlan0
0.0.0.0         192.168.1.1     0.0.0.0         UG    2      0        0 eth0
0.0.0.0         192.168.1.1     0.0.0.0         UG    100    0        0 wlan0

(this is not the full routing table)
However this changes the metric of the default route.
Not of the route that is specifically for the local network.
of course I can do this manually.
However that is alot of hassle and seems to be something that should be
configurable use files.

Does anyone knows how I can accomplish this? Or how I can change the metric for
each route for the wlan0 interface?

Thanks in advance!




^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2011-04-14 20:26 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-04-12 21:14 [gentoo-user] configure wlan0 route metric deadeyes
2011-04-13  9:33 ` Kfir Lavi
2011-04-13 10:06   ` [gentoo-user] " deadeyes
2011-04-13 11:20     ` Mick
2011-04-13 11:40       ` deadeyes
2011-04-14  8:13         ` deadeyes
2011-04-14  9:53           ` Mick
2011-04-14 20:22             ` deadeyes

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox