I bought a DELL laptop,but can not connect to network through wifi.There's lots of methods on the Internet,but few of them resolve my problem.If u face the same situation,U can try my way.

Phenomenon:

1' NO-CARRIER

2'UNMANAGED

KEY Steps:

1.Get WiFi interface's Name

[does@localhost ~]$ nmcli device
DEVICE      TYPE      STATE        CONNECTION
virbr0      bridge    connected    virbr0     
virbr0-nic  tap       connected    virbr0-nic
p1p1        ethernet  unavailable  --         
lo          loopback  unmanaged    --         
wlp6s0      wifi      unmanaged    --

2.Enble WiFi Module

[does@localhost ~]$ ip link show wlp6s0
3: wlp6s0: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN mode DEFAULT qlen 1000
    link/ether b0:c0:90:32:c4:fa brd ff:ff:ff:ff:ff:ff

[does@localhost ~]$ su
Password:
[root@localhost does]# ip link set wlp6s0 up
[root@localhost does]# ip link show wlp6s0
3: wlp6s0: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc mq state DOWN mode DEFAULT qlen 1000
    link/ether b0:c0:90:32:c4:fa brd ff:ff:ff:ff:ff:ff

3.Scan The Wireless Net

[root@localhost does]# iw wlp6s0 scan | grep SSID
    SSID: AHELLO
    SSID: huohb
    SSID: NULL
    SSID: c2303102
    SSID: xiaofeibao

Note:NULL is the name of my SSID.

root@kali:~# wpa_passphrase NULL >> /etc/wpa_supplicant.conf
123456
root@kali:~#
(where '123456' is the Network password)
Note:There is a way to input the ssid and password in the command line,but it doesn't work on my PC.
4.Connect to Network
[root@localhost does]# wpa_supplicant -B -i wlp6s0 -c /etc/wpa_supplicant.conf
Successfully initialized wpa_supplicant
[root@localhost does]# ip add show wlp6s0
3: wlp6s0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP qlen 1000
    link/ether b0:c0:90:32:c4:fa brd ff:ff:ff:ff:ff:ff
    inet6 fe80::b2c0:90ff:fe32:c4fa/64 scope link
       valid_lft forever preferred_lft forever
5.Get IP Address
[root@localhost does]# dhclient wlp6s0
[root@localhost does]# ip add show wlp6s0
3: wlp6s0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP qlen 1000
    link/ether b0:c0:90:32:c4:fa brd ff:ff:ff:ff:ff:ff
    inet 192.168.1.105/24 brd 192.168.1.255 scope global dynamic wlp6s0
       valid_lft 7202sec preferred_lft 7202sec
    inet6 fe80::b2c0:90ff:fe32:c4fa/64 scope link
       valid_lft forever preferred_lft forever
6.Test
[root@localhost does]# ping www.baidu.com
PING www.a.shifen.com (111.13.100.91) 56(84) bytes of data.
64 bytes from 111.13.100.91: icmp_seq=1 ttl=54 time=7.02 ms
64 bytes from 111.13.100.91: icmp_seq=2 ttl=54 time=6.10 ms
64 bytes from 111.13.100.91: icmp_seq=3 ttl=54 time=24.7 ms
64 bytes from 111.13.100.91: icmp_seq=4 ttl=54 time=5.93 ms
^C
--- www.a.shifen.com ping statistics ---
4 packets transmitted, 4 received, 0% packet loss, time 3005ms
rtt min/avg/max/mdev = 5.938/10.964/24.794/7.995 ms

Results:

[root@localhost does]# ip link show wlp6s0
3: wlp6s0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP mode DORMANT qlen 1000
    link/ether b0:c0:90:32:c4:fa brd ff:ff:ff:ff:ff:ff

[root@localhost does]# nmcli device
DEVICE      TYPE      STATE        CONNECTION
virbr0      bridge    connected    virbr0     
virbr0-nic  tap       connected    virbr0-nic
wlp6s0      wifi      connected    wlp6s0     
p1p1        ethernet  unavailable  --         
lo          loopback  unmanaged

Reference:

http://www.blackmoreops.com/2014/09/18/connect-to-wifi-network-from-command-line-in-linux/

KeyWords

Connect to WiFi network from command line in Linux

A way to connect to network through WIFI on Centos 7的更多相关文章

  1. centos7 minimal connect: Network is unreachable(转)

    新装的centos7,果然是很崭新啊. 装好之后打算看一下局域网的地址,然后就ip addr(centos 7 已经去掉了ifconfig这个命令).并没有显示局域网的ip地址. 然后我尝试ping ...

  2. connect to a specific wifi network in Android programmatically

    http://stackoverflow.com/questions/8818290/how-to-connect-to-a-specific-wifi-network-in-android-prog ...

  3. centos下问题:connect:network is unreachable

    问题描述 弄了三台机器准备搭建一个集群,按照centos7系统,一台主节点安装桌面环境,两台计算节点.配置计算节点的时候,发现ping不通,出现connect:network is unreachab ...

  4. ubuntu 休眠之后网络间接失败 can not connect to network after suspend (wake up)

    ubuntu for laptop系统在系统休眠后wakeup 之后,网络连接失败, 有线网络无法连接, 无线wifi无法连接, 只能重启后才能恢复, 此时可以采用以下方法处理: 1. 在/etc/p ...

  5. 【Error】centos7 minimal connect: Network is unreachable

    参考链接:http://www.centoscn.com/CentosBug/osbug/2015/1208/6500.html 由于centos7 和之前的版本差异比较大,之前的一些命令不能完全使用 ...

  6. 转载:Adb远程连接Android系统(通过网络使用ADB(Connect to android with wifi))

    本文介绍如何通过网络(尤指无线网络)与Android的adbd进行连接.原理:adb server: 计算机上的一个服务进程,进程名为adbadb daemon: Android 手机上的一个服务进程 ...

  7. wifi编辑 centos

    ifconfig -a sudo iw dev 设置名称 scan

  8. Atitit 列出wifi热点以及连接

    Atitit 列出wifi热点以及连接 配置命令 >netsh wlan  /?1 显示已经有的配置netsh wlan show profiles1 C:\Users\Administrato ...

  9. 3.1 wifi网卡RT3070在S3C2440的移植和使用

    学习目标:熟悉RT3070在S3C2440的移植和使用,以及其中的相关工具的安装和使用: 一.配置内核选择WIFI驱动 1. 将usb wifi插到电脑,在ubuntu使用命令:# lsusb 查看w ...

随机推荐

  1. chrome/ie中图片底部多出几像素问题

    如果给图片的父元素设置背景色,则图片的底部就会多出几像素,chrome/IE/FF中均是如此,如下图: 代码如下,就是简单的div中放张图片: <!doctype html> <ht ...

  2. 大数据每日干货第四天(linux基础之一目录结构与常用命令)

           为了和qq空间同步,也写的第四天,前面几天明天会发布,本来打算把每天学的东西记录下来,通过朋友给的建议要发的话稍微系统化下,从大数据需要的linux基础,到离线数据分析包括hadoop. ...

  3. office project 激活

    office project 2010激活方式: 图上中,箭头位置,可能没激活,需要软件激活 ( mini-KMS Activator(Office2010激活工具) V1.2 绿色版 ) 激活方式如 ...

  4. 解决ie6下不支持fix属性,模拟固定定位

    <!DOCTYPE HTML> <html> <head> <meta http-equiv="Content-Type" content ...

  5. dingding post POST请求

    POST请求请在HTTP Header中设置 Content-Type:application/json,否则接口调用失败 获取AccessToken Https请求方式: GET https://o ...

  6. vs2012 发布网站时,发布目录为空

    当我使用Release Any CPU时为空 使用Release X86就正常发布了 奇怪. 之后再切换回 Release Any CPU时正常发布. 在生成时可以尝试设置好生成配置,先生成,再发布.

  7. MySQL5.7安装与配置(YUM)

    安装环境:CentOS7 64位,MySQL5.7 1.配置YUM源 在MySQL官网中下载YUM源rpm安装包:http://dev.mysql.com/downloads/repo/yum/  # ...

  8. java中Collection和Collections的区别

    1.Collection: 它是java集合类的一个通用接口,所有集合类都实现的它 2.Collections: 它是一个封装集合类常用工具方法的类,不能被示例化,只支持静态调用

  9. [转]Installing SharePoint 2013 on Windows Server 2012 R2

    转自:http://www.avivroth.com/2013/07/09/installing-sharepoint-2013-on-windows-server-2012-r2-preview/ ...

  10. 验证码javaweb

    package cn.itcast.utils; import java.awt.Color; import java.awt.Font; import java.awt.Graphics; impo ...