From mboxrd@z Thu Jan  1 00:00:00 1970
Return-Path: <gentoo-user+bounces-150867-garchives=archives.gentoo.org@lists.gentoo.org>
Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80])
	by finch.gentoo.org (Postfix) with ESMTP id AFED81381F3
	for <garchives@archives.gentoo.org>; Sat, 21 Sep 2013 13:23:53 +0000 (UTC)
Received: from pigeon.gentoo.org (localhost [127.0.0.1])
	by pigeon.gentoo.org (Postfix) with SMTP id 69658E0A89;
	Sat, 21 Sep 2013 13:23:44 +0000 (UTC)
Received: from mail-wi0-f176.google.com (mail-wi0-f176.google.com [209.85.212.176])
	(using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits))
	(No client certificate requested)
	by pigeon.gentoo.org (Postfix) with ESMTPS id 4623AE09DD
	for <gentoo-user@lists.gentoo.org>; Sat, 21 Sep 2013 13:23:42 +0000 (UTC)
Received: by mail-wi0-f176.google.com with SMTP id cb5so598517wib.3
        for <gentoo-user@lists.gentoo.org>; Sat, 21 Sep 2013 06:23:41 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=gmail.com; s=20120113;
        h=message-id:date:from:user-agent:mime-version:to:subject:references
         :in-reply-to:content-type:content-transfer-encoding;
        bh=rkprzOynIKZ/aiMi5pLStw8Ty0HOcQIeoW/VmgyrFJg=;
        b=rOVHup7iptlTRUMqEzxzefhn+7uedYxLbXwixw4So2ZFs1VbOb4H2NEkpL9y6aIEtK
         kSdcbg8Vc7IrUMd7kc89CN9aHzYcGyDkcJCQZxl6C7KNXH/4k4q/vsgrI96rqtWQklIq
         8jBYaUyayGPK8ssYY0o1DTVbJuxUZq0W1B+yhWE2T5H9mSRLrVXZaWD65h0ZDm3kmV/m
         r6GXw94MAH020AfprZdpm8UXjkyjdV9l+0zv2o/KbhZ3e3AyVEfvOp5OvUXMoRNKo3O5
         2FbfbQNJUAEgAJ1qLlQ2GNFWG6EwlG57KoN9EI+IUPmE91bDFcxy/5JPNQCpztCKd677
         g4Mg==
X-Received: by 10.180.208.45 with SMTP id mb13mr6461412wic.27.1379769821943;
        Sat, 21 Sep 2013 06:23:41 -0700 (PDT)
Received: from [192.168.1.5] (213-154-212-42.static.vega-ua.net. [213.154.212.42])
        by mx.google.com with ESMTPSA id l9sm11563862wif.10.1969.12.31.16.00.00
        (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128);
        Sat, 21 Sep 2013 06:23:41 -0700 (PDT)
Message-ID: <523D9DE6.4050905@gmail.com>
Date: Sat, 21 Sep 2013 16:23:50 +0300
From: Alexander Kapshuk <alexander.kapshuk@gmail.com>
User-Agent: Mozilla/5.0 (X11; Linux i686; rv:17.0) Gecko/20130831 Thunderbird/17.0.8
Precedence: bulk
List-Post: <mailto:gentoo-user@lists.gentoo.org>
List-Help: <mailto:gentoo-user+help@lists.gentoo.org>
List-Unsubscribe: <mailto:gentoo-user+unsubscribe@lists.gentoo.org>
List-Subscribe: <mailto:gentoo-user+subscribe@lists.gentoo.org>
List-Id: Gentoo Linux mail <gentoo-user.gentoo.org>
X-BeenThere: gentoo-user@lists.gentoo.org
Reply-to: gentoo-user@lists.gentoo.org
MIME-Version: 1.0
To: gentoo-user@lists.gentoo.org
Subject: Re: [gentoo-user] re: alternating between wired and wireless interfaces
References: <523D793C.4050105@gmail.com> <20130921125626.GA4360@nukleus.lan>
In-Reply-To: <20130921125626.GA4360@nukleus.lan>
X-Enigmail-Version: 1.5.2
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
X-Archives-Salt: af832993-a49d-44ba-bd1d-f1e096896377
X-Archives-Hash: 759945914e5b4fab2e05cab27948457f

On 09/21/2013 03:56 PM, Frank Steinmetzger wrote:
> On Sat, Sep 21, 2013 at 01:47:24PM +0300, Alexander Kapshuk wrote:
>
>> I have both wired and wireless network interfaces configured:
>> box0 log # rc-update show|egrep 'enp3s0|wlp2s0'
>>            net.enp3s0 |      default                
>>            net.wlp2s0 |      default                
>>
>> (1). Is there a way to instruct the system as to which network interface
>> to use, so it doesn't try to bring up the one not intended to be used at
>> boot time:
>> box0 log # egrep 'enp3s0|wlp2s0' messages
>> -------------------------------------------
>> […]
>> /etc/init.d/net.enp3s0[1801]: ERROR: net.enp3s0 failed to start
>> […]
>> /etc/init.d/netmount[2007]: ERROR: cannot start netmount as net.enp3s0 would not start
>> […]
>> /etc/init.d/sshd[2008]: ERROR: cannot start sshd as net.enp3s0 would not start
>> […]
>> -------------------------------------------
>> (2). sshd seems to start only if the wired interface is up. How do I
>> tell it start when the wireless interface is running?
>> box0 log # rc-status|egrep 'enp3s0|wlp2s0|sshd'
>>  net.enp3s0                                               [ stopped  ]
>>  net.wlp2s0                                               [ started  ]
>>  sshd                                                     [ stopped  ]
> It seems to me that your problem is that you’re not always connected
> with both interfaces at the same time. In the default configuration,
> network-dependent services only start if all network services are up
> and running. This is most annyoing for laptop users who might not be
> connected at all at times.
>
> The solution is to not have network services depend on all interfaces.
> Please look at /etc/rc.conf for rc_depend_strict; if you set it to "NO",
> then services are satisfied with any net.* service, even net.lo.
>
> I suppose there is a way to set up something more fine-tuned in
> /etc/conf.d/net, but that must be explained by someone else as I
> lack that knowledge. ;)
Thanks for your input. I am running gentoo on a laptop, as you have
rightly guessed. It was suggested to me by somebody else on this list
that using Wicd might be a viable option.