Need multiple loopbacks on IOS/IOU?

Use this TCL script.

  1. Change “20” in the line {$i <= 20} to match desired amount of loopbacks
  2. Change the ip range to your what you need.
  3. Copy and paste the entire script

 
tclsh
for { set i 0 } {$i <= 20 } { incr i } {
puts [ ios_config “interface loopback$i” “ip address 169.254.$i.1 255.255.255.192” ]
}
tclquit
sh ip int br


Leave a comment