我想使用带有有线以太网连接 (eth0) 的台式机来操作我的“TP-LINK TL-WN722N”USB Wifi 适配器 (wlan0) 作为我的 Android 连接的非临时(基础架构模式)接入点。
经过大量搜索,我终于找到了一种方法(分布在许多网站上)可以满足我的大部分需求......
依赖项:
hostapd
bridge-utils
Run Code Online (Sandbox Code Playgroud)
我修改了“/etc/network/interfaces”
sudo gedit /etc/network/interfaces
Run Code Online (Sandbox Code Playgroud)
包含装有:
# This file describes the network interfaces available on your system
# and how to activate them.
auto lo br0
iface lo inet loopback
allow-hotplug eth0
iface eth0 inet manual
allow-hotplug wlan0
iface wlan0 inet manual
# Bridge setup
# for dhcp address
iface br0 inet dhcp
bridge_ports eth0 wlan0
# for static ip
# iface br0 inet static
# bridge_ports …Run Code Online (Sandbox Code Playgroud) network-manager wireless-access-point network-bridge adhoc hostapd