proc trafficMultiplier { hops } { for {set a 1} {$a <= $hops} {incr a} { set c [expr $a/256] set d [expr $a%256] ios_config "interface tunnel$a" "ip addr 1.$c.$d.1 255.255.255.252" ios_config "interface tunnel$a" "tun sou lo0" ios_config "interface tunnel$a" "tun dest 2.2.$c.$d" } } trafficMultiplier 10