A-and-connect to-network through WIFI on Centos 7

Source: Internet
Author: User
Tags get ip dell laptop

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.

Phenomenon:

1 ' No-carrier

2 ' Unmanaged

KEY Steps:

1.Get WiFi interface ' s Name

[[email protected] ~]$ 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

[[Email protected] ~]$ IP link show wlp6s0
3:WLP6S0: <BROADCAST,MULTICAST> MTU qdisc NoOp State down mode DEFAULT Qlen 1000
Link/ether B0:C0:90:32:C4:FA BRD FF:FF:FF:FF:FF:FF

[email protected] ~]$ su
Password:
[[Email protected] does]# IP link set wlp6s0 up
[[Email protected] does]# IP link show wlp6s0
3:WLP6S0: <no-carrier, Broadcast,multicast,up > MTU 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

[Email protected] does]# IW WLP6S0 Scan | grep SSID
Ssid:ahello
Ssid:huohb
Ssid:null
ssid:c2303102
Ssid:xiaofeibao

Note:null is the name of my SSID.

[email protected]:~# wpa_passphrase NULL >>/etc/wpa_supplicant.conf123456[email protected]:~# (where ' 123456 ' is the Network password)
Note:there is a-to-input the SSID and password in the command line,but it doesn ' t work on my PC.
4.Connect to Network
[email protected] does]# wpa_supplicant-b-i wlp6s0-c/etc/wpa_supplicant.conf
successfully initialized Wpa_supplicant
[[Email protected] does]# IP add show wlp6s0
3:wlp6s0: <BROADCAST,MULTICAST,UP,LOWER_UP> MTU Qdisc MQ State up Qlen
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
[email protected] does]# dhclient wlp6s0
[[Email protected] does]# IP add show wlp6s0
3:wlp6s0: <BROADCAST,MULTICAST,UP,LOWER_UP> MTU Qdisc MQ State up Qlen
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
[[email protected] does]# Ping www.baidu.com
PING www.a.shifen.com (111.13.100.91) bytes of data.
Bytes from 111.13.100.91:icmp_seq=1 ttl=54 time=7.02 ms
Bytes from 111.13.100.91:icmp_seq=2 ttl=54 time=6.10 ms
Bytes from 111.13.100.91:icmp_seq=3 ttl=54 time=24.7 ms
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:

[[Email protected] does]# IP link show wlp6s0
3:WLP6S0: <BROADCAST,MULTICAST,UP,LOWER_UP> MTU Qdisc MQ State up mode dormant Qlen 1000
Link/ether B0:C0:90:32:C4:FA BRD FF:FF:FF:FF:FF:FF

[[email protected] 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 Wi-Fi network from command line in Linux

A-and-connect to-network through WIFI on Centos 7

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.