#!/usr/bin/bash GATEWAY=130.235.83.152 CONNECTION=$1 for i in {65..68} ; do SUBNET="192.168.$i.0/24" nmcli connection modify “$CONNECTION” +ipv4.routes “$SUBNET $GATEWAY” done