Last active
February 20, 2016 05:09
-
-
Save magik6k/f56cca237c69ce0a080f to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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