跳到内容
onsuggest
登录
文章 en

Making stupid bridged networking work on wifi (because usermode networking is not good enough)

来源: cosarara.me ·

This is how I setup the network when I run a VM on a laptop. Create a bridge on networkmanager: $ nmcli connection add type bridge ifname br0 stp no \ ipv4.addresses 10 .42.42.42/24 ipv4.method manual connection.id br0 (it will be DOWN but already be visible in ip link ) Set up a dhcp server for our vms using dnsmasq #/etc/dnsmasq.conf interface=br0 dhcp-range=10.42.42.50,10.42.42.150,12h # systemctl enable --now dnsmasq Enable forwarding In /etc/sysctl.conf or /etc/sysctl.d/99-sysctl.conf: net.ipv4.ip_forward = 1 # sysctl -p /etc/sysctl.conf Tell iptables to please forward iptables -A FORWARD

键盘快捷键

上一条发现
←P
下一条发现
→N
喜欢
L
不适合我
X
保存
S
显示此帮助
?
关闭
Esc

快捷键在发现页面上有效。