Aufgabe:
50 tagged Interfaces an einer Palo Alto anlegen
Über die GUI eine lange Klickerei.
Diese Zeilen werden gebraucht:
set network interface aggregate-ethernet ae2 layer3 units ae2.6 tag 6 interface-management-profile "PING RESPONSE" ip 10.141.6.1/24 set zone CLIENT network layer3 ae2.6 set network virtual-router CLIENT-VR interface ae2.6
Mit diesem Batch klappt es besser:
setlocal enabledelayedexpansion @copy nul OUTPUT.TXT @for /L %%i in (1,1,50) do ( ECHO set network interface aggregate-ethernet ae2 layer3 units ae2.%%i tag %%i interface-management-profile "PING RESPONSE" ip 10.141.%%i.1/24 >> OUTPUT.TXT ECHO set zone CLIENT network layer3 ae2.%%i >> OUTPUT.TXT ECHO set network virtual-router CLIENT-VR interface ae2.%%i >> OUTPUT.TXT ) pause