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/Option | Example | Description |
---|
system-view | system-view | Enter global configuration mode |
display version | display version | Display the version of Comware |
display current-configuration | display current-configuration | Display the current configuration |
save | save | Save the current configuration |
reboot | reboot | Reboot the device |
power-off | power-off | Shut down the device |
Interface Configuration
#
Command/Option | Example | Description |
---|
system-view | system-view | Enter global configuration mode |
interface ethernet 1/0/1 | interface ethernet 1/0/1 | Enter interface configuration mode for eth1/0/1 |
ip address 192.168.1.1 255.255.255.0 | ip address 192.168.1.1 255.255.255.0 | Configure IP address for the interface |
description "Uplink" | description "Uplink" | Set description for the interface |
shutdown | shutdown | Disable the interface |
undo shutdown | undo shutdown | Enable the interface |
display interface | display interface | Display interface status |
VLAN Configuration
#
Command/Option | Example | Description |
---|
system-view | system-view | Enter global configuration mode |
vlan 10 | vlan 10 | Enter VLAN configuration mode |
name Management | name Management | Set VLAN name |
interface ethernet 1/0/1 | interface ethernet 1/0/1 | Enter interface configuration mode |
port access vlan 10 | port access vlan 10 | Assign interface to VLAN 10 |
display vlan | display vlan | Display VLAN configuration and status |
Spanning Tree Protocol (STP)
#
Command/Option | Example | Description |
---|
system-view | system-view | Enter global configuration mode |
stp | stp | Enter STP configuration mode |
stp vlan 10 priority 4096 | stp vlan 10 priority 4096 | Set STP priority for VLAN 10 |
stp vlan 10 root primary | stp vlan 10 root primary | Set STP root bridge for VLAN 10 |
display stp | display stp | Display STP information |
Link Aggregation
#
Command/Option | Example | Description |
---|
system-view | system-view | Enter global configuration mode |
link-aggregation group 1 | link-aggregation group 1 | Create a new link aggregation group |
mode dynamic | mode dynamic | Set mode for link aggregation |
eth-trunk 1 | eth-trunk 1 | Enter link aggregation group configuration mode |
port 1/0/1 | port 1/0/1 | Add interface to the link aggregation group |
display eth-trunk | display eth-trunk | Display link aggregation status |
Routing Configuration
#
Command/Option | Example | Description |
---|
system-view | system-view | Enter global configuration mode |
ip route-static 0.0.0.0 0.0.0.0 192.168.1.1 | ip route-static 0.0.0.0 0.0.0.0 192.168.1.1 | Configure default route |
display ip routing-table | display ip routing-table | Display 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.