From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from pigeon.gentoo.org ([208.92.234.80] helo=lists.gentoo.org) by finch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1Q9l77-0005EV-1F for garchives@archives.gentoo.org; Tue, 12 Apr 2011 21:27:09 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id C48861C002; Tue, 12 Apr 2011 21:25:27 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) by pigeon.gentoo.org (Postfix) with ESMTP id 95B8F1C002 for ; Tue, 12 Apr 2011 21:25:27 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by smtp.gentoo.org (Postfix) with ESMTP id 270E31B4012 for ; Tue, 12 Apr 2011 21:25:27 +0000 (UTC) X-Virus-Scanned: by amavisd-new using ClamAV at gentoo.org X-Spam-Score: -0.532 X-Spam-Level: X-Spam-Status: No, score=-0.532 required=5.5 tests=[BAYES_00=-2.599, RCVD_NUMERIC_HELO=2.067] Received: from smtp.gentoo.org ([127.0.0.1]) by localhost (smtp.gentoo.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id umrRlyxlW9Nr for ; Tue, 12 Apr 2011 21:25:21 +0000 (UTC) Received: from lo.gmane.org (lo.gmane.org [80.91.229.12]) by smtp.gentoo.org (Postfix) with ESMTP id D406167B55 for ; Tue, 12 Apr 2011 21:25:19 +0000 (UTC) Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1Q9l58-00037n-0i for gentoo-user@gentoo.org; Tue, 12 Apr 2011 23:25:16 +0200 Received: from 77.109.121.189.adsl.dyn.edpnet.net ([77.109.121.189]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 12 Apr 2011 23:25:06 +0200 Received: from gvm999 by 77.109.121.189.adsl.dyn.edpnet.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 12 Apr 2011 23:25:06 +0200 X-Injected-Via-Gmane: http://gmane.org/ To: gentoo-user@lists.gentoo.org From: deadeyes Subject: [gentoo-user] configure wlan0 route metric Date: Tue, 12 Apr 2011 21:14:08 +0000 (UTC) Message-ID: Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-user@lists.gentoo.org Reply-to: gentoo-user@lists.gentoo.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Complaints-To: usenet@dough.gmane.org X-Gmane-NNTP-Posting-Host: sea.gmane.org User-Agent: Loom/3.14 (http://gmane.org/) X-Loom-IP: 77.109.121.189 (Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.16) Gecko/20110330 Gentoo Firefox/3.6.16) X-Archives-Salt: X-Archives-Hash: 721386d415b52da245b5a9f78023aef0 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!