Chapter 2 - Computer Hardware - Popular Switch Commands

Cisco network switches deliver performance and security. Cisco switches are scalable and cost-efficient and meet the need for any size of business.

HP ProCurve was the name of the networking division of Hewlett-Packard from 1998 to 2010 and associated with the products that it sold. The name of the division was changed to HP Networking in September 2010 after HP bought 3Com Corporation.

Let's look at HP and Cisco switch commands.


enable - en

configure terminal - conf t


copy startup-config running-config

copy running-config startup-config

write memory - wr mem

show - sh

show running-config | inc x

show startup-config | inc x

show ip route

show ip interface brief

show ip prot

show mac address-table

show run int Xx/x

show run status

show vlan id xxx

show control-plane host open-ports

show cdp neighbors

show arp

show ip arp

show int status

show port-security int Xx/x


interface - int

ip address

ip address x.x.x.x y.y.y.y

ip address dhcp

ip default-gateway x.x.x.x

ip route x.x.x.x y.y.y.y n.n.n.n

shutdown - shut


switchport mode access

switchport access vlan xxx

switchport port-security

switchport port-security mac-address sticky

switchport port-security violation restrict | protect | shutdown

switchport trunk encapsulation dot1q

switchport trunk native vlan xxx

switchport mode trunk



no + command = remove


enable - en

configure - conf t

show - sh

write memory - wr mem

show system-information

show config

show running config

show flash

show name

show interface

show trunks

show lacp

show mac

show int d

show spanning-tree

show vlan

show port-security

port-security (port) learn-mode (static/continuous)

port-security (port) mac-address (xxxxxx-xxxxxx)

no port-security (port) mac-address (xxxxxx-xxxxxx)

port-security (port) mac-address (xxxxxx-xxxxxx)






show power-over-ethernet brief

no interface (port) power-over-ethernet

interface (port) power-over-ethernet

interface (port) name (port-name)

vlan (vlan ID) name (vlan name)

no vlan (port)


This is just a general switch command list. You can get help on each command for both HP and Cisco using the command line interface.

We have covered so far...
CH 1: Computer Hardware - Category Cable Termination (RJ45)
CH 1: Computer Hardware - Popular Switch Commands

My Website and Free Tools
4/18/2019 - Chapter 1 - Category Cable Termination (RJ45)
7/9/2019 - Chapter 2 - Popular Switch Commands