Centos connection WIFI

Source: Internet
Author: User

Centos connection WIFI

(1) iw dev view wireless NICs [root @ localhost desktop] # iw devphy #0 Interface wlp4s0 ifindex 3 wdev 0x1 addr 1c: 4b: d6: 91: 83: 0a type managed (2) ip link set *** up enable wireless network adapter [root @ localhost desktop] # ip link set wlp4s0 up (3) ip link show *** displays the basic information of the wireless network adapter [root @ localhost desktop] # ip link show wlp4s03: wlp4s0: <NO-CARRIER, BROADCAST, MULTICAST, UP> mtu 1500 qdisc mq state DOWN mode DEFAULT qlen 1000 link/ether 1c: 4b: d6: 91: 83: 0a brd ff: ff (4) iw *** link displays wireless network adapter connection status [root @ localhost desktop] # iw wlp4s0 linkNot connected. (5) iw *** scan | grep SSID view wireless network SSID in the current Lan [root @ localhost desktop] # iw wlp4s0 scan | grep SSID: TP-LINK_AA SSID: TP-202 SSID: TP-LINK_Allen SSID: Tenda_zzzz SSID: \ xba \ xa3 \ xd4 \ xf4 \ xcd \ xf5 \ xc2 \ xb7 \ xb7 \ xc9 SSID: WIFI123 SSID: MERCURY_435C SSID: xiaoniu SSID: Tenda SSID: xxxxx (6) wpa_supplicant-B-I ***-c <(wpa_passphrase "SSID_XXX" "PWD_XXX") connects to the wireless network, and the wifi SSID that SSID_XXX needs to connect, PWD_XXX wifi password [root @ localhost desktop] # wpa_supplicant-B-I wlp4s0-c <(wpa_passphrase "alias" 78787878 ") Successfully initialized wpa_supplicant (7) dhclient allocates IP addresses [root @ localhost desktop] # dhclient wlp4s0 [root @ localhost desktop] # ip addr show wlp4s03: wlp4s0: <BROADCAST, MULTICAST, UP, LOWER_UP> mtu 1500 qdisc mq state UP qlen 1000 link/ether 1c: 4b: d6: 91: 83: 0a brd ff: ff inet 192.168.1.105/24 brd 192.168.1.255 scope global dynamic fill valid_lft 172788sec limit 172788sec inet6 fe80: 1e4b: d6ff: fe91: 830a/64 scope link limit forever connection successful test: [root @ localhost desktop] # ping baidu. comPING baidu.com (220.181.57.217) 56 (84) bytes of data.64 bytes from 220.181.57.217: icmp_seq = 1 ttl = 51 time = 61.0 ms64 bytes from 220.181.57.217: icmp_seq = 2 ttl = 51 time = 43.3 ms ^ C64 bytes from 220.181.57.217: icmp_seq = 3 ttl = 51 time = 42.5 ms --- baidu.com ping statistics --- 3 packets transmitted, 3 received, 0% packet loss, time 2000 msrtt min/avg/max/mdev = 42.596/48.981/61.035/8.528 MS

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.