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
相关发现
-
Ardbeg Ten Cask Strength
文章 · Whisky and Wisdom
-
The etiquette and politics of whisky write-ups and reviews
文章 · Whisky and Wisdom
-
The Glendronach “Ode to….” series
文章 · Whisky and Wisdom
-
Jack Daniel’s 10 Years Old
文章 · Whisky and Wisdom
-
Glenfiddich 16 Aston Martin
文章 · Whisky and Wisdom
-
Falkirk Distillery
文章 · Whisky and Wisdom