Blog iconOur Best CLI Cheat Sheet: Cisco and HP

Carolina Advanced Digital, Inc. > Blog > Blog > Our Best CLI Cheat Sheet: Cisco and HP

Our Best CLI Cheat Sheet: Cisco and HP

If you’ve purchased HP Networking equipment from us (Carolina Advanced Digital), and/or if you’ve worked with our Professional SCLI-Ref-Guide v3 VLAN SAMPLEervices team on networking projects, you’re probably familiar with our go-to resource for all things CLI — The HP Networking and Cisco CLI Reference Guide.

We love this guide because it covers all the standard configurations you’ll use, showing Cisco side-by-side with HP ProVision and Comware versions 5 and 7. Compare CLI commands, get tips and tricks for configuring on specific platform, and view at-a-glance sample configurations in each section. Regardless of the switches you’re managing this little book (well, this BIG book- it’s 560 pages) will be your go-to CLI Bible.

The latest CLI Reference Guide version 3 is out, and we invite you to download it here for free and share in the CLI love.


Table of Contents
Introduction …………………………………………………………………………………………………………. 7
Comware 5 and Comware 7 Integration ……………………………………………………………………… 8
Using This Guide …………………………………………………………………………………………………. 10
Comware Differences ………………………………………………………………………………………………… 10
Navigation Differences Among CLIs ………………………………………………………………………………. 10
Configuration Differences Among CLIs …………………………………………………………………………… 10
Terminology Differences …………………………………………………………………………………………….. 11
Disclaimer …………………………………………………………………………………………………………………. 11
Comparing View and Configuration Prompts ………………………………………………… 12
Comparing Frequently Used Commands ………………………………………………………….. 12
Chapter 1 Basic Switch Management ………………………………………………………………. 13
a) Management Access ……………………………………………………………………………………………… 13
b) Configuration Access …………………………………………………………………………………………….. 14
c) Console Access—Baud Rate …………………………………………………………………………………….. 15
c) Console and Virtual Terminal Access—Timeout …………………………………………………………. 16
d) Reload & Timed Reload ………………………………………………………………………………………….. 18
e) USB …………………………………………………………………………………………………………………… 23
f) System and Environment ………………………………………………………………………………………… 24
g) Remote Management Sessions—Viewing ………………………………………………………………… 29
g) Remote Management Sessions—Terminating …………………………………………………………… 32
h) Tech Support Information Output Listing ………………………………………………………………… 35
i) Filtering Output show running-config and display current-configuration ……………………… 37
j) Motd ………………………………………………………………………………………………………………….. 38
k) Source Interface for Management Communications ……………………………………………………. 39
Chapter 2 Switch User ID and Password, and Console Access ……………………………….. 42
a) Local User ID and Password, and console access ………………………………………………………. 42
b) Recover Lost Password……………………………………………………………………………………………. 55
c) Protect Local Password……………………………………………………………………………………………. 57
Chapter 3 Image or Operating System File Management ………………………………………………….. 60
Chapter 4 Configuration File Management ……………………………………………………………………. 75
Chapter 5 Syslog Services ……………………………………………………………………………………………. 91
Chapter 6 Time Service ……………………………………………………………………………………………….. 97
a) TimeP or NTP ………………………………………………………………………………………………………. 97
b) SNTP ……………………………………………………………………………………………………………….. 106
Chapter 7 SNMP ……………………………………………………………………………………………………… 111
a) SNMP Version 1 and Version 2c …………………………………………………………………………….. 112
b) SNMP Version 3 …………………………………………………………………………………………………. 125
Chapter 8 CLI Management Access – Telnet and SSH …………………………………………………… 137
a) Telnet ………………………………………………………………………………………………………………. 137
b) SSH ………………………………………………………………………………………………………………… 144
Chapter 9 GUI Management Access – HTTP and HTTPS ……………………………………………… 155
a) HTTP ……………………………………………………………………………………………………………….. 155
b) HTTPS – SSL (Self-Signed Certificates) ………………………………………………………………… 160
Chapter 10 RADIUS Authentication for Switch Management …………………………………………. 167
a) Basic Configuration …………………………………………………………………………………………….. 168
b) Privilege Mode …………………………………………………………………………………………………… 188
c) Commands Authorization ………………………………………………………………………………………. 191
d) RADIUS Accounting …………………………………………………………………………………………….. 193
Chapter 11 TACACS+/HWTACACS Authentication for Switch Management …………………….. 196
a) Basic Configuration …………………………………………………………………………………………….. 196
b) Privilege Mode …………………………………………………………………………………………………… 211
c) TACACS Accounting ……………………………………………………………………………………………. 214
Chapter 12 Discovery Protocols – LLDP and CDP ………………………………………………………. 217
a) LLDP ………………………………………………………………………………………………………………… 217
b) CDP ………………………………………………………………………………………………………………… 224
Chapter 13 Interface or Port Information and Nomenclature ………………………………………… 232
Chapter 14 VLAN Management …………………………………………………………………………………… 248
a) Creating and Naming VLANs ………………………………………………………………………………… 248
b) Assigning Ports or Interfaces to VLANs ……………………………………………………………………… 254
c) Assigning an IP Address to a VLAN …………………………………………………………………………. 270
d) IP Helper to Relay / Forward DHCP Requests ……………………………………………………………… 272
Chapter 15 PoE (Power over Ethernet) ……………………………………………………………………………. 278
Chapter 16 VoIP Support ……………………………………………………………………………………………. 284
Chapter 17 Link Aggregation – LACP and Trunk ………………………………………………………………. 290
a) Link Aggregation Control Protocol (LACP) ………………………………………………………………….. 290
b) Trunk ……………………………………………………………………………………………………………….. 297
Chapter 18 RSTP ……………………………………………………………………………………………………… 302
Chapter 19 MSTP …………………………………………………………………………………………………….. 313
Chapter 20 PVST/PVST+/RPVST/RPVST+ ……………………………………………………………………….. 336
Chapter 21 RIP – v1 and v2………………………………………………………………………………………… 349
Chapter 22 OSPFv2 ………………………………………………………………………………………………….. 353
a) Single Area ……………………………………………………………………………………………………….. 353
b) Multiple Areas ……………………………………………………………………………………………………. 356
c) Stub ………………………………………………………………………………………………………………… 358
d) Totally Stubby ……………………………………………………………………………………………………. 359
e) Show or Display OSPF Commands ………………………………………………………………………….. 360
Chapter 23 BGP version 4 ………………………………………………………………………………………….. 366
a) eBGP ………………………………………………………………………………………………………………. 367
b) iBGP ……………………………………………………………………………………………………………….. 379
Chapter 24 VRRP ……………………………………………………………………………………………………… 384
Chapter 25 ACLs ……………………………………………………………………………………………………… 391
a) Definitions of Standard or Basic ACLs and Extended or Advanced ACLs ……………………………. 391
b) ACL Fundamental Configuration Options …………………………………………………………………… 392
Standard/Basic …………………………………………………………………………………………………… 392
Extended/Advanced ……………………………………………………………………………………………. 392
c) Routed/Layer 3 ACL (RACL) …………………………………………………………………………………… 401
Standard or Basic ACL ………………………………………………………………………………………….. 401
Extended or Advanced ACL ……………………………………………………………………………………. 401
d) VLAN/Layer 2 Based ACL (VACL) …………………………………………………………………………… 407
Standard or Basic ACL ………………………………………………………………………………………….. 407
Extended or Advanced ACL ……………………………………………………………………………………. 407
e) Port ACL (PACL) ………………………………………………………………………………………………….. 414
Standard or Basic ACL ………………………………………………………………………………………….. 414
Extended or Advanced ACL ……………………………………………………………………………………. 414
Chapter 26 QoS ……………………………………………………………………………………………………… 418
QoS Operational Characteristics ………………………………………………………………………………… 418
a) QoS ………………………………………………………………………………………………………………… 419
b) Rate Limiting ……………………………………………………………………………………………………… 430
Chapter 27 IP Multicast ……………………………………………………………………………………………… 435
a) PIM Dense ………………………………………………………………………………………………………… 436
b) PIM Sparse ……………………………………………………………………………………………………….. 440
c) IGMP ……………………………………………………………………………………………………………….. 449
Chapter 28 Spanning Tree Hardening …………………………………………………………………………… 451
a) UDLD and DLDP ………………………………………………………………………………………………….. 453
b) BPDU Protection and BPDU Guard …………………………………………………………………………… 457
c) Loop Protection …………………………………………………………………………………………………… 458
d) Root Guard ……………………………………………………………………………………………………….. 460
Chapter 29 DHCP Snooping ……………………………………………………………………………………….. 461
Chapter 30 ARP Protection, ARP Detection, and Dynamic ARP Inspection ………………………………… 470
Chapter 31 Connection Rate Filtering ……………………………………………………………………………. 478
Chapter 32 802.1X Authentication ……………………………………………………………………………….. 483
a) 802.1X Authentication …………………………………………………………………………………………. 483
b) MAC Authentication …………………………………………………………………………………………….. 503
c) Web or Portal Authentication …………………………………………………………………………………. 512
Chapter 33 Port Mirroring or Port Span………………………………………………………………………….. 525
a) Local Mirror or SPAN …………………………………………………………………………………………… 525
b) Remote Mirror or RSPAN ………………………………………………………………………………………. 530
Chapter 34 HP 3800 Stacking / HP IRF / Cisco Switch Stacks …………………………………………….. 537
Appendix A Comware Platforms – Default configuration …………………………………………………….. 544
Appendix B Comware CLI Commands in ProVision Software ……………………………………………….. 545
a) Fundamental Commands ………………………………………………………………………………………. 545
b) Display Commands ……………………………………………………………………………………………… 546
Index ……………………………………………………………………………………………………………………… 551

Provided by Carolina Advanced Digital http://cadinc.com

Related Content