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. NSSM - windows 服务安装工具

    nssm  windows 服务安装工具,简单方便, windows service wrapper 也是一个类似的工具,但是需要进行配置文件编写= 下载的地址: http://nssm.cc/rel ...

  2. 压力测试报出503错误---ASP.NET支持大并发的相关配置

    项目反馈报出503错误,需要收集性能数据如下: 1.Windows性能监视器,该应用程序池进程的线程和处理队列 2.问题重现时的进程dump 这是请求到达IIS后遇到的第一个队列,HTTP.sys收到 ...

  3. linux下重置mysql的root密码

    # /etc/init.d/mysql stop # mysqld_safe --user=mysql --skip-grant-tables --skip-networking & # my ...

  4. git常用命令 (阿里云code)

    命令行指令 Git 全局设置 git config --global user.name "马会东" git config --global user.email "ma ...

  5. PHP入门part4

    字符串函数 strlen(string); 获取字符串的长度,这里的长度是指该字符串的字节长度:!!utf-8里英文字母和符号占1个字节,中文是占3个字节. substr(string,number1 ...

  6. MFC ADO连接Sql Server数据库报无效指针的问题

    相关症状:  Win7sp1上编译的ADO程序无法在低版本系统上运行,创建ADO时提示错误:0x80004002 解决办法如下:  1.下载:  http://download.microsoft.c ...

  7. vue.js 2.0开发(4)

    使用vue-cli,首先安装: npm install -g vue-cli 安装完了执行vue命令,会出现 vue init <template-name> <project-na ...

  8. Linux 目录配置

    一.Linux 目录配置标准:FHS FHS(Filessystem Hierarchy Standard) 的重点在于规范每个特定的目录下应该要放置什么样子的数据. FHS依据文件系统使用的频繁与否 ...

  9. IOC框架整体介绍

    1.Castle Windsor 2.Autofac 3.Unity 4.Spring.NET 5.StructureMap 6.Ninject

  10. vs 配置宏

    Win_$(PROCESSOR_ARCHITECTURE)_$(PlatformArchitecture) <==> Win_x86_64 OR Win_x86_32$(Configura ...