HP ProCurve OS Cheatsheet
#
HP ProCurve OS is used in HP ProCurve switches and offers a variety of commands for network management and configuration. This cheatsheet covers commonly used commands for ProCurve OS.
General Commands
#
Command/Option | Example | Description |
---|
show version | show version | Display the software version and system information |
show running-config | show running-config | Display the current configuration |
show startup-config | show startup-config | Display the startup configuration |
write memory | write memory | Save the current configuration to startup |
reload | reload | Reboot the switch |
Interface Configuration
#
Command/Option | Example | Description |
---|
interface vlan <id> | interface vlan 1 | Enter VLAN configuration mode |
interface <type> <id> | interface ethernet 1 | Enter specific interface configuration mode |
ip address <addr> <mask> | ip address 192.168.1.1 255.255.255.0 | Set IP address on an interface |
no shutdown | no shutdown | Enable an interface |
shutdown | shutdown | Disable an interface |
VLAN Configuration
#
Command/Option | Example | Description |
---|
vlan <id> | vlan 10 | Enter VLAN configuration mode |
name <name> | name VLAN10 | Set VLAN name |
tagged <port-list> | tagged 1,2,3 | Assign tagged ports to the VLAN |
untagged <port-list> | untagged 4,5 | Assign untagged ports to the VLAN |
exit | exit | Exit VLAN configuration mode |
Spanning Tree Protocol
#
Command/Option | Example | Description |
---|
spanning-tree <type> | spanning-tree rapid-pvst | Set spanning tree protocol type |
spanning-tree vlan <id> root | spanning-tree vlan 1 root | Set VLAN root bridge for spanning tree |
show spanning-tree | show spanning-tree | Display spanning tree status |
Routing Configuration
#
Command/Option | Example | Description |
---|
ip routing | ip routing | Enable IP routing |
ip route <network> <mask> <next-hop> | ip route 192.168.2.0 255.255.255.0 192.168.1.1 | Configure static route |
show ip route | show ip route | Display routing table |
Security
#
Command/Option | Example | Description |
---|
enable secret <password> | enable secret mypassword | Set enable mode password |
password <password> | password mypassword | Set console or line password |
access-list <id> permit <src> <dest> | access-list 100 permit 192.168.1.0 0.0.0.255 | Create an ACL rule |
show access-lists | show access-lists | Display configured access control lists |
Management
#
Command/Option | Example | Description |
---|
hostname <name> | hostname MySwitch | Set the switch hostname |
configure terminal | configure terminal | Enter global configuration mode |
end | end | Exit global configuration mode |
show arp | show arp | Display ARP table |
show interface <type> <id> | show interface ethernet 1 | Display interface status |
This cheatsheet covers essential HP ProCurve OS commands for network management and configuration. For more detailed information, refer to the HP ProCurve documentation.