HP VPN Firewall Appliances Network Management Command Reference

39
Bulk interface commands
interface range
Use interface range to create an interface range and enter interface range view.
Syntax
interface range interface-list
Views
System view
Default command level
2: System level
Parameters
interface-list: Specifies an interface list in the format of interface-list = { interface-type interface-number
[ to interface-type interface-number ] }&<1-5>. The interface-type interface-number argument specifies
an interface by its type and number. &<1-5> indicates that you can specify up to five interfaces or
interface lists. When you specify the to keyword in interface-type interface-number1 to interface-type
interface-number2, the interfaces before and after the to keyword must be on the same interface card or
subcard, and the interface number before to must be smaller than the one after to.
Usage guidelines
You can use this command to enter interface range view to bulk configure multiple interfaces with the
same feature instead of configuring them one by one. For example, you can execute the shutdown
command in interface range view to shut down a range of interfaces.
In interface range view, only the commands supported by the first interface are available. To view the
commands supported by the first interface in the interface range, enter the interface range view and
enter ? at the command line interface prompt.
To verify the configuration of the first interface in the interface range, execute the display this command
in interface range view.
If you cannot enter the view of an interface by using the interface interface-type { interface-number |
interface-number.subnumber } command, do not configure the interface as the first interface in the
interface range.
Command application failure on one member interface does not affect the application of the command
on the other member interfaces. If applying a command on one member interface fails, the system
displays an error message and continues with the next member interface.
Examples
# Shut down interfaces GigabitEthernet 0/1 through GigabitEthernet 0/2 and VLAN interface 2.
<Sysname> system-view
[Sysname] interface range gigabitethernet 0/1 to gigabitethernet 0/2 vlan-interface 2
[Sysname-if-range] shutdown