Summary Files Commits Branches @commit @diff @stats
path: root / Year 2 / Computer Networks / Project / adminhome-specialsetup.sh
diff options
context:
space:
mode:
1 files changed, 14 insertions, 0 deletions
-rw-r--r--Year 2/Computer Networks/Project/adminhome-specialsetup.sh14
diff --git a/Year 2/Computer Networks/Project/adminhome-specialsetup.sh b/Year 2/Computer Networks/Project/adminhome-specialsetup.sh
new file mode 100644
index 0000000..e55f42e
--- /dev/null
+++ b/Year 2/Computer Networks/Project/adminhome-specialsetup.sh
@@ -0,0 +1,14 @@
+# Thanks https://unix.stackexchange.com/a/538692
+# Thanks https://askubuntu.com/q/168033
+# When you try to ping internal network devices, it will fail, so you'll need to configure the
+# actual Debian VM to add proper ip routes
+# This is done in one of two ways:
+
+## Inside config; changes are done with "Right-click/Edit config" on a powered off device
+## They are persistent, this is the recommended way
+
+# below iface ....
+ up /bin/ip route add 0.0.0.0/0 via 0.0.0.0
+
+## While it is running with commands; changes aren't persistent
+ route add -net 0.0.0.0/0 gw 0.0.0.0