I am attempting to create several subinterfaces on a serial port to simulate customer connections. Given this will be 50-100 subinterfaces, is there a script that can be used for this?
Hold on a sec. You actually try to create a variable as a number! that's not allowed
If you want from 50 to 100 subinterfaces, the correct syntax is
for ($i = 50; $i <= 100; $i++)
print "int Serial0/0.$i\n";
print "ip address 192.168.1.$i 255.255.255.0\n";
print "no shut\n\n";