Gentoo Archives: gentoo-user

From: Mick <michaelkintzios@×××××.com>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] Re: configure wlan0 route metric
Date: Thu, 14 Apr 2011 09:55:12
Message-Id: BANLkTi=U4zffAwDrqoGM70=uBmC2RCWs7A@mail.gmail.com
In Reply to: [gentoo-user] Re: configure wlan0 route metric by deadeyes
1 On 14 April 2011 09:13, deadeyes <gvm999@×××××.com> wrote:
2 > deadeyes <gvm999 <at> gmail.com> writes:
3 >
4 > code that can be added in /etc/conf.d/net:
5 > postup() {
6 >   local metric=0
7 >
8 >   case "${IFACE}" in
9 >      eth0) metric=0 ;;
10 >      eth1) metric=1 ;;
11 >   esac
12 >   ifmetric "${IFACE}" "${metric}"
13 >
14 >   return 0
15 > }
16 >
17 > Seems like this works for me as well! :)
18
19 It does? I assume that eth1 above is wlan0 in your case.
20
21 If you restart both eth0 and wlan0 so as to zero the packet counters,
22 then start a download/upload from your a machine in your LAN, what
23 packet counts do you get in ifconfig for each NIC?
24
25 --
26 Regards,
27 Mick

Replies

Subject Author
[gentoo-user] Re: configure wlan0 route metric deadeyes <gvm999@×××××.com>