#!/bin/sh nmcli -t --fields=name con show --active | while read con do ( set -x nmcli con down "$con" nmcli con up "$con" ) done