Add tocks configuration support to switch_net.sh