aboutsummaryrefslogtreecommitdiff
path: root/static-ip
diff options
context:
space:
mode:
authorMateja <mail@matejamaric.com>2021-04-03 00:37:03 +0200
committerMateja <mail@matejamaric.com>2021-04-03 00:37:03 +0200
commita945feb02f6d64df2219ea1044251a7fe2ea98fc (patch)
treefe0242495eb35317fd5358e403a047657dfa04b5 /static-ip
downloadmisc-a945feb02f6d64df2219ea1044251a7fe2ea98fc.tar.gz
misc-a945feb02f6d64df2219ea1044251a7fe2ea98fc.zip
Initial commit.
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