Gentoo Archives: gentoo-user

From: Indi <thebeelzebubtrigger@×××××.com>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] Re: configure wlan0 route metric
Date: Fri, 15 Apr 2011 02:08:54
Message-Id: 20110415020657.GA9142@gaurahari
1 On Fri, Apr 15, 2011 at 12:30:02AM +0200, Indi wrote:
2 > On Thu, Apr 14, 2011 at 12:00:02PM +0200, Mick wrote:
3 > > On 14 April 2011 09:13, deadeyes <gvm999@×××××.com> wrote:
4 > > > deadeyes <gvm999 <at> gmail.com> writes:
5 > > >
6 > > > code that can be added in /etc/conf.d/net:
7 > > > postup() {
8 > > >   local metric=0
9 > > >
10 > > >   case "${IFACE}" in
11 > > >      eth0) metric=0 ;;
12 > > >      eth1) metric=1 ;;
13 > > >   esac
14 > > >   ifmetric "${IFACE}" "${metric}"
15 > > >
16 > > >   return 0
17 > > > }
18 > > >
19 > > > Seems like this works for me as well! :)
20 > >
21 > > It does? I assume that eth1 above is wlan0 in your case.
22 > >
23 >
24 > On my thinkpad the wireless is eth0, wired is eth1.
25
26 Oh, I got that backwards, sorry -- wireless is eth1.
27 :)
28 --
29 /\ /\
30 <\ />
31 ^ caveat utilitor
32 'v-v'

Replies

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