Skip to content

Instantly share code, notes, and snippets.

@magik6k
Last active February 20, 2016 05:09
Show Gist options
  • Save magik6k/f56cca237c69ce0a080f to your computer and use it in GitHub Desktop.
Save magik6k/f56cca237c69ce0a080f to your computer and use it in GitHub Desktop.
ip link add name br0 type bridge
ip link set up dev br0
ip addr add 172.16.212.1/30 dev br0
echo 1 > /proc/sys/net/ipv4/ip_forward
ip r add 51.254.25.16/28 via 172.16.212.2
echo "allow br0" >> /etc/qemu/bridge.conf
qemu-system-x86_64 -cpu host -enable-kvm -m 28000 -smp 6 -hda /dev/sda -hdb /dev/sdb -net nic -net bridge,br=br0 -vnc :1,password -k en-us -monitor stdio
# na vnc
ip addr add 172.16.212.2/30 dev ens3
ip route add default via 172.16.212.1
ping 8.8.8.8
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment