hamnet70-gnuradio-legacy/controller/setup_tundev.sh
Thomas Kolb fffea05647 Added Hamnet70 controller script
This script manages the interface between the TUN device and GNU Radio.
In the future, it will also do node registration, user scheduling and
other things necessary to run the network.
2018-12-12 21:38:56 +01:00

14 lines
196 B
Bash
Executable file

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