Generate the IOS interface range command for configuring many switchports at once.
One interface range command applies the following subcommands to every port in the span. Keep spans at 200 ports or fewer so configs stay readable.
interface range GigabitEthernet0/1 - 24Applying the same switchport mode, VLAN, or description to a block of ports at once.
Start must be ≤ end and the span (end − start) at most 200.