fernlader2/tunconfig.sh

5 lines
110 B
Bash
Executable file

#!/bin/bash
DEV="${1##/*/}"
HOST_IP="10.0.0.1/24"
ip addr add "$HOST_IP" dev "$DEV"
ip link set up dev "$DEV"