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. CommittableTransaction和TransactionScope

    创建可提交事务 下面的示例创建一个新的 CommittableTransaction 并提交它. //Create a committable transaction tx = new Committ ...

  2. Android开发中经常使用的Content-Type简介

    1.application/x-www-form-urlencoded:最常使用的类型(默认也是这种类型),主要用于提交不带文件的post数据. 2.multipart/form-data:需要结合b ...

  3. TIOBE Index for January 2016(转载)

    Java has won the TIOBE Index programming language award of the year. This is because Java has the la ...

  4. Best Practices for Background Jobs_3 Managing Device Awake State之电源锁、Alarm、WakefulBroadcastReceiver

    http://developer.android.com/training/scheduling/index.html 当静置一个设备的时候,先会屏幕变暗,然后关闭屏幕,最后关闭CPU,以省电.但有的 ...

  5. JVM堆内存设置和测试

    1. Java虚拟机内存结构 划分新生代和老年代,这样只在新生代分配内存,从而简化了新对象的分配.另外新生代和老年代使用不同的GC算法,可以更有效的清除不再需要的对象.从上图可以看出,JVM内存由yo ...

  6. ext4 disable journal

    ext4 disable journal At one high loaded web project I needed a very fast file system. I decided to u ...

  7. angular(3)服务 --注入---自定义模块--单页面应用

    ng内部,一旦发生值改变操作,如$scope.m=x,就会自动轮询$digest队列,触发指定的$watch,调用其回调函数,然后修改dom树. 干货:https://github.com/xufei ...

  8. delphi 一个自动控制机的硅控板检测程序,用多线程和API,没有用控件,少做改动就能用 用485开发

    一个自动控制机的硅控板检测程序,用多线程和API,没有用控件,少做改动就能用Unit CommThread; Interface Uses  Windows, Classes, SysUtils, G ...

  9. oracle rac自动生成awr

    cat awr.sql ######EXEC P_AWR_REPORT('201604251000', '201604251100', 'D_OUTPUT', '', FALSE); FALSE为ra ...

  10. ArcGIS Engine中数据的加载 (转)

    1.加载Shapefile数据 1 IWorkspaceFactory pWorkspaceFactory; 2 IFeatureWorkspace pFeatureWorkspace; 3 IFea ...