centos7 设置连接无线wifi


安装系统后,首先要联网。

1.首先使用网线连接,之后尝试ping www.baidu.com我的是自动通的

2.需要查看网卡型号,先安装工具

yum -y install pciutils*

 

3.查看无线网卡型号

lspci

 

我的查到有以下内容

PRO/Wireless 3945ABG.......无线网卡

4.查找并安装

yum list | grep "3945"
yum -y install iwl3945-firmware

 

5.安装配置工具,安装net-tools后,可以使用ifconfig

yum install iw
yum install wpa_supplicant
yum install net-tools

 6.查看无线网接口

iw dev
如下,我的无线网卡就是wlp16s0,



 

7.查看接口连接信息

iw wlp16s0 link
显示 # Not connectted. 未连接
 

8.查看网络接口/网卡状态

ifconfig

9.启用wlp16s0接口

ip link set dev wlp16s0 up

10.查看周围wifi

iw dev wlp16s0 scan | grep SSID

11.编辑  vi  /etc/wpa_supplicant/wpa_supplicant.conf,如下内容

保存退出

12.激活配置:

wpa_supplicant -B -i wlp16s0 -c /etc/wpa_supplicant/wpa_supplicant.conf

13.可以选择开启dhcp

用dhcp获得IP

dhclientwlp16s0

查看ip

ip addr show wlp16s0

 

https://blog.csdn.net/u014711094/article/details/79832259

 






 


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM