scr/ip-enable.sh
2023-01-15 05:20:43 +00:00

16 lines
277 B
Bash
Executable File

#!/bin/env zsh
# Inference
# IP Address - Enable
# Copyright 2022-2023 Inference
# SPDX-License-Identifier: BSD-3-Clause-Clear
# Version: 0.0.2.2
doas zsh -c\
"ip link set enp37s0 up &&\
ip addr add 192.168.1.30/24 dev enp37s0 &&\
ip route add default via 192.168.1.1"