#!/bin/sh DEV=hamnet70 if [ -z "$1" ]; then NET=192.168.0.1/24 else NET="$1" fi sudo ip tuntap add dev $DEV user $(id -u) mode tun sudo ip addr add $NET dev $DEV sudo ip link set dev $DEV up