1.首先下载iw工具。

  yum -y install iw

2.获取无线网卡的名称

  执行iw dev,假设获得名称为 wlp3s0(示例)

3.激活无线网络接口

  执行ip link set wlp3s0 up

4.扫描当前环境中的无线网络

  执行iw wlp3s0 scan|grep SSID,假设你能够连接的网络名称是TP-LINK-1(示例)

5.登录指定网络

  执行wpa_supplicant -B -i wlp3s0 -c <(wpa_passphrase "TP-LINK-1" "此网络的密码")

6.主动请求动态地址

  dhclient wlp3s0

7.查看获取的网络地址

  执行ip addr show wlp3s0

相关文章:

  • 2021-10-16
  • 2022-12-23
  • 2021-06-26
  • 2021-09-01
  • 2022-01-17
  • 2022-02-27
  • 2022-01-07
  • 2021-06-18
猜你喜欢
  • 2022-12-23
  • 2021-11-23
  • 2022-01-07
  • 2022-12-23
  • 2021-12-26
  • 2021-04-14
  • 2021-08-03
相关资源
相似解决方案