13
12

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

CentOS7でステルスSSIDへ接続する方法

Last updated at Posted at 2016-03-26

#概要

CentOS7で無線LAN(Wi-Fi)に接続しようと試みたがステルスSSIDのためかハマったのでメモ。

ググると下記設定をいれれば、一発OK牧場との記載を見つけ入力

$ nmcli d wifi connect [ssid] password [password]

ところが安定のエラーが出て接続できずハマってませんか??

$ nmcli d wifi connect [ssid] password [password] hidden yes

=> Error: No network with SSID '[ssid]' found.

#OS
この記事ではCentOS7.1を使用しています。

#手順

1. deviceのstatusを確認

$ nmcli d status
DEVICE  TYPE  STATE         CONNECTION
wlp2s0  wifi  disconnected  --

=> deviceは認識しているがAPへ接続できてない。

2. 接続プロファイルを作成

$ nmcli c add type wifi con-name <connect name> ifname <ifname> ssid <ssid>
 ifnameはnmcli d statusで表示された<DEVICE>を入力
$ mcli con modify <connect name> wifi-sec.key-mgmt wpa-psk
$ nmcli con modify <connect name> wifi-sec.psk <password>

3. プロファイルを作成しても自動接続されないので下記コマンドを入力

$ nmcli con up <connect name>
Connection successfully activated

=>接続成功

4. deviceのstatusを確認

$ nmcli d status
DEVICE  TYPE  STATE      CONNECTION
wlp2s0  wifi  connected  <connect name>

$ nmcli d show
GENERAL.DEVICE:                       wlp2s0
GENERAL.TYPE:                         wifi
GENERAL.HWADDR:           **:**:**:**:**:**
GENERAL.MTU:                            0
GENERAL.STATE:                        100 (connected)
GENERAL.CONNECTION:                   <connect name>
GENERAL.CON-PATH:                       
IP4.ADDRESS[1]:                        192.168.**.**/28
IP4.GATEWAY:                           192.168.**.**
IP4.DNS[1]:                            192.168.**.**
IP6.ADDRESS[1]:                        fe80::****:****:****:****/64
IP6.GATEWAY:

同じ状況でハマっている方、試してみてください!

13
12
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
13
12

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?