scr/ip-enable.sh

16 lines
280 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
2023-01-15 03:48:41 +00:00
# Version: 0.0.1.1
2023-01-15 03:24:49 +00:00
2023-01-15 03:48:41 +00:00
doas zsh -c\\
2023-01-15 03:24:49 +00:00
"ip link set enp37s0 up &&\\
ip addr add 192.168.1.30/24 dev enp37s0 &&\\
ip route add default via 192.168.1.1"