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. Python isinstance() type()

    isinstance(object, classinfo) 判断实例是否是这个类或者object是变量 classinfo 是类型(tuple,dict,int,float,long...)(包括自定 ...

  2. Arrays数组的常用方法

    下面代码主要说明了Arrays数组的几个常用方法(红色字体) import java.util.Scanner;import java.util.Arrays;      public class T ...

  3. [zhuan] linux 下 wxWidgets 安装,编译

      http://blog.csdn.net/yuzhenxiong0823/article/details/7727133 wxWidgets在Linux下有wxGTK和wxX11供使用,各需要GT ...

  4. 红外遥控NEC协议使用总结

    最近做了一个调试红外遥控三色灯的实习,花了一个多月的时间研究基于NEC协议的红外遥控,下面是这次实习技术方面的总结. 一.NEC协议特征: 8位地址和8位命令长度 每次传输两遍地址(用户码)和命令(按 ...

  5. user.sh

    #!/bin/bash n=1 while [ $n -le 5 ] do n=$(( $n + 1 )) user=user$n userdel -r $user echo "$user ...

  6. linux新增用户并增加sudo权限

    创建用户.设置密码: useradd testuser 创建用户testuserpasswd testuser 给已创建的用户testuser设置密码 增加sudo权限: #vi /etc/sudoe ...

  7. C# 读取和配置IniFile

    自定义IniFile操作类 using System; using System.Collections.Generic; using System.Linq; using System.Text; ...

  8. OAF_开发系列19_实现OAF对话框提示dialogPage(案例)

    20150716 Created By BaoXinjian

  9. Oracle补习班第三天

    In every triumph, there's a lot of try. 每个胜利背后都有许多尝试 Oracle管理实例组件 主要组件分为两部分例程,与数据库: 例程分为两部分SGA跟进程: S ...

  10. 查看regulator的信息

    例如,查看ldo6 /sys/devices/soc.0/qcom,rpm-smd.35/rpm-regulator-ldoa6.85/regulator-l6.110/regulator/regul ...