Use this TCL script.
- Change “20” in the line {$i <= 20} to match desired amount of loopbacks
- Change the ip range to your what you need.
- 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