Similar to Cisco IOS interface range command, HP Comware has options to configure multiple ports. Depending on the HP Comware network device model, not all of these options might be available. I will break this post in two parts in order to focus in each commands.
The port-group command is common to all HP Comware network devices which is used to configured multiple ports. First create a name for a group of ports and then use the group-member sub-command to assign a port into the port group. This can be a continuous range of ports or not. Afterwards, these group of ports can be configured at the same time with the available interface commands.
Below is a session example using the port-group command.
The port-group command is common to all HP Comware network devices which is used to configured multiple ports. First create a name for a group of ports and then use the group-member sub-command to assign a port into the port group. This can be a continuous range of ports or not. Afterwards, these group of ports can be configured at the same time with the available interface commands.
Below is a session example using the port-group command.
# Enter system-view mode
<HP-TEST-SWITCH-5120>system-view
# Create the port-group
[HP-TEST-SWITCH-5120]port-group manual ?
STRING<1-32> Manual port group name
[HP-TEST-SWITCH-5120]port-group manual test
# Add ports to the port-group
[HP-TEST-SWITCH-5120-port-group-manual-test]group-member g1/0/1 ?
GigabitEthernet GigabitEthernet interface
to Range of interfaces
<cr>
[HP-TEST-SWITCH-5120-port-group-manual-test]group-member g1/0/1 to g1/0/12
# Verify the ports included the port-group
[HP-TEST-SWITCH-5120-port-group-manual-test]display port-group manual all
Member of test:
GigabitEthernet1/0/1 GigabitEthernet1/0/2 GigabitEthernet1/0/3
GigabitEthernet1/0/4 GigabitEthernet1/0/5 GigabitEthernet1/0/6
GigabitEthernet1/0/7 GigabitEthernet1/0/8 GigabitEthernet1/0/9
GigabitEthernet1/0/10 GigabitEthernet1/0/11 GigabitEthernet1/0/12
# These are available interface commands while in port-group mode
[HP-TEST-SWITCH-5120-port-group-manual-test]?
Port-group view commands:
broadcast-suppression Specify the broadcast storm control
display Display current system information
dldp Specify configuration information of DLDP
garp Generic Attribute Registration Protocol
group-member Specify the member of the manual port group
gvrp GARP VLAN Registration Protocol
igmp-snooping Configure IGMP snooping characteristic
lldp Link Layer Discovery Protocol(802.1ab)
logfile Specify log file configuration
loopback-detection Detect if loopback exists
mac-address Specify configuration about mac-address
mac-vlan Specify MAC VLAN
mld-snooping Configure MLD snooping characteristic
multicast-suppression Specify the multicast storm control
ping Ping function
port Configure or modify aggregate parameters on a port
port-isolate Specify port-isolate configuration information
qinq Specify 802.1Q-in-Q VPN function
qos Command of QoS(Quality of Service)
quit Exit from current command view
return Exit to User View
save Save current configuration
stp Spanning tree protocol
system-guard System guard function
tracert Trace route function
undo Cancel current setting
unicast-suppression Specify the unicast storm control
HP Comware has provided network administrators the port-group command as an equivalent to the interface range option of Cisco. However, it still has limitations particularly the available interface commands while in the port-group mode. In my daily network operations, commands like description, port-security and even shutdown are not available in this mode which provides limitations.
In Part2, HP Comware introduced another command which addressed these.