Red Hat Training
A Red Hat training course is available for RHEL 8
第 4 章 将 RHEL 配置为 wifi 接入点
在具有 wifi 设备的主机上,您可以使用 NetworkManager 将这个主机配置为接入点。然后,无线客户端可以使用访问点连接到 RHEL 主机或网络中的服务。
当您配置接入点时,NetworkManager 会自动:
-
配置
dnsmasq
服务来为客户端提供 DHCP 和 DNS 服务 - 启用 IP 转发
-
添加
nftables
防火墙规则来伪装来自 wifi 设备的流量并配置 IP 转发
4.1. 确定 wifi 设备是否支持访问点模式
要使用 wifi 设备作为接入点,该设备必须支持此功能。您可以使用 nmcli
实用程序确定硬件支持访问点模式。
前提条件
- 在主机上安装了 wifi 设备。
流程
列出 wifi 设备来识别应提供访问点的 wifi 设备:
# nmcli device status | grep wifi wlp0s20f3 wifi disconnected --
验证该设备是否支持访问点模式:
# nmcli -f WIFI-PROPERTIES.AP device show wlp0s20f3 WIFI-PROPERTIES.AP: yes