1# Configuration file for setting IP addresses for multiple network interface. 2 3COUNT=${COUNTER:-2} 4INTERFACE_PREFIX="$1" 5 6INTERFACE_TMPL=`echo ${INTERFACE_PREFIX} | sed "s/0//g"` 7 8for ((i = 1; i < $COUNT; i++ )); { 9 iface_idx=$i 10 INTERFACE=${INTERFACE_TMPL}${iface_idx} 11 12 ip tuntap del $INTERFACE mode tap 13} 14