Ir para o conteúdo
onsuggest
Entrar
Artigo en

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

Fonte: 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

Atalhos de teclado

Descoberta anterior
←P
Próxima descoberta
→N
Gosto
L
Não é para mim
X
Guardar
S
Mostrar esta ajuda
?
Fechar
Esc

Os atalhos funcionam na página de descobertas.