ebook img

CLI-Ref-Guide v3-2015-CAD PDF

560 Pages·2015·13.55 MB·English
Save to my drive
Quick download
Download
Most books are stored in the elastic cloud where traffic is expensive. For this reason, we have a limit on daily download.

Preview CLI-Ref-Guide v3-2015-CAD

HHHHH PPPPP NNNNN eeeee ttttt wwwww ooooo rrrrr kkkkk iiiii nnnnn TTToooTT ll eeooleaa llarreennraan rrmm nnmoo mmorreerooe rraa eeabb baaooobbuuuoott tuuHH HttPP HHP NN PPNee NNettwwteewttoowworrkkrookiirrnnikknggiignn,, ,vvgg vii,,ss ivviisttiiiss thhii httpp phh..cc.ppooc..ommccmoo//mmgg/goo//ogg//nn/oonee//ennttwwteewttoowworrkkrookiirrnnikknggiignngg ggggg aaaaa nnnnn ddddd TThhTeeh iiTTennhh ffinooeef rriiommnnrffmaaoottrraiimmootnniaao ttccniioooo cnnnnott nccaaootiinnanneeittnddaae iihhnndeeee hrrddeee hhriinneee iiirrnssee iiisssnnuu siibbssujj eebssccuujettbb cttjjteeoo tcc ccotthh ttcaaoohnn accgghhneeaag wwnnegg iiwtteehhi toowwhuuiiotttthhu nnootoo uunttttoii ccnnteeiooc.. ettTTii.cchh Teeeeh.. ooTTennhh olleeyyn oolwwynn aawllyyrrarr wwaarrnnaaattrrniirreeaatssinne ffttsooii eefrross HH rff PPooH rrppP HHrr pooPPrdd oppuudrrccoouttddssc tuuaasccnn ttaddssn ssaadeenn srrddevv riissccveeeeirrcssvve iiaasccrr eeaeessr ss eaaee rrstteee tss eett CCCCC iiiii sssss ffoofrrotthhrfft ooiihnnrr tt ittnhhhh tiieennh eeettxxhh eppeexrr peeeexxrsseppsss rrwwsee ssaawssrrarr wwaarrnnaaattrrnyyrraat ssynntt ttaasyyttt aeesstmmtteaameetteennemmttnssee taasnncc ttaccsscoo caammoccmppccooaapmmnnayyppniinnaayggnnin yyssgiiuunn sccgguhh css pphuurr ccpoohhrdd oppuudrrccoouttddssc tuuaasccnn ttaddssn ssaadeenn srrddevv riissccveeeeirrcssvve..ii sccNN.ee ooNsstt..ohh NNtiinnhooggittn hhhhgiinnee hrrggeee hhriinneee issrrneehh siioonnhuu ossllhhdduoo lbbduuee bll ddcce oobb cnneeoss nccttoorrsuutnnreessuddtterr aauudssee a dds aass ccccc ooooo ccoocnnossnccttooiistttnnuuitssttuiittnniitttggiuun ttaagiinnnn a ggaan ddaa addnndii ttaadiioodditddnnioiiaattnlliioo awwnnl aawaarrllarr wwaarrnnaaattrrnyyrraat.. yHHnn.tt PPHyy ..ssP HHhh saaPPhll llass nnhhlloo aanttlloll bbnntee oob ttlleii aabb lbbieeall eebllii aalffebboo fllrreeo tt reeff ootccerrhh cnnttheeiiccnccaahhicllnn aooiilccrr oaa eerll dd ooeiittrrdoo eeitrrddoiiaaiirttllioo aeerrlrr iieaarroorll rrreeossrr rrroosoorr rro oossr mm ooorrmiiss oossimmsiioosiinnissossssn iiccoosoo nncnnssott nccaaootiinnanneeittnddaae iihhnndeeee hrrddeee hhriinneee..irrnee.iinn.. CCCCC LLLLL TThhTiissh TTiiissshh iaaiisssnn aii ssHHn aa PPHnn ccP HHoo cppPPoyy pccrrooyiiggpprhhiyygttrrheeiiggtddehh wwdttee oowddrro kkwwr ttkoohh rrtaakkhtt a ttmmhht aamaattyy amm nnyoo aanttyyo bbnntee oob ttrre eebb rppeeerr poorreerddoppuudrrccooueeddcddeuu wwdccee iiwttddhhi toowwhuuiiotttthhu ttoothh uuteehtt wwetthh rrwiieettr ttwwieettnnrreii ttppntteeee prrnnemm pprmiieessrrssimmsiioosiinnisso ssooniiooff o nnHHf PPooH..ff P YYHH.oo PPYuuo.. YYmmuoo maauuyy amm nnyoo aanttyyo uunntss ooueetts tteuuhh ssteeeehss etteehhs eee ssee IIIII RRRRR mmmaattaeemmtrreiiaaaarttllisseea rrlttsiiooaa t ll ssodd ttee doolliie vv ddleeiveerre llttiirvvrr aaeetriirrnna ttiiinnrrnaagginii nnttgiioonn t ggaao nn ttayyoon ppaayeenn prryyess ppoorseennorr oonssoouu onnttuss ooiitddsuueeidtt ssooeiiffdd o eeyyfoo ooyuufforr yyu oooorrr uuoggrrraa goonnarriizzggnaaaaizttnnaiiooiitzznniaao ttwwniioo iiwttnnhhi toowwhuuiiotttthhu ttoothh uuteehtt wwetthh rrwiieettr ttwwieettnnrreii ttppntteeee prrnnemm pprmiieessrrssimmsiioosiinnisso ssooniiooff o nnHHf PPooH..ff P HH. PP .. eeeee fffff eeeee rrrrr eeeee nnnnn ccccc eeeee GGGGG uuuuu iiiii ddddd eeeee HHHPPP HHSS PPooS lloSSuuloottuiilltoouuinnottiissnoo sSSnn eeSss rreSSiireeeeisserriiseess HHHHHPPPPP NNN NNeeeeetttttwwwwwooooorrrrrkkkkkiiinniinnnggggg aaa aannnnnddddd CCC CCiiissiissscccccooooo HHPPH PPPHHrr PeePPrss ePPsssrrseessss CCCCCLLLLLIIIIIRRR RReeeeefffffeeeeerrrrreeeeennnnnccccceeeee GGG GGuuuuuiiiddiidddeeeee ©©© CC ©© ooCpp o yyCCprrooyiiggpprihhyygttrrh ii22ggt hh002tt110 2255100 5HH11 eeH55wwe HHllweeeelttwwett--tlltPPee-ttaaPttcc--akkPPcaaaakrrccaddkkr dDDaa rreeDddvve eeDDvlleeeoovvlppoeemmplloomeeppnnemmttn CCeet oonnCmmtto CCmppooaapmmnnayyppn,,aa yLLnn,.. yyPPL,,... PLLNN...PPooNtt..o NNFFtoo ooFrrtto RRFFr ooeeRrrsse aaRRslleeaeessl..e aa.ll ee.. TTThhTThiihhrrirddiidrr EEdd Edd EEdiiddttitiiiiooittoiinnoonnn IInnInIIccnnclluucclulldduudeeddessees CCss Coo CCommoommmwwwaawwarraareeerr 77ee 7 77 HHHHH PPPPP S S S S S ooooo lululululu Provided by your HP Networking Partner, http://cadinc.com ttttt HHPPH PPPHH rrPPPeer ssPPessrrsees||ss ww|ss www|| wwwww..wwwhh.ppwwhppp..hhrrpeepprsseppsssrr..eeccsooss.cssmmo..ccmoomm ioioioioio nnnnn CCoovvCeeorr vddeeeCCrssoo diivvggeeennsrr::i gddSSneettoo:ss eeSiiggrrtnneeo:: e BBSSriiettnnoo kkBeeeeirrnnneek DDBBeeeniinnss Dkkiiggeeennnns iDDgneessiiggnn sssss S S S S S eeeee rrrrr ieieieieie sssss HP Networking and Cisco CLI Reference Guide Provided by your HP Networking Partner, http://cadinc.com Certified HP Services and Products © Copyright 2015 Hewlett-Packard Development Company, L.P. The information contained herein is subject to change without notice. The only warranties for HP products and services are set forth in the express warranty statements accompanying such products and services. Nothing herein should be construed as constituting an additional warranty. HP shall not be liable for technical or editorial errors or omissions contained herein. This is an HP copyrighted work that may not be reproduced without the written permission of HP. You may not use these materials to deliver training to any person outside of your organization without the written permission of HP. Printed in the United States of America HP Networking and Cisco CLI Reference Guide Version 3 Provided by Carolina Advanced Digital http://cadinc.com | Certified HP Services and Products 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 3 Provided by Carolina Advanced Digital http://cadinc.com | Certified HP Services and Products 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 4 Provided by Carolina Advanced Digital http://cadinc.com | Certified HP Services and Products 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 5 Provided by Carolina Advanced Digital http://cadinc.com | Certified HP Services and Products 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 6 Provided by Carolina Advanced Digital http://cadinc.com | Certified HP Services and Products HP Networking and Cisco CLI Reference Guide Introduction HP Networking designed this CLI Reference Guide to help HP partners and customers who: • Manage multi-vendor networks that include HP and Cisco switches • Have experience deploying Cisco switches and are now deploying HP switches This CLI Reference Guide compares many of the common commands in three switch operating systems: HP ProVision, HP Comware version 5 and version 7, and Cisco IOS operating systems. In this guide, we refer to HP ProVision as ProVision, HP Comware version 5 as Comware5, HP Comware version 7 as Comware7, and Cisco IOS is referenced as Cisco. The HP ProVision operating system runs on HP 3500, 3500 yl, HP 5400 zl, HP 6200 yl, HP 6600, and HP 8200 zl switch platforms, where the image file starts with the letter “K”. In addition, the HP 3800 uses the same foundation ProVision operating system, but the image file starts with the letters “KA”. The HP 5400R zl2 also uses the same foundation ProVision operating system, but the image file starts with the letters “KB”. The HP Comware5 operating system runs on HP 12500, HP 10500, HP 7500, HP 5920, HP 5900, HP 5830, HP 5820, HP 5800, HP 5500 HI, HP 5500 EI, HP5500 SI, HP 4800G, HP 3610, HP 3600 EI, and HP 3600SI switch platforms, and the HP 8800, HP 6600, HP MSR50, HP MSR30, HP MSR20, HP MSR20-1x, and HP MSR900 router platforms. The HP Comware7 operating system runs on HP FF 12900, HP 12500, HP 10500, HP FF 7900, HP 5930, HP 5920, HP 5900, HP FF 5700, and HP 5130 switch platforms, the HP MSR2000 series router platforms, and the VSR100x series Virtual Services Router E-LTU. The commands included in this guide were tested on the following: • HP 3800-24G-PoE+-2SFP+ switch running ProVision KA.15.16.0005 • HP A5500-24G-PoE+ EI switch running Comware 5.20.99, Release 2221P07 • HP 5900AF-48G-4XG-2QSFP+ switch running Comware 7.1.045, Release 2416 • Cisco WS-C3750E-24TD switch running Cisco IOS Software C3750E Software (C3750E- UNIVERSALK9-M), 15.0(1)SE Additional HP and Cisco switches and/or routers were used to provide systems connectivity and operational support as necessary. Likewise, various computers and Voice over IP (VoIP) phones were used to help test functionality and provide output for commands such as show or display. 7 Provided by Carolina Advanced Digital http://cadinc.com | Certified HP Services and Products Comware 5 and Comware 7 Integration In addition to general updates from version 2 to version 3 of the HP Networking and Cisco CLI Reference Guide, Comware7 is now included. In order to preserve the 3-column format of the document for legability, Comware7 has been integrated with Comware5 into a single column. The following details the three options of this integration: 1. Where Comware5 & Comware7 have the same commands and same options within commands the Comware box color is dark blue and is depicted as Comware: ProVision Comware Cisco ProVision(config)# console [Comware]user-interface aux 0 Cisco(config)#line console 0 inactivity-timer ? 2. Where Comware5 & Comware7 have same commands, but different options within commands, the commands section box is dark blue and depicted as Comware, the command details section has Comware5 box in dark blue and the Comware7 box in green: ProVision Comware Cisco ProVision# show tech <Comware>display diagnostic- Cisco#show tech-support information Comware5 <Comware5>display diagnostic-information ? | Matching output <cr> <Comware5>display diagnostic-information Save or display diagnostic information (Y=save, N=display)? [Y/N]: Comware7 <Comware7>display diagnostic-information ? STRING [drive][path][file name] flash: Device name hardware Hardware information for diagnosis infrastructure Infrastructure information for diagnosis l2 L2 information for diagnosis l3 L3 information for diagnosis service Service information for diagnosis slot1#flash: Device name slot1#usba0: Device name usba0: Device name <cr> <Comware7>display diagnostic-information Save or display diagnostic information (Y=save, N=display)? [Y/N]: 8 Provided by Carolina Advanced Digital http://cadinc.com | Certified HP Services and Products 3. Where Comware5 & Comware7 have different commands and command options, Comware5 commands and command details section boxes are dark blue and Comware7 commands and command details section boxes are green: ProVision Comware5 Cisco ProVision(config)# lldp run [Comware5]lldp enable Cisco(config)#lldp run Comware7 [Comware7]lldp global enable Comware5 [Comware5]lldp ? compliance Enable compliance with another link layer discovery protocol enable Enable capability fast-count The fast-start times of transmitting frames hold-multiplier Hold multiplicator for TTL timer Timer of LLDP [Comware5]lldp enable ? <cr> [Comware5]lldp enable Comware7 [Comware7]lldp ? compliance Enable compliance with another link layer discovery protocol fast-count The fast-start times of transmitting frames global Specify global hold-multiplier Hold multiplicator for TTL max-credit Specify LLDP maximum transmit credit mode Specify LLDP bridge mode timer Timer of LLDP [Comware7]lldp global ? enable Enable capability [Comware7]lldp global enable ? <cr> [Comware7]lldp global enable 9 Provided by Carolina Advanced Digital http://cadinc.com | Certified HP Services and Products

Description:
HP Networking and Cisco CLI Reference Guide a) Definitions of Standard or Basic ACLs and Extended or Advanced ACLs . For interface IP addressing and interface-specific routing protocol configuration, you execute most.
See more

The list of books you might like

Most books are stored in the elastic cloud where traffic is expensive. For this reason, we have a limit on daily download.