Gentoo Archives: gentoo-user

From: Frank Steinmetzger <Warp_7@×××.de>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] re: alternating between wired and wireless interfaces
Date: Sat, 21 Sep 2013 12:56:38
Message-Id: 20130921125626.GA4360@nukleus.lan
In Reply to: [gentoo-user] re: alternating between wired and wireless interfaces by Alexander Kapshuk
1 On Sat, Sep 21, 2013 at 01:47:24PM +0300, Alexander Kapshuk wrote:
2
3 > I have both wired and wireless network interfaces configured:
4 > box0 log # rc-update show|egrep 'enp3s0|wlp2s0'
5 > net.enp3s0 | default
6 > net.wlp2s0 | default
7 >
8 > (1). Is there a way to instruct the system as to which network interface
9 > to use, so it doesn't try to bring up the one not intended to be used at
10 > boot time:
11 > box0 log # egrep 'enp3s0|wlp2s0' messages
12 > -------------------------------------------
13 > […]
14 > /etc/init.d/net.enp3s0[1801]: ERROR: net.enp3s0 failed to start
15 > […]
16 > /etc/init.d/netmount[2007]: ERROR: cannot start netmount as net.enp3s0 would not start
17 > […]
18 > /etc/init.d/sshd[2008]: ERROR: cannot start sshd as net.enp3s0 would not start
19 > […]
20 > -------------------------------------------
21 > (2). sshd seems to start only if the wired interface is up. How do I
22 > tell it start when the wireless interface is running?
23 > box0 log # rc-status|egrep 'enp3s0|wlp2s0|sshd'
24 > net.enp3s0 [ stopped ]
25 > net.wlp2s0 [ started ]
26 > sshd [ stopped ]
27
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 --
42 Gruß | Greetings | Qapla’
43 Please do not share anything from, with or about me with any Facebook service.
44
45 I am to teach him reason?
46 I could just as well try to blow out a light bulb!

Attachments

File name MIME type
signature.asc application/pgp-signature

Replies

Subject Author
Re: [gentoo-user] re: alternating between wired and wireless interfaces Alexander Kapshuk <alexander.kapshuk@×××××.com>