Linux rhel7 无线网络配置

时间:2023-03-09 15:26:01
Linux rhel7 无线网络配置

前言: 手提新装rhel7, ifconfig 发现只有lo 怎么办?

1. 检查网卡驱动装了没有: nmcli -a|grep wlp\

  如果没安装:

    a. lspci|grep Wireless 查询网卡型号

    b. 在gilhub中搜索你的网卡型号,并安装(详细略)

  ps: 其实一般系统版本迟于你电脑的出厂时间都有匹配的驱动被安装, 基本可忽略

2. 检查NetworkManager-wifi 插件安装没有(同上)

   如提示 plugin missing :

   yum install NetworkManager-wifi -y

   systemctl restart NetworkManager

3. 配置wifi

  a. nmcli -a |grep wlp   查看端口名,我的是wlp58s0

  b. nmcli con up wlp58s0

c. nmcli dev set wlp58s0 autoconnect yes managed yes

d. nmcli dev wifi conncet "wiif名" password "wifi密码"

e. nmcli -a              检查结果

以上配置完毕