summaryrefslogtreecommitdiff
path: root/configs/interfaces
diff options
context:
space:
mode:
authorTom Barrett <tom@tombarrett.xyz>2020-03-20 04:30:39 -0500
committerTom Barrett <tom@tombarrett.xyz>2020-03-20 04:30:39 -0500
commiteab5eca5bda076aae57e6cc82b6e08dbd5025ff3 (patch)
tree560332dfd41f0948d13fec7d34ce25ccd6202313 /configs/interfaces
parent01e2662903dadce5903581eac738d0b413e521c2 (diff)
new way of generating interfaces, only have to change hosts file now
Diffstat (limited to 'configs/interfaces')
-rw-r--r--configs/interfaces14
1 files changed, 14 insertions, 0 deletions
diff --git a/configs/interfaces b/configs/interfaces
new file mode 100644
index 0000000..b663d7f
--- /dev/null
+++ b/configs/interfaces
@@ -0,0 +1,14 @@
+# This file describes the network interfaces available on your system
+# and how to activate them. For more information, see interfaces(5).
+
+# The loopback network interface
+auto lo
+iface lo inet loopback
+
+auto eth0
+iface eth0 inet static
+ address ADDRESS/24
+ post-up route add -net 0.0.0.0 netmask 0.0.0.0 gw 192.168.122.1
+ pre-down route del -net 0.0.0.0 netmask 0.0.0.0 gw 192.168.122.1
+
+source /etc/network/interfaces.d/*.cfg