1 |
I have both wired and wireless network interfaces configured: |
2 |
box0 log # rc-update show|egrep 'enp3s0|wlp2s0' |
3 |
net.enp3s0 | default |
4 |
net.wlp2s0 | default |
5 |
|
6 |
(1). Is there a way to instruct the system as to which network interface |
7 |
to use, so it doesn't try to bring up the one not intended to be used at |
8 |
boot time: |
9 |
box0 log # egrep 'enp3s0|wlp2s0' messages |
10 |
------------------------------------------- |
11 |
Sep 21 12:30:18 localhost kernel: [ 12.268209] r8169 0000:03:00.0 |
12 |
enp3s0: link down |
13 |
Sep 21 12:30:18 localhost kernel: [ 12.268236] IPv6: |
14 |
ADDRCONF(NETDEV_UP): enp3s0: link is not ready |
15 |
Sep 21 12:30:18 localhost /etc/init.d/net.enp3s0[1888]: No configuration |
16 |
specified; defaulting to DHCP |
17 |
Sep 21 12:30:18 localhost dhcpcd[1896]: enp3s0: waiting for carrier |
18 |
Sep 21 12:30:56 localhost /etc/init.d/net.enp3s0[1801]: ERROR: |
19 |
net.enp3s0 failed to start |
20 |
Sep 21 12:30:56 localhost kernel: [ 50.595278] IPv6: |
21 |
ADDRCONF(NETDEV_UP): wlp2s0: link is not ready |
22 |
Sep 21 12:30:56 localhost /etc/init.d/net.wlp2s0[1917]: WARNING: |
23 |
net.wlp2s0 has started, but is inactive |
24 |
Sep 21 12:30:56 localhost /etc/init.d/netmount[2007]: ERROR: cannot |
25 |
start netmount as net.enp3s0 would not start |
26 |
Sep 21 12:30:56 localhost /etc/init.d/sshd[2008]: ERROR: cannot start |
27 |
sshd as net.enp3s0 would not start |
28 |
Sep 21 12:30:57 localhost kernel: [ 51.817387] wlp2s0: authenticate |
29 |
with f4:ec:38:b9:59:a7 |
30 |
Sep 21 12:30:57 localhost kernel: [ 51.825344] wlp2s0: send auth to |
31 |
f4:ec:38:b9:59:a7 (try 1/3) |
32 |
Sep 21 12:30:57 localhost kernel: [ 51.826811] wlp2s0: authenticated |
33 |
Sep 21 12:30:57 localhost kernel: [ 51.827059] wlp2s0: associate with |
34 |
f4:ec:38:b9:59:a7 (try 1/3) |
35 |
Sep 21 12:30:57 localhost kernel: [ 51.829316] wlp2s0: RX AssocResp |
36 |
from f4:ec:38:b9:59:a7 (capab=0x411 status=0 aid=2) |
37 |
Sep 21 12:30:57 localhost kernel: [ 51.829586] wlp2s0: associated |
38 |
Sep 21 12:30:57 localhost kernel: [ 51.829598] IPv6: |
39 |
ADDRCONF(NETDEV_CHANGE): wlp2s0: link becomes ready |
40 |
Sep 21 12:30:59 localhost wpa_cli: interface wlp2s0 CONNECTED |
41 |
Sep 21 12:30:59 localhost /etc/init.d/net.wlp2s0[2130]: No configuration |
42 |
specified; defaulting to DHCP |
43 |
Sep 21 12:30:59 localhost dhcpcd[2138]: wlp2s0: sending IPv6 Router |
44 |
Solicitation |
45 |
Sep 21 12:30:59 localhost dhcpcd[2138]: wlp2s0: sendmsg: Cannot assign |
46 |
requested address |
47 |
Sep 21 12:30:59 localhost dhcpcd[2138]: wlp2s0: rebinding lease of |
48 |
192.168.1.5 |
49 |
Sep 21 12:30:59 localhost dhcpcd[2138]: wlp2s0: acknowledged 192.168.1.5 |
50 |
from 192.168.1.1 `TP-LINK' |
51 |
Sep 21 12:30:59 localhost dhcpcd[2138]: wlp2s0: checking for 192.168.1.5 |
52 |
Sep 21 12:31:03 localhost dhcpcd[2138]: wlp2s0: sending IPv6 Router |
53 |
Solicitation |
54 |
Sep 21 12:31:03 localhost dhcpcd[2138]: wlp2s0: leased 192.168.1.5 for |
55 |
259200 seconds |
56 |
Sep 21 12:31:07 localhost dhcpcd[2167]: wlp2s0: sending IPv6 Router |
57 |
Solicitation |
58 |
Sep 21 12:31:11 localhost dhcpcd[2167]: wlp2s0: sending IPv6 Router |
59 |
Solicitation |
60 |
Sep 21 12:31:11 localhost dhcpcd[2167]: wlp2s0: no IPv6 Routers available |
61 |
------------------------------------------- |
62 |
(2). sshd seems to start only if the wired interface is up. How do I |
63 |
tell it start when the wireless interface is running? |
64 |
box0 log # rc-status|egrep 'enp3s0|wlp2s0|sshd' |
65 |
net.enp3s0 [ |
66 |
stopped ] |
67 |
net.wlp2s0 [ |
68 |
started ] |
69 |
sshd [ |
70 |
stopped ] |
71 |
|
72 |
|
73 |
Thanks. |