Skip to content

Instantly share code, notes, and snippets.

@ndunks
Created March 30, 2020 15:40
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ndunks/8bdb5f8df9dca951af8f8568eba7433a to your computer and use it in GitHub Desktop.
Save ndunks/8bdb5f8df9dca951af8f8568eba7433a to your computer and use it in GitHub Desktop.
Qemu Linux setup host to guest network connection using bridge
sudo su
brctl addbr br0
ip addr add 192.168.3.100/24 dev br0
ip link set br0 up
[ -d /etc/qemu ] || mkdir /etc/qemu
touch /etc/qemu/bridge.conf
echo "allow br0" >> /etc/qemu/bridge.conf

QEMU:

qemu-system-i386 \
	-m 256 \
	-smp 2 \
	-enable-kvm \
	-net nic,model=rtl8139 -net bridge,br=br0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment