aboutsummaryrefslogtreecommitdiff
path: root/static-ip
diff options
context:
space:
mode:
Diffstat (limited to 'static-ip')
-rw-r--r--static-ip9
1 files changed, 9 insertions, 0 deletions
diff --git a/static-ip b/static-ip
new file mode 100644
index 0000000..6ffdd94
--- /dev/null
+++ b/static-ip
@@ -0,0 +1,9 @@
+ip link set dev INTERFACE up
+
+ip address add ADDRESS/PREFIX_LAN broadcast + dev INTERFACE
+
+ip address add ADDRESS/PREFIX_LAN dev INTERFACE
+
+ip route add PREFIX via ADDRESS dev INTERFACE
+
+vi /etc/resolv.conf