Summary Files Commits Branches @commit @diff @stats
path: root / Year 2 / Computer Networks / Project / adminhome-specialsetup.sh
diff options
context:
space:
mode:
Commit885d06b5385362af57aebb40e93e3628983fb054 (patch)
Author
 Syndamia <kamen@syndamia.com>
2023-06-04 20:04:53 +0300
Committer
 Syndamia <kamen@syndamia.com>
2023-06-04 20:04:53 +0300
Filese3f329879a9142f1c42e0b4456622af5ef6d663b /Year 2/Computer Networks/Project/adminhome-specialsetup.sh
uni-projects-885d06b5385362af57aebb40e93e3628983fb054.tar
uni-projects-885d06b5385362af57aebb40e93e3628983fb054.tar.gz
uni-projects-885d06b5385362af57aebb40e93e3628983fb054.zip
Parenta989c33e610b495b8a096d28b9f9391669bb4dfe (diff)
[CN/P] Finished first exercise
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