admin管理员组文章数量:1619291
pve安装教程,使用wifi网口
下载官方iso文件制作系统盘
然后正常安装就行。但是你会发现连不上网络。
使用ip addr 查看你的wifi口的ip地址,然后去修改/network/interface
改成下面这个样子, 我电脑wifi网口设备是wlp8s0, ip 地址是192.168.124.10你参照者改。
可能遇到的问题就是, 你没有wpa_client 这个无线网络连接工具。
这个包需要去debian 官网搜索。然后下载deb包。然后使用dpkg -i *.deb包就好。
auto xxx; 就是开机自动启用网卡。
post-up, post-down, 网卡启用和禁用执行的命令。
iptables -t nat -A POSTROUTING -s ‘10.10.0.0/24’ -o wlp8s0 -j MASQUERADE
这里是使用nat转发,-s 指定源网段, -o 指定出口。
wpa-ssid 写你网络名称
wpa-psk 写你网络密码,需要使用wpa工具生成。
auto lo
iface lo inet loopback
auto wlp8s0
iface wlp8s0 inet static
address 192.168.124.10/24
gateway 192.168.124.1
wpa-ssid H3C_031907_5G
wpa-psk d619cec91270353da0223fab9146c14a9b91172bc0ca3b14c282223a12dc0b4b
iface enp7s0 inet manual
auto vmbr0
iface vmbr0 inet static
address 10.10.0.1/24
bridge-ports none
bridge-stp off
bridge-fd 0
post-up echo 1 > /proc/sys/net/ipv4/ip_forward
post-up iptables -t nat -A POSTROUTING -s '10.10.0.0/24' -o wlp8s0 -j MASQUERADE
post-down iptables -t nat -D POSTROUTING -s '10.10.0.0/24' -o wlp8s0 -j MASQUERADE
auto vmbr1
iface vmbr1 inet static
address 10.10.1.1/24
bridge-ports none
bridge-stp off
bridge-fd 0
post-up echo 1 > /proc/sys/net/ipv4/ip_forward
post-up iptables -t nat -A POSTROUTING -s '10.10.1.0/24' -o wlp8s0 -j MASQUERADE
post-down iptables -t nat -D POSTROUTING -s '10.10.1.0/24' -o wlp8s0 -j MASQUERADE
版权声明:本文标题:pve安装教程,使用wifi网口 内容由热心网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:https://m.elefans.com/dianzi/1728796960a1174194.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论