我使用的是以太网端口桥接器,但我需要更改。我正在尝试使用此配置但没有成功:
# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).
source /etc/network/interfaces.d/*
# The loopback network interface
auto lo
iface lo inet loopback
#iface lo inet dhcp
# wifi wlp2s0
auto wlp2s0
allow-hotplug wlp2s0
iface wlp2s0 inet manual
# wpa-ssid boxssid
# wpa-psk key
auto br0
iface br0 inet static
bridge_ports wlp2s0
bridge_fd 0
bridge_maxwait 0
bridge_stp off
address 192.168.1.161
network 192.168.1.0
netmask 255.255.255.0
gateway 192.168.1.1
wpa-ssid boxssid
wpa-psk key
正如你所看到的,我用代码做了一些测试,以连接到不同地方的 wifi。谢谢