Armadilloフォーラム

Armadillo-IoT G3 インターネット接続に向けた無線LAN設定について

m.kojima

2018年3月6日 18時13分

いつもお世話になります。小島と申します。

製品マニュアルの「6.2.5.無線LAN」の項を元に無線LANのアクセスポイント接続の
"nmcli device wifi connect ESSID password PASSPHRASE"を実行するとエラーが表示されてしまいます。
インターネットへ接続しapt-get系コマンドが成功する環境にしたいと思っていますが、うまくいかず
困っています。
対策や確認すべきこと等についてアドバイスいただけますでしょうか。

以下実施したときのログです。

■実施前deviceの状態参照
root@armadillo:~# nmcli device
DEVICE TYPE STATE CONNECTION
eth0 ethernet connected ethernet-eth0
wlan0 wifi connected wifi-wlan0
ttyACM3 modem unavailable --
gre0 gre unmanaged --
gretap0 gretap unmanaged --
ip6gre0 ip6gre unmanaged --
ip6tnl0 ip6tnl unmanaged --
tunl0 ipip unmanaged --
lo loopback unmanaged --
sit0 sit unmanaged --
ip6_vti0 vti6 unmanaged --

■実施前connection状態参照
root@armadillo:~# nmcli connection
NAME UUID TYPE DEVICE
wifi-wlan0 770736c9-8bbf-4857-8e79-a832b133a6e2 802-11-wireless wlan0
ethernet-eth0 0b41489d-0d21-4370-966b-305ed0288525 802-3-ethernet eth0
root@armadillo:~#

■アクセスポイント接続
root@armadillo:~# nmcli device wifi connect ESSID password PASSPHRASE
wlan0: deauthenticating from 02:fa:00:eb:be:da by local choice (reason=3)
cfg80211: Calling CRDA to update world regulatory domain
cfg80211: World regulatory domain updated:
cfg80211: DFS Master region: unset
cfg80211: (start_freq - end_freq @ bandwidth), (max_antenna_gain, max_eirp), (dfs_cac_time)
cfg80211: (2402000 KHz - 2472000 KHz @ 40000 KHz), (N/A, 2000 mBm), (N/A)
cfg80211: (2457000 KHz - 2482000 KHz @ 20000 KHz, 92000 KHz AUTO), (N/A, 2000 mBm), (N/A)
cfg80211: (2474000 KHz - 2494000 KHz @ 20000 KHz), (N/A, 2000 mBm), (N/A)
cfg80211: (5170000 KHz - 5250000 KHz @ 80000 KHz, 160000 KHz AUTO), (N/A, 2000 mBm), (N/A)
cfg80211: (5250000 KHz - 5330000 KHz @ 80000 KHz, 160000 KHz AUTO), (N/A, 2000 mBm), (0 s)
cfg80211: (5490000 KHz - 5730000 KHz @ 160000 KHz), (N/A, 2000 mBm), (0 s)
cfg80211: (5735000 KHz - 5835000 KHz @ 80000 KHz), (N/A, 2000 mBm), (N/A)
cfg80211: (57240000 KHz - 63720000 KHz @ 2160000 KHz), (N/A, 0 mBm), (N/A)
Error: Failed to add/activate new connection: Unknown error <------------エラー表示
root@armadillo:~# wlan0: authenticate with 02:fa:00:eb:be:da
wlan0: send auth to 02:fa:00:eb:be:da (try 1/3)
wlan0: authenticated
wlan0: associate with 02:fa:00:eb:be:da (try 1/3)
wlan0: RX AssocResp from 02:fa:00:eb:be:da (capab=0x431 status=0 aid=1)
IPv6: ADDRCONF(NETDEV_CHANGE): wlan0: link becomes ready
wlan0: associated

■実施後connection状態参照
root@armadillo:~# nmcli connection
NAME UUID TYPE DEVICE
wifi-wlan0 770736c9-8bbf-4857-8e79-a832b133a6e2 802-11-wireless --
ethernet-eth0 0b41489d-0d21-4370-966b-305ed0288525 802-3-ethernet eth0
ESSID 61428322-b306-4816-8fb4-175a58c15d78 802-11-wireless wlan0

■実施後deviceの状態参照
root@armadillo:~# nmcli device
DEVICE TYPE STATE CONNECTION
eth0 ethernet connected ethernet-eth0
wlan0 wifi connected ESSID <-----------ステータスはconnected
ttyACM3 modem unavailable --
gre0 gre unmanaged --
gretap0 gretap unmanaged --
ip6gre0 ip6gre unmanaged --
ip6tnl0 ip6tnl unmanaged --
tunl0 ipip unmanaged --
lo loopback unmanaged --
sit0 sit unmanaged --
ip6_vti0 vti6 unmanaged --
root@armadillo:~#

■ifconfig
root@armadillo:~# ifconfig
eth0 Link encap:Ethernet HWaddr 00:11:0c:21:8a:94
inet addr:192.168.1.10 Bcast:192.168.1.255 Mask:255.255.255.0
inet6 addr: fe80::211:cff:fe21:8a94/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:24 errors:0 dropped:0 overruns:0 frame:0
TX packets:16 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:2328 (2.2 KiB) TX bytes:940 (940.0 B)

lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:65536 Metric:1
RX packets:122 errors:0 dropped:0 overruns:0 frame:0
TX packets:122 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:10656 (10.4 KiB) TX bytes:10656 (10.4 KiB)

wlan0 Link encap:Ethernet HWaddr 44:c3:06:47:6d:14
inet addr:192.168.225.34 Bcast:192.168.225.255 Mask:255.255.255.0
inet6 addr: fe80::46c3:6ff:fe47:6d14/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:91 errors:0 dropped:0 overruns:0 frame:0
TX packets:102 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:12688 (12.3 KiB) TX bytes:11479 (11.2 KiB)

root@armadillo:~#

■コネクション無効化
root@armadillo:~# nmcli connection down ESSID
wlan0: deauthenticating from 02:fa:00:eb:be:da by local choice (reason=3)
cfg80211: Calling CRDA to update world regulatory domain
cfg80211: World regulatory domain updated:
cfg80211: DFS Master region: unset
cfg80211: (start_freq - end_freq @ bandwidth), (max_antenna_gain, max_eirp), (dfs_cac_time)
cfg80211: (2402000 KHz - 2472000 KHz @ 40000 KHz), (N/A, 2000 mBm), (N/A)
cfg80211: (2457000 KHz - 2482000 KHz @ 20000 KHz, 92000 KHz AUTO), (N/A, 2000 mBm), (N/A)
cfg80211: (2474000 KHz - 2494000 KHz @ 20000 KHz), (N/A, 2000 mBm), (N/A)
cfg80211: (5170000 KHz - 5250000 KHz @ 80000 KHz, 160000 KHz AUTO), (N/A, 2000 mBm), (N/A)
cfg80211: (5250000 KHz - 5330000 KHz @ 80000 KHz, 160000 KHz AUTO), (N/A, 2000 mBm), (0 s)
cfg80211: (5490000 KHz - 5730000 KHz @ 160000 KHz), (N/A, 2000 mBm), (0 s)
cfg80211: (5735000 KHz - 5835000 KHz @ 80000 KHz), (N/A, 2000 mBm), (N/A)
cfg80211: (57240000 KHz - 63720000 KHz @ 2160000 KHz), (N/A, 0 mBm), (N/A)
root@armadillo:~# wlan0: authenticate with 02:fa:00:eb:be:da
wlan0: send auth to 02:fa:00:eb:be:da (try 1/3)
wlan0: authenticated
wlan0: associate with 02:fa:00:eb:be:da (try 1/3)
wlan0: RX AssocResp from 02:fa:00:eb:be:da (capab=0x431 status=0 aid=1)
IPv6: ADDRCONF(NETDEV_CHANGE): wlan0: link becomes ready
wlan0: associated

■コネクション有効化
root@armadillo:~# nmcli connection up ESSID
wlan0: deauthenticating from 02:fa:00:eb:be:da by local choice (reason=3)
cfg80211: Calling CRDA to update world regulatory domain
cfg80211: World regulatory domain updated:
cfg80211: DFS Master region: unset
cfg80211: (start_freq - end_freq @ bandwidth), (max_antenna_gain, max_eirp), (dfs_cac_time)
cfg80211: (2402000 KHz - 2472000 KHz @ 40000 KHz), (N/A, 2000 mBm), (N/A)
cfg80211: (2457000 KHz - 2482000 KHz @ 20000 KHz, 92000 KHz AUTO), (N/A, 2000 mBm), (N/A)
cfg80211: (2474000 KHz - 2494000 KHz @ 20000 KHz), (N/A, 2000 mBm), (N/A)
cfg80211: (5170000 KHz - 5250000 KHz @ 80000 KHz, 160000 KHz AUTO), (N/A, 2000 mBm), (N/A)
cfg80211: (5250000 KHz - 5330000 KHz @ 80000 KHz, 160000 KHz AUTO), (N/A, 2000 mBm), (0 s)
cfg80211: (5490000 KHz - 5730000 KHz @ 160000 KHz), (N/A, 2000 mBm), (0 s)
cfg80211: (5735000 KHz - 5835000 KHz @ 80000 KHz), (N/A, 2000 mBm), (N/A)
cfg80211: (57240000 KHz - 63720000 KHz @ 2160000 KHz), (N/A, 0 mBm), (N/A)
wlan0: authenticate with 02:fa:00:eb:be:da
wlan0: send auth to 02:fa:00:eb:be:da (try 1/3)
wlan0: authenticated
wlan0: associate with 02:fa:00:eb:be:da (try 1/3)
wlan0: RX AssocResp from 02:fa:00:eb:be:da (capab=0x431 status=0 aid=1)
IPv6: ADDRCONF(NETDEV_CHANGE): wlan0: link becomes ready
wlan0: associated
Connection successfully activated (D-Bus active path: /org/freedesktop/NetworkManager/ActiveConnection/3)
root@armadillo:~#
root@armadillo:~#

■apt-get実行
root@armadillo:~# apt-get update
Ign http://ftp.jp.debian.org jessie InRelease
Ign http://security.debian.org jessie/updates InRelease
Ign http://download.atmark-techno.com jessie InRelease
Err http://ftp.jp.debian.org jessie Release.gpg
Unable to connect to ftp.jp.debian.org:http:
Err http://download.atmark-techno.com jessie Release.gpg
Unable to connect to download.atmark-techno.com:http:
Err http://security.debian.org jessie/updates Release.gpg
Cannot initiate the connection to security.debian.org:80 (2401:2500:103:11a::74). - connect (101: Network is unreachable) [IP: 2401:2500:103:11a::74 80]
Ign http://security.debian.org jessie/updates Release
Ign http://ftp.jp.debian.org jessie Release

~~~省略~~~

E: Failed to fetch http://security.debian.org/pool/updates/main/o/openssl/libssl-doc_1.0.1… Cannot initiate the connection to security.debian.org:80 (2401:2500:103:11a::74). - connect (101: Network is unreachable) [IP: 2401:2500:103:11a::74 80]

E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?
root@armadillo:~#

設定等で足らないことがありましたら合わせてご教示願います。
宜しくお願いいたします。