Gentoo Archives: gentoo-user

From: Alexander Kapshuk <alexander.kapshuk@×××××.com>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] re: alternating between wired and wireless interfaces
Date: Sat, 21 Sep 2013 13:23:53
Message-Id: 523D9DE6.4050905@gmail.com
In Reply to: Re: [gentoo-user] re: alternating between wired and wireless interfaces by Frank Steinmetzger
1 On 09/21/2013 03:56 PM, Frank Steinmetzger wrote:
2 > On Sat, Sep 21, 2013 at 01:47:24PM +0300, Alexander Kapshuk wrote:
3 >
4 >> I have both wired and wireless network interfaces configured:
5 >> box0 log # rc-update show|egrep 'enp3s0|wlp2s0'
6 >> net.enp3s0 | default
7 >> net.wlp2s0 | default
8 >>
9 >> (1). Is there a way to instruct the system as to which network interface
10 >> to use, so it doesn't try to bring up the one not intended to be used at
11 >> boot time:
12 >> box0 log # egrep 'enp3s0|wlp2s0' messages
13 >> -------------------------------------------
14 >> […]
15 >> /etc/init.d/net.enp3s0[1801]: ERROR: net.enp3s0 failed to start
16 >> […]
17 >> /etc/init.d/netmount[2007]: ERROR: cannot start netmount as net.enp3s0 would not start
18 >> […]
19 >> /etc/init.d/sshd[2008]: ERROR: cannot start sshd as net.enp3s0 would not start
20 >> […]
21 >> -------------------------------------------
22 >> (2). sshd seems to start only if the wired interface is up. How do I
23 >> tell it start when the wireless interface is running?
24 >> box0 log # rc-status|egrep 'enp3s0|wlp2s0|sshd'
25 >> net.enp3s0 [ stopped ]
26 >> net.wlp2s0 [ started ]
27 >> sshd [ stopped ]
28 > It seems to me that your problem is that you’re not always connected
29 > with both interfaces at the same time. In the default configuration,
30 > network-dependent services only start if all network services are up
31 > and running. This is most annyoing for laptop users who might not be
32 > connected at all at times.
33 >
34 > The solution is to not have network services depend on all interfaces.
35 > Please look at /etc/rc.conf for rc_depend_strict; if you set it to "NO",
36 > then services are satisfied with any net.* service, even net.lo.
37 >
38 > I suppose there is a way to set up something more fine-tuned in
39 > /etc/conf.d/net, but that must be explained by someone else as I
40 > lack that knowledge. ;)
41 Thanks for your input. I am running gentoo on a laptop, as you have
42 rightly guessed. It was suggested to me by somebody else on this list
43 that using Wicd might be a viable option.