From a945feb02f6d64df2219ea1044251a7fe2ea98fc Mon Sep 17 00:00:00 2001 From: Mateja Date: Sat, 3 Apr 2021 00:37:03 +0200 Subject: Initial commit. --- static-ip | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 static-ip (limited to 'static-ip') 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 -- cgit v1.2.3