From 59d0e0a9591e3dc50f15c47a71fdf97117d1ff7a Mon Sep 17 00:00:00 2001 From: neodarz Date: Wed, 24 Jan 2018 01:19:18 +0100 Subject: add more cheat --- cheat/.cheat/network | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 cheat/.cheat/network (limited to 'cheat/.cheat/network') diff --git a/cheat/.cheat/network b/cheat/.cheat/network new file mode 100644 index 0000000..57a6016 --- /dev/null +++ b/cheat/.cheat/network @@ -0,0 +1,15 @@ +# Get internet on virtual machine + +## Set ip + +``` +ip addr add 10.1.1.2/16 dev eth1 +ip link set eth1 up +``` + +## Set route + +``` +ip route add 192.168.1.0/24 dev eth0 +ip route add default via 192.168.1.254 +``` -- cgit v1.2.1