Thomas Kolb
fffea05647
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.
14 lines
196 B
Bash
Executable file
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
|