您尚未登录。

#1 2015-04-23 09:45:52

ravi
会员
注册时间: 2015-04-23
帖子: 8

【已解决】命令行界面怎样连接SSID隐藏的WIFI?

家里的SSID隐藏了,尝试向下面那样设置过,但不行
#cd /etc/netctl
#cp examples/wireless-wpa my_network
# nano my_network
             
              Description='Automatically generated profile by wifi-menu'
               Interface=wlp8s0
              Connection=wireless
              Security=wpa
              ESSID=mmnn
              IP=dhcp
              Key=xxxxxxxxxx

# netctl start my_network
# netctl enable my_network

最近编辑记录 ravi (2015-04-23 10:22:14)

离线

#2 2015-04-23 10:01:26

alanfly
会员
注册时间: 2011-12-16
帖子: 50

Re: 【已解决】命令行界面怎样连接SSID隐藏的WIFI?

你这不是netctl的配置文件,是wifi-menu创建的。
我打开同样位置的文件是这样的,把下面的hidden那一行取消注释就好了。

Description='A simple WPA encrypted wireless connection'
Interface=wlan0
Connection=wireless

Security=wpa
IP=dhcp

ESSID='MyNetwork'
# Prepend hexadecimal keys with \"
# If your key starts with ", write it as '""<key>"'
# See also: the section on special quoting rules in netctl.profile(5)
Key='WirelessKey'
# Uncomment this if your ssid is hidden
#Hidden=yes
# Set a priority for automatic profile selection
#Priority=10

离线

#3 2015-04-23 10:31:33

ravi
会员
注册时间: 2015-04-23
帖子: 8

Re: 【已解决】命令行界面怎样连接SSID隐藏的WIFI?

alanfly 说:

你这不是netctl的配置文件,是wifi-menu创建的。
我打开同样位置的文件是这样的,把下面的hidden那一行取消注释就好了。

Description='A simple WPA encrypted wireless connection'
Interface=wlan0
Connection=wireless

Security=wpa
IP=dhcp

ESSID='MyNetwork'
# Prepend hexadecimal keys with \"
# If your key starts with ", write it as '""<key>"'
# See also: the section on special quoting rules in netctl.profile(5)
Key='WirelessKey'
# Uncomment this if your ssid is hidden
#Hidden=yes
# Set a priority for automatic profile selection
#Priority=10

谢谢alanfly,按照你的方法,问题已经成功解决。备注的文字也加入我的代码中,便于以后查阅。
更改如下
#cd /etc/netctl
#ls

    hooks interfaces wlp8s0 wlp8s0-mmnn

#nano wlp8s0-mmnn
     

Description='A simple WPA encrypted wireless connection'
               Interface=wlp8s0
              Connection=wireless

              Security=wpa
              IP=dhcp

              ESSID='MyNetwork'
              Key='WirelessKey'
              
              Hidden=yes

#netctl start wlp8s0-mmnn

离线

页脚