This is a continuation of the interface range configuration capability of HP Comware network devices, see Part 1 for the "port-group" command.
HP managed to introduce the same "interface range" command in HP Comware network devices. Unfortunately I have only seen it available in some models. So far I have seen this command in the EI Switch Series, A5800 and A7500. Someone can correct me here as I don't have the resource to verify all of their product line.
To give an understanding on how the commands works, below is a session example on a HP A5800 switch
HP managed to introduce the same "interface range" command in HP Comware network devices. Unfortunately I have only seen it available in some models. So far I have seen this command in the EI Switch Series, A5800 and A7500. Someone can correct me here as I don't have the resource to verify all of their product line.
To give an understanding on how the commands works, below is a session example on a HP A5800 switch
# Show the HP Comware version
<HP-TEST-SWITCH-5800>display version
HP Comware Platform Software
Comware Software, Version 5.20.105, Release 1808P27
Copyright (c) 2010-2014 Hewlett-Packard Development Company, L.P.
HP A5800-48G Switch with 1 Interface Slot uptime is 19 weeks, 4 days, 4 hours, 6 minutes
...snipped...
# Enter system-view mode
<HP-TEST-SWITCH-5800>system-view
# Verify the "interface range" command is available
[HP-TEST-SWITCH-5800]interface range ?
Bridge-Aggregation Bridge-Aggregation interface
GigabitEthernet GigabitEthernet interface
NULL NULL interface
Ten-GigabitEthernet Ten-GigabitEthernet interface
Vlan-interface VLAN interface
name Specify the interface range name
# Configure a range of interfaces
[HP-TEST-SWITCH-5800]interface range g1/0/1 to g1/0/12
# These are available interface commands while in "interface range" mode
[HP-TEST-SWITCH-5800-if-range]?
Gigabitethernet_l2 interface view commands:
apply Apply Poe-profile
arp Configure ARP for the interface
bandwidth Specify bandwidth
bpdu-drop Drop BPDU packets.
bpdu-tunnel Specify BPDU tunnel function
broadcast-suppression Specify the broadcast storm control
cfd Connectivity fault detection (IEEE 802.1ag)
default Restore the default settings
description Describe the interface
...snipped...
shutdown Shut down this interface
smart-link Configure smart link
speed Specify speed of current port
storm-constrain Port storm-constrain
stp Spanning tree protocol
tracert Trace route function
undo Cancel current setting
unicast-suppression Specify the unicast storm control
virtual-cable-test Virtual cable test information
vlan Set VLAN precedence
voice Specify voice VLAN
[HP-TEST-SWITCH-5800-if-range]
As we can see, the HP Comware "interface range" command is very similar to Cisco IOS and no longer has limited interface sub commands. These means we can now use interface sub commands such as description, shutdown, port-security, and so forth.
Another option with the "interface range" command is to name the range and save in the configuration.
Another option with the "interface range" command is to name the range and save in the configuration.
# Enter system-view mode
<HP-TEST-SWITCH-5800>system-view
# Create a interface range name and exit system-view mode
[HP-TEST-SWITCH-5800]interface range name TEST interface g1/0/1 to g1/0/12
[HP-TEST-SWITCH-5800-if-range-TEST] return
# Verify the interface range name in the configuration
<HP-TEST-SWITCH-5800>display current-configuration | i range
interface range name TEST interface GigabitEthernet1/0/1 to GigabitEthernet1/0/12
As we can see, this feature allows us to save a range of interfaces which can be configured altogether again and again without redefining them. Saves some NetOps time :)