From: Torben Hensgens Mailer <thens.mail@googlemail.com>
To: gentoo-user@lists.gentoo.org
Subject: Re: [gentoo-user] re: alternating between wired and wireless interfaces
Date: Sat, 21 Sep 2013 15:33:52 +0200 [thread overview]
Message-ID: <523DA040.2000302@googlemail.com> (raw)
In-Reply-To: <523D793C.4050105@gmail.com>
Am 21.09.2013 12:47, schrieb Alexander Kapshuk:
> 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
> -------------------------------------------
> Sep 21 12:30:18 localhost kernel: [ 12.268209] r8169 0000:03:00.0
> enp3s0: link down
> Sep 21 12:30:18 localhost kernel: [ 12.268236] IPv6:
> ADDRCONF(NETDEV_UP): enp3s0: link is not ready
> Sep 21 12:30:18 localhost /etc/init.d/net.enp3s0[1888]: No configuration
> specified; defaulting to DHCP
> Sep 21 12:30:18 localhost dhcpcd[1896]: enp3s0: waiting for carrier
> Sep 21 12:30:56 localhost /etc/init.d/net.enp3s0[1801]: ERROR:
> net.enp3s0 failed to start
> Sep 21 12:30:56 localhost kernel: [ 50.595278] IPv6:
> ADDRCONF(NETDEV_UP): wlp2s0: link is not ready
> Sep 21 12:30:56 localhost /etc/init.d/net.wlp2s0[1917]: WARNING:
> net.wlp2s0 has started, but is inactive
> Sep 21 12:30:56 localhost /etc/init.d/netmount[2007]: ERROR: cannot
> start netmount as net.enp3s0 would not start
> Sep 21 12:30:56 localhost /etc/init.d/sshd[2008]: ERROR: cannot start
> sshd as net.enp3s0 would not start
> Sep 21 12:30:57 localhost kernel: [ 51.817387] wlp2s0: authenticate
> with f4:ec:38:b9:59:a7
> Sep 21 12:30:57 localhost kernel: [ 51.825344] wlp2s0: send auth to
> f4:ec:38:b9:59:a7 (try 1/3)
> Sep 21 12:30:57 localhost kernel: [ 51.826811] wlp2s0: authenticated
> Sep 21 12:30:57 localhost kernel: [ 51.827059] wlp2s0: associate with
> f4:ec:38:b9:59:a7 (try 1/3)
> Sep 21 12:30:57 localhost kernel: [ 51.829316] wlp2s0: RX AssocResp
> from f4:ec:38:b9:59:a7 (capab=0x411 status=0 aid=2)
> Sep 21 12:30:57 localhost kernel: [ 51.829586] wlp2s0: associated
> Sep 21 12:30:57 localhost kernel: [ 51.829598] IPv6:
> ADDRCONF(NETDEV_CHANGE): wlp2s0: link becomes ready
> Sep 21 12:30:59 localhost wpa_cli: interface wlp2s0 CONNECTED
> Sep 21 12:30:59 localhost /etc/init.d/net.wlp2s0[2130]: No configuration
> specified; defaulting to DHCP
> Sep 21 12:30:59 localhost dhcpcd[2138]: wlp2s0: sending IPv6 Router
> Solicitation
> Sep 21 12:30:59 localhost dhcpcd[2138]: wlp2s0: sendmsg: Cannot assign
> requested address
> Sep 21 12:30:59 localhost dhcpcd[2138]: wlp2s0: rebinding lease of
> 192.168.1.5
> Sep 21 12:30:59 localhost dhcpcd[2138]: wlp2s0: acknowledged 192.168.1.5
> from 192.168.1.1 `TP-LINK'
> Sep 21 12:30:59 localhost dhcpcd[2138]: wlp2s0: checking for 192.168.1.5
> Sep 21 12:31:03 localhost dhcpcd[2138]: wlp2s0: sending IPv6 Router
> Solicitation
> Sep 21 12:31:03 localhost dhcpcd[2138]: wlp2s0: leased 192.168.1.5 for
> 259200 seconds
> Sep 21 12:31:07 localhost dhcpcd[2167]: wlp2s0: sending IPv6 Router
> Solicitation
> Sep 21 12:31:11 localhost dhcpcd[2167]: wlp2s0: sending IPv6 Router
> Solicitation
> Sep 21 12:31:11 localhost dhcpcd[2167]: wlp2s0: no IPv6 Routers available
> -------------------------------------------
> (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 ]
>
>
> Thanks.
>
>
Yeh, same advice here, try wicd first. If you don't want a GUI (or you
don't have corresponding UI toolkits installed), there's also the option
to configure and use wicd via the ncurses interface.
next prev parent reply other threads:[~2013-09-21 13:34 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-09-21 10:47 [gentoo-user] re: alternating between wired and wireless interfaces Alexander Kapshuk
2013-09-21 12:10 ` Neil Bothwick
2013-09-21 12:56 ` Frank Steinmetzger
2013-09-21 13:23 ` Alexander Kapshuk
2013-09-21 13:33 ` Torben Hensgens Mailer [this message]
2013-09-21 17:40 ` Shawn Wilson
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=523DA040.2000302@googlemail.com \
--to=thens.mail@googlemail.com \
--cc=gentoo-user@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox