hamnet70-gnuradio-legacy/controller/setup_tundev.sh

14 lines
196 B
Bash
Raw Normal View History

#!/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