scr/ip-enable.sh

16 lines
279 B
Bash
Raw Normal View History

2023-01-15 03:24:49 +00:00
#!/bin/env zsh
# Inference
# IP Address - Enable
# Copyright 2022-2023 Inference
# SPDX-License-Identifier: BSD-3-Clause-Clear
# Version: 0.0.0.0
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"