HPE Comware

HPE Comware Cheatsheet #

Hewlett Packard Enterprise (HPE) Comware is used in HPE networking equipment. This cheatsheet covers common commands and configurations for HPE Comware.

Basic Commands #

Command/OptionExampleDescription
system-viewsystem-viewEnter global configuration mode
display versiondisplay versionDisplay the version of Comware
display current-configurationdisplay current-configurationDisplay the current configuration
savesaveSave the current configuration
rebootrebootReboot the device
power-offpower-offShut down the device

Interface Configuration #

Command/OptionExampleDescription
system-viewsystem-viewEnter global configuration mode
interface ethernet 1/0/1interface ethernet 1/0/1Enter interface configuration mode for eth1/0/1
ip address 192.168.1.1 255.255.255.0ip address 192.168.1.1 255.255.255.0Configure IP address for the interface
description "Uplink"description "Uplink"Set description for the interface
shutdownshutdownDisable the interface
undo shutdownundo shutdownEnable the interface
display interfacedisplay interfaceDisplay interface status

VLAN Configuration #

Command/OptionExampleDescription
system-viewsystem-viewEnter global configuration mode
vlan 10vlan 10Enter VLAN configuration mode
name Managementname ManagementSet VLAN name
interface ethernet 1/0/1interface ethernet 1/0/1Enter interface configuration mode
port access vlan 10port access vlan 10Assign interface to VLAN 10
display vlandisplay vlanDisplay VLAN configuration and status

Spanning Tree Protocol (STP) #

Command/OptionExampleDescription
system-viewsystem-viewEnter global configuration mode
stpstpEnter STP configuration mode
stp vlan 10 priority 4096stp vlan 10 priority 4096Set STP priority for VLAN 10
stp vlan 10 root primarystp vlan 10 root primarySet STP root bridge for VLAN 10
display stpdisplay stpDisplay STP information
Command/OptionExampleDescription
system-viewsystem-viewEnter global configuration mode
link-aggregation group 1link-aggregation group 1Create a new link aggregation group
mode dynamicmode dynamicSet mode for link aggregation
eth-trunk 1eth-trunk 1Enter link aggregation group configuration mode
port 1/0/1port 1/0/1Add interface to the link aggregation group
display eth-trunkdisplay eth-trunkDisplay link aggregation status

Routing Configuration #

Command/OptionExampleDescription
system-viewsystem-viewEnter global configuration mode
ip route-static 0.0.0.0 0.0.0.0 192.168.1.1ip route-static 0.0.0.0 0.0.0.0 192.168.1.1Configure default route
display ip routing-tabledisplay ip routing-tableDisplay routing table

This cheatsheet provides essential HPE Comware commands for system management, interface configuration, VLANs, STP, link aggregation, and routing. For more detailed information, refer to the HPE Comware documentation.

HPE Comware

Explore our comprehensive cheatsheets to enhance your knowledge and efficiency. Each cheatsheet provides detailed command options, examples, and descriptions to help you master various tools and technologies.