lenovo network command reference for lenovo...
TRANSCRIPT
-
LenovoNetwork
CommandReferenceForLenovoCloudNetworkOperatingSystem10.5
-
Note:Beforeusingthisinformationandtheproductitsupports,readthegeneralinformationintheSafetyinformationandEnvironmentalNoticesandUserGuidedocumentsontheLenovoDocumentationCDandtheWarrantyInformationdocumentthatcomeswiththeproduct.
FirstEdition(October2017)
CopyrightLenovo2017PortionsCopyrightIBMCorporation2014
LIMITEDANDRESTRICTEDRIGHTSNOTICE:IfdataorsoftwareisdeliveredpursuantaGeneralServicesAdministrationGSAcontract,use,reproduction,ordisclosureissubjecttorestrictionssetforthinContractNo.GS35F05925.
LenovoandtheLenovologoaretrademarksofLenovointheUnitedStates,othercountries,orboth.
-
Copyright Lenovo 2017 : Contents 3
ContentsPreface . . . . . . . . . . . . . . . . . . . . . . . . . . . . 27WhoShouldUseThisGuide .......................28WhatYoullFindinThisGuide ......................29TypographicConventions ........................31
Chapter 1. Privileged EXEC Mode Commands . . . . . . . . . . . . 33enable .................................34disable ................................35clockset................................36configure...............................37cpaliasconfig .............................38cpfile .................................39cpftp .................................41cpobs .................................43cprunningconfig............................44cpscp.................................46cpscriptlog..............................48cpsftp.................................49cpstartupconfig ............................51cptechsupport.............................53cptftp .................................54cpusb1 ................................56editscript ...............................57maintmodeenable...........................58ping..................................59ping6.................................61python ................................63reload .................................64removeiparp.............................65removeipbgp .............................67removeipbgpdampening ........................69removeipbgpflapstatistics .......................70removeipospfprocess .........................71removeipprefixlist...........................72removeiproute ............................73removeipv6bgp............................74removeipv6prefixlist .........................75removeipv6route ...........................76removelogginglogfile..........................77restartbgp ...............................78ssh ..................................79ssh6..................................80stoprunningscript ...........................81telnet.................................82telnet6.................................83terminalterminaltype .........................84traceroute...............................85
-
4 Command Reference for CNOS 10.5
traceroute6 .............................. 86save ................................. 88
Chapter 2. CNOS Basics . . . . . . . . . . . . . . . . . . . . . 89ISCLICommandModes ......................... 90CommandLineInterfaceShortcuts .................... 91UserAccessLevels ........................... 93UsingUserEXECCommands ...................... 94display ................................ 95enable ................................ 96exit.................................. 97help ................................. 98loggingterminal............................ 99logout................................ 100ntpsyncretry ............................ 101quit ................................. 102removeaaalocaluserlockout..................... 103removeaccesslistcounters ...................... 104removearpaccesslistcounters ..................... 105removebgpipv4unicastpolicystatisticsredistribute........... 106removebgpipv6unicastpolicystatisticsredistribute........... 107removeceepfccounters ........................ 108removeclihistory .......................... 109removecoppstatistics......................... 110removecounters ........................... 111removeipaccesslistcounters ..................... 113removeipbgpstatistics ........................ 114removeipdhcpsnoopingcounters ................... 115removeipigmpsnooping ....................... 116removeipospfneighbors ....................... 117removeipospfpolicystatisticsredistribute............... 119removeipospfribcounters ...................... 120removeipospfstatistics ........................ 121removeipospftraffic ......................... 122removeipslpcounters........................ 123removeipv6adjacency ........................ 124removeipv6neighbor......................... 126removelacpcounters ......................... 128removelacpinternaleventhistory ................... 129removeline ............................. 130removelldpcounters ......................... 131removelldpinternaleventhistory ................... 132removelldpneighbors ........................ 133removemacaccesslistcounters.................... 134removemacaddresstable....................... 135removenpainternaleventhistory................... 137removeqosstatistics ......................... 138removeribipcstats .......................... 140removesnmphostconfig ....................... 141
-
Copyright Lenovo 2017 : Contents 5
removespanningtreecounters.....................142removespanningtreeinternaleventhistory ...............143removestatisticsmicroburst......................144removeuser.............................145removevlaginternaleventhistory ...................146removevlagstatistics .........................147removevlanaccesslistcounters....................148removevrrp .............................149terminallength ............................150terminalwidth ............................151terminalsessiontimeout........................152where................................153
Chapter 3. Debugging Commands . . . . . . . . . . . . . . . . . 155dbgaaa...............................156dbgalias...............................157dbgbfd...............................158dbgbgp ...............................159dbgcee ...............................161dbgdiag...............................162dbgdnsclient............................163dbghal ...............................164dbghsl...............................165dbgiparp ..............................166dbgipbgppackets ..........................167dbgipigmpsnooping .........................168dbgipospf..............................169dbgipospfdatabasetimerratelimit..................170dbgipospfevents ..........................171dbgipospfifsm ...........................173dbgipospflsa............................174dbgipospfnfsm...........................175dbgipospfnsm ...........................176dbgipospfpacket ..........................177dbgipospfpolicy...........................178dbgipospfredist ...........................179dbgipospfretransmission .......................180dbgipospfrib............................181dbgipospfroute ...........................182dbgipospfspftrigger.........................183dbgippacket.............................184dbgiprouting ............................186dbgipv6nd .............................187dbgipv6packet ...........................188dbgipv6routing...........................190dbglacp ...............................191dbglldp...............................193dbgloggingsyslogid .........................195dbgnpa ...............................196
-
6 Command Reference for CNOS 10.5
dbgnsm............................... 197dbgnsmhsl ............................. 198dbgnsmpacket ........................... 200dbgntp ............................... 201dbgpki ............................... 202dbgradius.............................. 203dbgrib ............................... 204dbgslp ............................... 205dbgsnmpserver ........................... 206dbgspanningtreeall ......................... 207dbgspanningtreebpdurx ...................... 208dbgspanningtreebpdutx ...................... 210dbgspanningtreecfg ......................... 212dbgspanningtreeerror........................ 213dbgspanningtreeevent........................ 214dbgspanningtreeprotocol ...................... 215dbgspanningtreetimer ........................ 216dbgspanningtreetopology...................... 217dbgspanningtreetrace ........................ 218dbgspanningtreewarning...................... 219dbgssh ............................... 220dbgsyslog .............................. 221dbgtacacs+............................. 222dbgtelemetry ............................ 223dbgtelnet .............................. 225dbgum ............................... 226dbgvlag............................... 227dbgvlan .............................. 228dbgvrrpengine ........................... 229nodbgall .............................. 230
Chapter 4. Configuration Mode Commands . . . . . . . . . . . . . 231configure .............................. 232aaaaccountingconsolegroup ..................... 233aaaaccountingconsolelocal ...................... 234aaaaccountingdefaultgroup ..................... 235aaaaccountingdefaultlocal...................... 236aaaauthenticationloginconsole .................... 237aaaauthenticationlogindefault .................... 238aaaauthenticationloginerrorenable.................. 239aaaauthenticationloginmschapv2enable ................ 240aaaauthorizationcommandsdefault .................. 241aaagroupserver ........................... 242aaalocalauthenticationattemptsmaxfail ................ 243aaauserdefaultrole......................... 244alias ................................ 245arpaccesslist............................ 248bannermotd ............................. 249bfdgtsm .............................. 250
-
Copyright Lenovo 2017 : Contents 7
bfdgtsmttl .............................251bfdinterval .............................252bfdmultihoppeerauth ........................253bfdmultihoppeerinterval .......................255bfdslowtimer ............................256ceeenable ..............................257ceeappproto ............................258ceeetsbandwidthpercentage .....................260ceeetsprioritygrouppgid .......................261ceepfcenable ............................262ceepfcpriority ............................263classmap ..............................265classmaptypeqos ..........................266classmaptypequeuing ........................267clockformat.............................268clocksummertime..........................269clocktimezone ............................271enablepassword...........................272end .................................273errdisablerecoverycausebpduguard..................274errdisablerecoveryinterval ......................275feature ...............................276gracefulrestartospfhelpermaxgraceperiod ..............278gracefulrestartospfhelpernever....................279hardwareecmphashoffset ......................280hardwareesn.............................281hardwaremtm ............................282hardwareprofileportmode ......................284hostname ..............................289installlicense.............................290interface ...............................291iparpinspectionfilter .........................293iparptimeout ............................294ipaspathaccesslist .........................295ipcommunitylistexpanded ......................296ipcommunityliststandard ......................297ipdhcprelay .............................299ipdhcpsnooping...........................300ipdhcpsnoopingbinding.......................301noipdhcpsnoopingbinding ......................303ipdhcpsnoopinginformationoption ..................304ipdhcpsnoopingvlan.........................305ipdomainlookup...........................306ipdomainlist............................307ipdomainname ...........................308ipextcommunitylistexpanded .....................309ipextcommunityliststandard .....................310ipforwarding ............................311iphost................................312
-
8 Command Reference for CNOS 10.5
ipigmpsnooping........................... 313iploadsharing ............................ 315ipnameserver ............................ 316ipprefixlist ............................. 317ipprefixlistsequencenumber ..................... 319iproute ............................... 320iproutestaticbfd........................... 322ipslpenable............................. 323ipv6dhcprelay ........................... 324ipv6forwarding ........................... 325ipv6prefixlist ............................ 326ipv6prefixlistsequencenumber.................... 328ipv6route .............................. 329ipv6routestaticbfd.......................... 330lacpsystempriority ......................... 332line ................................. 333lldpholdtimemultiplier........................ 334lldpreinit .............................. 335lldptimer .............................. 336lldptransmitdelay .......................... 337lldptrapinterval........................... 338loggingconsole ........................... 339logginglevel ............................. 340logginglibrary............................ 343logginglogfile ............................ 346loggingmonitor ........................... 348loggingratelimit ........................... 349loggingserver............................ 353loggingthrottle ........................... 355loggingtimestamp.......................... 356maclearndisable........................... 357macaccesslist ............................ 358macaddresstableagingtime ..................... 359macaddresstablestatic........................ 360maintpassword ........................... 361maximumpaths........................... 362microburstdetectioninterval ..................... 363monitorerspanoriginipaddress.................... 364monitorsession ........................... 365monitorsessionshut ......................... 366monitorsessiontype ......................... 367noonieinstall............................ 368ntpauthenticate ........................... 369ntpauthenticationkey ........................ 370ntpenable .............................. 371ntppeer ............................... 372ntpserver .............................. 374ntptrustedkey............................ 376ntpusevrf ............................. 377
-
Copyright Lenovo 2017 : Contents 9
passwordhistorychecking.......................378pki .................................379policymaptype...........................380portaggregationloadbalanceethernetdestinationip ...........381portaggregationloadbalanceethernetdestinationip ...........382portaggregationloadbalanceethernetdestinationmac ..........383portaggregationloadbalanceethernetdestinationport ..........384portaggregationloadbalanceethernetsourcedestip ...........385portaggregationloadbalanceethernetsourcedestmac..........386portaggregationloadbalanceethernetsourcedestport..........387portaggregationloadbalanceethernetsourceinterface ..........388portaggregationloadbalanceethernetsourceip .............390portaggregationloadbalanceethernetsourcemac ............391portaggregationloadbalanceethernetsourceport ............392qosstatistics .............................393radiusserverhost...........................394radiusserverkey...........................396radiusserverretransmit........................397radiusservertimeout .........................398removecores .............................399removesshhosts ...........................400resequence ..............................401restApipki..............................402scriptjob ..............................403noscript ...............................404noscriptlog .............................405snmpservercommunity ........................406snmpservercontact..........................407snmpserverenable ..........................408snmpserverhost ...........................409snmpserverlocation .........................410snmpservertcpsession ........................411snmpservertrapvrf .........................412snmpserveruser ...........................413snmpserverview...........................415spanningtreemode ..........................416spanningtreepathcost ........................417spanningtreemstpriority .......................418spanningtreemstforwardtime ....................419spanningtreemsthellotime......................420spanningtreemstmaxage.......................421spanningtreemstmaxhops ......................422spanningtreevlanforwardtime....................423spanningtreevlanhellotime .....................424spanningtreevlanmaxage ......................425spanningtreevlanpriority.......................426sshkey...............................427sshloginattempts ..........................428sshserver ..............................429
-
10 Command Reference for CNOS 10.5
startupimage ............................ 430startupzerotouchforce ........................ 431systemcores............................. 432systemserviceledoperationalenable .................. 433tacacsserverhost........................... 434tacacsserverkey ........................... 436telemetrycontrollerip ........................ 437telemetrycontrollerprotocolhttps ................... 438telemetrycontrollerusername..................... 439telemetryheartbeat.......................... 440telnet ................................ 441username.............................. 442vlagautorecovery.......................... 444vlagconfigconsistencydisable ..................... 445vlagconfigconsistencystrict...................... 446vlagenable ............................. 447vlaghlthchkkeepaliveattempts .................... 448vlaghlthchkkeepaliveinterval ..................... 449vlaghlthchkpeerip ......................... 450vlaghlthchkretryinterval ....................... 451vlaginstance............................. 452vlagisl ............................... 453vlagmacaddresstablerefresh..................... 454vlagpeergateway .......................... 455vlagpriority ............................. 456vlagstartupdelay.......................... 457vlagtierid ............................. 458vlagvrrpactive ........................... 459vlanaccessmap ........................... 460vlandot1qtagnative......................... 461vlanfilter .............................. 462vrfcontext .............................. 463
Chapter 5. Interface Mode Commands . . . . . . . . . . . . . . . 465interface............................... 466aggregationgroup.......................... 468autopolicyenable .......................... 469bfdauthenticationkeyedmd5..................... 470bfdauthenticationkeyedsha1 ..................... 471bfdauthenticationmeticulouskeyedmd5................ 472bfdauthenticationmeticulouskeyedsha1................ 474bfdauthenticationsimple....................... 476bfdecho............................... 477bfdinterval ............................. 478bfdneighbor ............................. 479bridgeportaccess .......................... 481bridgeportmode........................... 482bridgeportmodedot1qtunnel..................... 483bridgeporttrunkallowedvlan..................... 484
-
Copyright Lenovo 2017 : Contents 11
bridgeporttrunkallowedvlanadd...................485bridgeporttrunkallowedvlanall ...................486bridgeporttrunkallowedvlanexcept ..................487bridgeporttrunkallowedvlannone..................488bridgeporttrunkallowedvlanremove .................489ceedcbxenable ............................490ceedcbxadvertise ..........................491ceepfcenable ............................492description..............................493duplex ...............................494fec.................................495flowcontrol .............................496ipaccessgroup ............................497ipaddress ..............................498ipaddressdhcp ...........................499ipdhcpclientclassid .........................500ipdhcpclientrequest .........................501ipdhcprelay .............................502ipdhcpsnoopingtrust ........................503ipospf ...............................504ipospfauthentication .........................505ipospfauthenticationkey .......................506ipospfbfd ..............................507ipospfcost .............................508ipospfdatabasefilter .........................509ipospfdeadinterval.........................510ipospfhellointerval.........................511ipospfmessagedigestkey.......................512ipospfmtu .............................513ipospfmtuignore ..........................514ipospfnetwork............................515ipospfpassiveinterface........................516ipospfpriority ............................517ipospfretransmitinterval .......................518ipospfshutdown ...........................519ipospftransmitdelay .........................520ipport................................521ipportunreachable..........................522ipredirects..............................523iprouterospf ............................524ipunreachables............................525ipv6address .............................526ipv6addressdhcp ..........................527ipv6dhcprelay ............................528ipv6linklocal ............................529ipv6nddadattempts.........................530ipv6ndhoplimit ...........................531ipv6ndmanagedconfigflag ......................532ipv6ndmtu.............................533
-
12 Command Reference for CNOS 10.5
ipv6ndotherconfigflag....................... 534ipv6ndprefix ............................ 535ipv6ndrainterval .......................... 537ipv6ndralifetime .......................... 538ipv6ndreachabletime ........................ 539ipv6ndretranstimer ......................... 540ipv6ndsuppressra.......................... 541ipv6neighbor ............................ 542lacpminlinks............................ 543lacpportpriority ........................... 544lacpsuspendindividual ........................ 545lacptimeout ............................. 546lldpreceive ............................. 547lldptlvselect ............................ 548lldptransmit ............................. 550lldptrapnotification ......................... 551loadinterval ............................. 552macportaccessgroup ........................ 553maclearndisable........................... 554microburstdetectionenable ...................... 555mtu................................. 556service............................... 557servicepolicycoppsystempolicy................... 558servicepolicyinput.......................... 559servicepolicyoutput ......................... 560servicepolicytypeqos........................ 561servicepolicytypequeuing ...................... 562shutdown .............................. 563snmptraplinkstatus ......................... 564spanningtreebpdufilter........................ 565spanningtreebpduguard ....................... 566spanningtreecost.......................... 567spanningtreedisable ......................... 568spanningtreeenable ......................... 569spanningtreeguardloop ....................... 570spanningtreeguardroot....................... 571spanningtreelinktype ........................ 572spanningtreemst .......................... 573spanningtreeport .......................... 574spanningtreeportpriority ...................... 575spanningtreevlancost ................. 576spanningtreevlanportpriority............. 577speed................................ 578stormcontrol ............................ 580vlandot1qtagnative......................... 581vrrp ................................ 582
Chapter 6. Line Mode Commands . . . . . . . . . . . . . . . . . 583line ................................. 584
-
Copyright Lenovo 2017 : Contents 13
exectimeout .............................585history ...............................586privilege...............................587
Chapter 7. Class Map Mode Commands. . . . . . . . . . . . . . . 589classmaptypeqos ..........................590classmaptypecontrolplane......................591match................................592classmaptypequeuing ........................594match................................595
Chapter 8. Route Map Mode Commands . . . . . . . . . . . . . . 597routemap ..............................598matchaspath............................599matchcommunity ..........................600matchextcommunity .........................601matchinterface ............................602matchip ...............................603matchipv6..............................604matchmetric .............................605matchorigin .............................606matchroutetype ...........................607matchtag ..............................608applyaggregator ...........................609applyaspath ............................610applyatomicaggregate........................611applycommlist...........................612applycommunity ...........................613applydampening ...........................614applyextcommunity.........................615applyipnexthop ...........................616applyipv6nexthop..........................617applylocalpreference .........................618applymetric .............................619applymetrictype ...........................620applyorigin .............................621applyoriginatorid..........................622applytag ..............................623applyweight .............................624
Chapter 9. BGP Configuration Mode Commands . . . . . . . . . . . 625routingprotocolbgp .........................626bestpath ...............................627bgp.................................629clusterid ..............................630confederation ............................631enforcefirstas ............................632fastexternalfailover.........................633gracefulrestart............................634gracefulrestarthelper.........................635
-
14 Command Reference for CNOS 10.5
logneighborchanges......................... 636maxaslimit ............................. 637neighbor .............................. 638routerid .............................. 639synchronization ........................... 640timers................................ 641vrf ................................. 642
Chapter 10. Address Family Mode Commands. . . . . . . . . . . . 643addressfamily............................ 644aggregateaddress.......................... 645clienttoclientreflection........................ 646dampening............................. 647distance ............................... 648maximumpaths........................... 649network ............................... 650networksynchronization....................... 651nexthop............................... 652redistribute ............................. 653
Chapter 11. Neighbor Mode Commands . . . . . . . . . . . . . . 655neighbor .............................. 656addressfamily............................ 657advertisementinterval........................ 658bfd ................................. 659connectionretrytime......................... 660description ............................. 661disallowinfiniteholdtime ....................... 662dontcapabilitynegotiate ....................... 663dynamiccapability .......................... 664ebgpmultihop ............................ 665localas............................... 666maximumpeers ........................... 667password.............................. 668remoteprivateAS .......................... 669shutdown .............................. 670timers................................ 671transport.............................. 672ttlsecurity.............................. 673updatesource............................ 674weight............................... 675
Chapter 12. Neighbor Address Family Commands . . . . . . . . . . 677addressfamily............................ 678allowasin.............................. 679defaultoriginate ........................... 680filterlist ............................... 681maximumprefix ........................... 682nexthopself............................. 683prefixlist .............................. 684
-
Copyright Lenovo 2017 : Contents 15
routemap ..............................685routereflectorclient .........................686sendcommunity ...........................687softreconfiguration ..........................688unsuppressmap ...........................689
Chapter 13. OSPF Configuration Mode Commands . . . . . . . . . . 691routingprotocolospf.........................692areaauthentication......................693areadefaultcost .......................694areafilterlist ........................695areanssa ..........................696arearange ..........................698areastub ..........................699areavirtuallink .......................700autocostreferencebandwidth .....................701bfd.................................702defaultinformationoriginate......................703defaultmetric ............................704distance ...............................705enabledbsummaryop ........................706logadjacencychanges.........................707maxconcurrentdd ..........................708overflow...............................709redistribute .............................710rfc1583compatibility .........................711routerid...............................712shutdown..............................713summaryaddress...........................714timerslsaarrival ...........................715timersthrottlelsa ...........................716timersthrottlespf ...........................717
Chapter 14. Virtual Link Mode Commands. . . . . . . . . . . . . . 719areavirtuallink .......................720authentication ............................721authenticationkey ..........................722deadinterval.............................723hellointerval.............................724messagedigestkey ..........................725retransmitinterval ..........................726transmitdelay............................727
Chapter 15. TACACS+ Server Mode Commands . . . . . . . . . . . 729aaagroupservertacacs+ ........................730server................................731usevrf ...............................732
Chapter 16. RADIUS Server Mode Commands . . . . . . . . . . . . 733aaagroupserverradius........................734
-
16 Command Reference for CNOS 10.5
server ................................ 735sourceinterface ........................... 736usevrf............................... 737
Chapter 17. SPAN Session Mode Commands . . . . . . . . . . . . 739monitorsession ........................... 740description ............................. 741destination ............................. 742shut ................................ 743source ............................... 744
Chapter 18. Control Plane Mode Commands . . . . . . . . . . . . 745controlplane ............................ 746servicepolicy ............................ 747
Chapter 19. Key Chain Mode Commands . . . . . . . . . . . . . . 749keychain .............................. 750key................................. 751acceptlifetime ............................ 752keystring .............................. 754sendlifetime............................. 755
Chapter 20. IP ACL Mode Commands . . . . . . . . . . . . . . . 757ipaccesslist ............................. 758deny ................................ 759denyicmp .............................. 762denytcp............................... 767denyudp .............................. 770permit ............................... 773permiticmp ............................. 776permittcp.............................. 781permitudp ............................. 784statisticsperentry .......................... 787
Chapter 21. ARP ACL Mode Commands . . . . . . . . . . . . . . 789arpaccesslist............................ 790deny ................................ 791permit ............................... 793statisticsperentry .......................... 795
Chapter 22. MAC ACL Mode Commands . . . . . . . . . . . . . . 797macaccesslist ............................ 798deny ................................ 799permit ............................... 802statistics ............................... 805
Chapter 23. MST Mode Commands . . . . . . . . . . . . . . . . 807spanningtreemstconfiguration .................... 808cancel ................................ 809exits ................................ 810
-
Copyright Lenovo 2017 : Contents 17
instance ...............................811name ................................812revision ...............................813
Chapter 24. PKI Mode Commands . . . . . . . . . . . . . . . . . 815pki .................................816caimport..............................817cadelete ...............................818csrgenerate .............................819csrexport ..............................820csrimport ..............................821hostcertgenerate ...........................822hostcertcertificateimport .......................823hostcertprivatekeyimport......................824hostcertdelete............................825
Chapter 25. Policy Map Mode Commands . . . . . . . . . . . . . . 827policymap .............................828class ................................829apply ................................831
Chapter 26. VLAN Mode Commands . . . . . . . . . . . . . . . . 833vlan.................................834flood ................................835ipigmpsnooping ...........................836ipigmpsnoopingfastleave ......................837ipigmpsnoopinglastmemberqueryinterval ..............838ipigmpsnoopingmrouterinterface ...................839ipigmpsnoopingquerier .......................840ipigmpsnoopingqueriertimeout ...................841ipigmpsnoopingqueryinterval ....................842ipigmpsnoopingquerymaxresponsetime...............843ipigmpsnoopingreportsuppression ..................844ipigmpsnoopingrobustnessvariable..................845ipigmpsnoopingstartupquerycount .................846ipigmpsnoopingstartupqueryinterval.................847ipigmpsnoopingstaticgroup .....................848ipigmpsnoopingversion .......................849name ................................850state ................................851
Chapter 27. VRRP Mode Commands . . . . . . . . . . . . . . . . 853vrrp.................................854acceptmode .............................855address ...............................856advertisementinterval ........................857preempt...............................858priority ...............................859shutdown..............................860switchbackdelay ..........................861
-
18 Command Reference for CNOS 10.5
trackinterface ............................ 862trackinterfaceethernet ........................ 863trackinterfacevlan .......................... 864v2compatible............................ 865
Chapter 28. VTEP Mode Commands . . . . . . . . . . . . . . . . 867hscmodevtep ............................ 868hscvtep ............................... 869devicename ............................. 870hamodevlag ............................ 871controllerip ............................. 872controllerport ............................ 873controllerprovidernsx ........................ 874controllervrf............................. 875tunnelip .............................. 876vtepip............................... 877vtepusername............................ 878vtepvrf ............................... 879vtepvxlanportsethernet ....................... 880vtepvxlanportsethernetnone ..................... 881vtepvxlanportsportaggregation ................... 882vtepvxlanportsethernetnone ..................... 883vtepvxlanportsvlaginstance ..................... 884vtepvxlanportsvlaginstancenone................... 886
Chapter 29. VDM Commands . . . . . . . . . . . . . . . . . . . 887vdmnutanix ............................. 888addinterface............................. 889ipaddress.............................. 890refreshvmsurl ........................... 891refreshvneturl ........................... 892removeinterface ........................... 893subscribe .............................. 894topodiscoveryurl .......................... 895topostartupdelay .......................... 896unsubscribe............................. 897username.............................. 898
Chapter 30. EVC Service Mode Commands . . . . . . . . . . . . . 899service............................... 900exitserviceinstancemode....................... 901serviceinstance ........................... 902
Chapter 31. Display Commands. . . . . . . . . . . . . . . . . . 903displayaaaaccounting ........................ 904displayaaaauthentication ....................... 905displayaaaauthorization ....................... 906displayaaagroups .......................... 907displayaaauserdefaultrole...................... 908displayaccesslists.......................... 909
-
Copyright Lenovo 2017 : Contents 19
displayalias.............................910displayaliasconfig ..........................911displayarpaccesslists ........................912displaybannermotd.........................913displaybfd..............................914displaybfdneighbors .........................915displaybfdneighborsapplication ....................916displaybfdneighborsdestip......................917displaybfdneighborsinterface.....................918displaybfdneighborssrcip ......................919displaybfdneighborsvrf.......................920displaybgp.............................921displaybgpcommunity ........................922displaybgpcommunityvrf ......................924displaybgpcommunitylist......................925displaybgpdampening ........................926displaybgpfilterlist.........................927displaybgpinconsistentas ......................928displaybgpneighbors .........................929displaybgpneighborsflapstatistics...................930displaybgpneighborsroutes ......................931displaybgpipneighborsroutes ....................932displaybgpneighborsvrf .......................933displaybgpnexthoptracking .....................934displaybgpnexthoptreedetails ....................935displaybgppaths ...........................936displaybgppolicy ..........................937displaybgpprefixlist.........................938displaybgpprocess ..........................939displaybgpquoteregexp .......................940displaybgpregexp..........................941displaybgproutemap ........................942displaybgpsessions .........................943displaybgpstatistics.........................944displaybgpvrf............................945displayboot.............................946displaybridgeportinterfacesbrief ...................948displaycee..............................949displayceeappproto .........................953displayceeets ............................954displayceepfc ............................956displayceepfccounters ........................958displayclassmap...........................959displayclassmaptype ........................960displaycli ..............................961displayclock .............................963displaycores .............................964displaycurrent............................965displaydbg.............................966
-
20 Command Reference for CNOS 10.5
displaydbgos ............................ 969displaydot1qtunnel ......................... 971displayenv ............................. 972displayerrdisablerecovery ...................... 974displayhardwareinternal ....................... 975displayhardwareinternalbuffer .................... 976displayhardwareinternalcpumac................... 977displayhostname........................... 978displayhosts............................. 979displayinterface........................... 980displayhscovsdbconnection ..................... 982displayhscrestcconnection...................... 983displayhscvtep ........................... 984displayhscvtepmacaddress ..................... 985displayhscvteptunnels ........................ 986displayhscvtepvirtualnetwork .................... 987displayhscvtepvirtualport...................... 988displayinterfaceethernet ....................... 989displayinterfaceloopback ....................... 991displayinterfacemgmt ........................ 993displayinterfaceportaggregation................... 995displayinterfacevlan ......................... 997displayinterfacecounters ....................... 999displayinterfacestatus ........................ 1001displayinterfacetrunk........................ 1003displayinventory........................... 1004displayipaccesslists ......................... 1005displayiparp ............................ 1006displayiparpinspection ....................... 1008displayiparpstatistics ........................ 1009displayiparpsummary ........................ 1011displayipaspathaccesslist ...................... 1013displayipbgp............................ 1014displayipbgpattributeinfo ...................... 1016displayipbgpcidronly ........................ 1017displayipbgpcommunity ....................... 1018displayipbgpcommunityvrf ..................... 1019displayipbgpcommunityinfo..................... 1020displayipbgpcommunitylist ..................... 1021displayipbgpcommunitylistvrf ................... 1022displayipbgpdampening ....................... 1023displayipbgpextcommunitylist .................... 1024displayipbgpfilterlist ........................ 1025displayipbgpinconsistentas ..................... 1026displayipbgpneighbors ....................... 1027displayipbgpneighborsroutes.................... 1030displayipbgpneighborsvrf...................... 1032displayipbgppaths ......................... 1033displayipbgpprefixlist ....................... 1034
-
Copyright Lenovo 2017 : Contents 21
displayipbgpquoteregexp......................1035displayipbgpreceivedpaths .....................1036displayipbgpregexp .........................1037displayipbgproutemap .......................1038displayipbgpscan ..........................1039displayipbgpstatistic.........................1040displayipbgpsummary ........................1041displayipbgpvrf ...........................1043displayipcommunitylist .......................1044displayipdhcprelay .........................1045displayipdhcpsnooping.......................1047displayipextcommunitylist......................1048displayipforwarding.........................1049displayipigmpsnooping .......................1050displayipigmpsnoopingecp .....................1052displayipigmpsnoopinggroups....................1053displayipigmpsnoopingmrouter...................1055displayipigmpsnoopingquerier ....................1056displayipigmpsnoopingstatistics ...................1057displayipinterface..........................1059displayipinternal ..........................1061displayiploadsharing........................1063displayipospf ............................1064displayipospfborderrouters .....................1065displayipospfdatabase........................1066displayipospfdatabase .................1067displayipospfdatabaseadvrouter...................1068displayipospfdatabasearea ......................1069displayipospfdatabaseasbrsummary .................1070displayipospfdatabasedatabasesummary ...............1071displayipospfdatabaseexternal....................1072displayipospfdatabasenetwork ....................1073displayipospfdatabasenssaexternal ..................1074displayipospfdatabaseopaquearea ..................1075displayipospfdatabaseopaqueas...................1076displayipospfdatabaseopaquelink ..................1077displayipospfdatabaserouter .....................1078displayipospfdatabaseselforiginated .................1079displayipospfdatabasesummary ...................1080displayipospfinterface ........................1081displayipospfmultiareaadjacencies..................1083displayipospfneighbors.......................1084displayipospfpolicystatisticsredistribute................1086displayipospfretransmissionlist....................1087displayipospfribcounters ......................1088displayipospfroute .........................1089displayipospfstatistics ........................1091displayipospfsummaryaddress ....................1093displayipospftraffic .........................1094
-
22 Command Reference for CNOS 10.5
displayipospfvirtuallinks ...................... 1096displayipprefixlist ......................... 1097displayipprotocols .......................... 1099displayiproute ........................... 1100displayiproutedatabase ....................... 1102displayiprouteinterface....................... 1104displayiproutesummary ....................... 1106displayiprouteridvrfall ....................... 1107displayipstaticroute ......................... 1108displayipslpinformation ....................... 1109displayipslpuseragents....................... 1110displayipslpcounters ........................ 1111displayiptraffic ........................... 1112displayipvrf ............................ 1113displayipv6adjacency........................ 1114displayipv6adjacencysummary.................... 1116displayipv6bgp ........................... 1118displayipv6bgpdampening...................... 1120displayipv6bgpneighbors...................... 1121displayipv6bgpreceivedpaths .................... 1122displayipv6bgpsummary ...................... 1123displayipv6bgpunicastneighbors ................... 1124displayipv6bgpunicastneighborsroutes ................ 1127displayipv6dhcprelay ........................ 1128displayipv6forwarding........................ 1130displayipv6interface ......................... 1131displayipv6ndinterface ....................... 1132displayipv6neighbor ......................... 1134displayipv6neighborsummary .................... 1136displayipv6prefixlist ........................ 1138displayipv6route.......................... 1139displayipv6routedatabase ...................... 1141displayipv6routeinterface ...................... 1143displayipv6routesummary...................... 1145displayipv6staticroute ........................ 1146displayipv6traffic.......................... 1147displaylacpcounters ......................... 1148displaylacpinterfaceethernet..................... 1149displaylacpinternaleventhistory ................... 1151displaylacpinternalinfo ....................... 1153displaylacpminlinks......................... 1155displaylacpneighbor......................... 1156displaylacpnsminternalinfo ..................... 1157displaylacpportaggregation..................... 1158displaylacpsystemidentifier..................... 1159displaylicense ............................ 1160displaylldpinterface ......................... 1161displaylldpinternaleventhistory ................... 1162displaylldpinternalinfo ....................... 1164
-
Copyright Lenovo 2017 : Contents 23
displaylldpneighbors.........................1166displaylldptimers ..........................1167displaylldptlvselect.........................1168displaylldptraffic ..........................1169displayloggingconsole........................1170displaylogginginfo ..........................1171displaylogginglast ..........................1172displaylogginglevel.........................1173displaylogginglibrary ........................1176displaylogginglogfile.........................1179displayloggingmnemonics......................1182displayloggingmonitor........................1185displayloggingratelimit.......................1186displayloggingserver .........................1187displayloggingthrottle ........................1188displayloggingtimestamp .......................1189displaymacaccesslists ........................1190displaymacaddresstable.......................1191displaymacaddresstableagingtime ..................1193displaymacaddresstablecount....................1194displaymacaddresstablelearning ...................1196displaymacaddresstablemulticast ...................1197displaymonitor ...........................1198displaynsmclient ..........................1199displaynpainternaleventhistory ...................1200displaynpainternalvlan .......................1202displaynpainternalvmwithdownlink .................1204displaynpainternalvnic .......................1205displayntpauthenticationkeys.....................1206displayntpauthenticationstatus ....................1207displayntppeerstatus ........................1208displayntppeers ...........................1209displayntpstatistics .........................1210displayntptrustedkeys ........................1211displaynwvvxlandatapath ......................1212displaynwvvxlaninformation.....................1213displaynwvvxlanmacaddress ....................1214displaynwvvxlantunnel .......................1215displaynwvvxlanvirtualnetwork...................1216displaynwvvxlanvirtualport .....................1217displaynwvvxlanvirtualportethernet.................1218displaynwvvxlanvirtualportinterfaceportaggregation .........1219displaypending...........................1220displaypki..............................1221displaypkica ............................1222displaypkicsr............................1223displaypkihostcertificate.......................1224displaypolicymap ..........................1226displaypolicymapinterface ......................1227
-
24 Command Reference for CNOS 10.5
displaypolicymaptype........................ 1229displayportaggregation ....................... 1230displayportaggregationloadbalance ................. 1232displayportaggregationtraffic .................... 1234displayprivilege ........................... 1235displayprocnames .......................... 1236displayprocess............................ 1237displayqueuinginterfaceethernet ................... 1240displayrestApiserver......................... 1241displayrib .............................. 1242displayrole ............................. 1243displayroutemap .......................... 1244displayrouterid ........................... 1245displayrouting............................ 1246displayroutinghash ......................... 1249displayrunningconfig ........................ 1250displayrunningconfiginterface .................... 1255displayrunningconfigip....................... 1257displayrunningconfigipv6 ...................... 1259displayrunningconfigroutingprotocol ................. 1260displayrunningconfigswitch..................... 1262displayscript ............................ 1263displayscriptjob ........................... 1264displayscriptlog ........................... 1265displaysnmp ............................ 1266displayspanningtree ......................... 1268displayspanningtreeactive ...................... 1270displayspanningtreebridge...................... 1272displayspanningtreebrief ...................... 1274displayspanningtreedetail ...................... 1276displayspanningtreeecp ....................... 1278displayspanningtreeinterface ..................... 1279displayspanningtreeinternaleventhistory ............... 1280displayspanningtreeinternalinfotree ................. 1282displayspanningtreemst ....................... 1284displayspanningtreemstconfiguration................. 1286displayspanningtreevlan....................... 1287displayssh ............................. 1290displaystartupconfig ......................... 1292displaystatisticsmicroburst ...................... 1293displayswitchname.......................... 1294displaysysinfo ........................... 1295displaysystem............................ 1296displaytacacsserver ......................... 1298displaytechsupport ......................... 1299displaytelemetrybstfeature ...................... 1303displaytelemetrybsttracking ..................... 1304displaytelemetryinformation ..................... 1305displaytelemetryswitchproperties ................... 1306
-
Copyright Lenovo 2017 : Contents 25
displaytelnetserver..........................1307displayterminal...........................1308displayuseraccount .........................1309displayusers .............................1310displayvdminformation .......................1311displayversion ............................1312displayvirtualmachineinformation ..................1313displayvlagconfigconsistency .....................1315displayvlagconfiguration .......................1317displayvlagecp...........................1318displayvlaginformation........................1319displayvlaginstance .........................1320displayvlaginternaleventhistory...................1321displayvlaginternalglobalinformation .................1322displayvlaginternalinstance......................1323displayvlaginternalislinformation ...................1324displayvlaginternalsyncdb ......................1326displayvlaginternalvlandb......................1328displayvlagstatistics .........................1329displayvlan.............................1330displayvlanaccesslist ........................1332displayvlandot1qtagnative ......................1333displayvlanfilter ...........................1334displayvnetworks..........................1335displayvrrp.............................1336displayvrrpecp...........................1338displayvrrpvlag ...........................1339displayvrrpvr ............................1341displayvrrpstatistics.........................1342displayvrrpsummary.........................1344displayzerotouch...........................1346
Appendix A. Getting help and technical assistance . . . . . . . . . 1347
Appendix B. Notices. . . . . . . . . . . . . . . . . . . . . . 1349Trademarks .............................1351ImportantNotes ...........................1352RecyclingInformation .........................1353ParticulateContamination .......................1354TelecommunicationRegulatoryStatement ................1355ElectronicEmissionNotices ......................1356
-
26 Command Reference for CNOS 10.5
-
Copyright Lenovo 2017 : Preface 27
PrefaceThisCommandReferencedescribesthecommandsincludedintheLenovoCloudNetworkOperatingSystem10.5firmwareandhowtousethem.ThisdocumentcoversthefollowingLenovoRackSwitches:
RackSwitchG8272
RackSwitchG8296
RackSwitchG8332
ThinkSystemNE1032RackSwitch
ThinkSystemNE1032TRackSwitch
ThinkSystemNE1072TRackSwitch
ThinkSystemNE10032RackSwitch
ThinkSystemNE2572RackSwitch
FordocumentationonhowtoconfigureandusetheLenovoCloudNetworkOperatingSystem10.5firmware,seetheLenovoNetworkApplicationGuideforLenovoCloudNetworkOperatingSystem10.5.
FordocumentationontheLenovoAPIs,seetheRESTAPIProgrammingGuideandthePythonProgrammingGuide.
Fordocumentationoninstallingtheswitchesphysically,seetheLenovoInstallationGuideforthecorrespondingswitch:
LenovoRackSwitchG8272InstallationGuide
LenovoRackSwitchG8296InstallationGuide
LenovoRackSwitchG8332InstallationGuide
LenovoThinkSystemNE1032RackSwitchInstallationGuide
LenovoThinkSystemNE1032TRackSwitchInstallationGuide
LenovoThinkSystemNE1072TRackSwitchInstallationGuide
LenovoThinkSystemNE10032RackSwitchInstallationGuide
LenovoThinkSystemNE2572RackSwitchInstallationGuide
-
28 Command Reference for CNOS 10.5
Who Should Use This GuideThisguideisintendedfornetworkinstallersandsystemadministratorsengagedinconfiguringandmaintaininganetwork.TheadministratorshouldbefamiliarwithEthernetconcepts,IPaddressing,SpanningTreeProtocol,andSNMPconfigurationparameters.
-
Copyright Lenovo 2017 : Preface 29
What Youll Find in This GuideThisguidewillhelpyouplan,implement,andadministerCloudNOSsoftware.Wherepossible,eachsectionprovidesfeatureoverviews,usageExample,andconfigurationinstructions.Thefollowinginformationiscovered:
Chapter 2,CNOSBasics,explainshowtogetaroundinCNOSanddescribesthecommandsyoucanenterfromUserEXECMode.
Chapter 1,PrivilegedEXECModeCommands,describesPrivilegedEXECModeandthecommandsavailableinit.
Chapter 3,DebuggingCommands,describesallavailabledebuggingcommands.
Chapter 4,ConfigurationModeCommands,describescommandsavailableinConfigurationMode.
Chapter 5,InterfaceModeCommands,describescommandsavailableinInterfaceMode.
Chapter 6,LineModeCommands,describescommandsavailableinLineConfigurationMode
Chapter 7,ClassMapModeCommands,describescommandsavailableinClassMapMode
Chapter 8,RouteMapModeCommands,describescommandsavailableinRouteMapMode.
Chapter 9,BGPConfigurationModeCommands,describescommandsavailableinBGPConfigurationMode.
Chapter 10,AddressFamilyModeCommands,describesthecommandsforenteringandusingBGPAddressFamilyMode.
Chapter 11,NeighborModeCommands,describesthecommandsforenteringandusingBGPNeighborMode.
Chapter 12,NeighborAddressFamilyCommands,describesthecommandsforenteringandusingBGPNeighborAddressFamilyMode.
Chapter 13,OSPFConfigurationModeCommands,describescommandsavailableinOSPFConfigurationMode.
Chapter 14,VirtualLinkModeCommands,describesthecommandsforenteringandusingOSPFVirtualLinkMode.
Chapter 15,TACACS+ServerModeCommands,describescommandsavailableinTACACS+ServerConfigurationMode.
Chapter 16,RADIUSServerModeCommands,describescommandsavailableinRADIUSServerConfigurationMode.
Chapter 17,SPANSessionModeCommands,describescommandsavailableinSPANSessionConfigurationMode.
Chapter 18,ControlPlaneModeCommands,describescommandsavailableinControlPlaneConfigurationMode.
Chapter 19,KeyChainModeCommands,describescommandsavailableinKeyChainConfigurationMode.
-
30 Command Reference for CNOS 10.5
Chapter 20,IPACLModeCommands,describescommandsavailableinACLConfigurationMode.
Chapter 21,ARPACLModeCommands,describescommandsavailableinARPACLConfigurationMode.
Chapter 22,MACACLModeCommands,describescommandsavailableinMACACLConfigurationMode.
Chapter 23,MSTModeCommands,describescommandsavailableinMSTConfigurationMode.
Chapter 24,PKIModeCommands,describescommandsavailableinPublicKeyInfrastructure(PKI)ConfigurationMode.
Chapter 25,PolicyMapModeCommands,describescommandsavailableinPolicyMapConfigurationMode.
Chapter 26,VLANModeCommands,describescommandsavailableinVLANConfigurationMode.
Chapter 27,VRRPModeCommands,describescommandsavailableinVRRPConfigurationMode.
Chapter 29,VDMCommands,describescommandsavailableinVDMConfigurationMode.
Chapter 30,EVCServiceModeCommands,describescommandsavailableinEVCServiceConfigurationMode.
Chapter 31,DisplayCommands,describescommandsavailableinvariousmodesthatdisplayinformationandstatisticsabouttheswitch.
AppendixA,Gettinghelpandtechnicalassistance,tellsyouwhotocontactwithanyquestionsaboutthisproduct.
AppendixB,Notices,containssafetyandenvironmentalnotices.
-
Copyright Lenovo 2017 : Preface 31
Typographic ConventionsThefollowingtabledescribesthetypographicstylesusedinthisbook.
Table 1. TypographicConventions
Typeface or Symbol
Meaning Example
ABC123 Thistypeisusedfornamesofcommands,files,anddirectoriesusedwithinthetext.
Viewthereadme.txtfile.
Italsodepictsonscreencomputeroutputandprompts.
Switch#
ABC123 ThisboldtypeappearsincommandExample.Itshowstextthatmustbetypedinexactlyasshown.
Switch#sys
ThisitalicizedtypeappearsincommandExampleasaparameterplaceholder.Replacetheindicatedtextwiththeappropriaterealnameorvaluewhenusingthecommand.Donottypethebrackets.
ToestablishaTelnetsession,enter:Switch#telnet
Thisalsoshowsbooktitles,specialterms,orwordstobeemphasized.
ReadyourUsersGuidethoroughly.
{} Commanditemsshowninsidebracketsaremandatoryandcannotbeexcluded.Donottypethebrackets.
Switch#ls{a}
[] Commanditemsshowninsidebracketsareoptionalandcanbeusedorexcludedasthesituationdemands.Donottypethebrackets.
Switch#ls[a]
| Theverticalbar(|)isusedincommandExampletoseparatechoiceswheremultipleoptionsexist.Selectonlyoneofthelistedoptions.Donottypetheverticalbar.
Switch#set{left|right}
AaBbCc123 Thisblocktypedepictsmenus,buttons,andothercontrolsthatappearinWebbrowsersandothergraphicalinterfaces.
Clickthebutton.
-
32 Command Reference for CNOS 10.5
-
Copyright Lenovo 2017 Chapter 1: Privileged EXEC Mode Commands 33
Chapter 1. Privileged EXEC Mode CommandsThischapterdescribeshowtoenterPrivilegedEXECModeandthecommandsavailableinthismode.
-
34 Command Reference for CNOS 10.5
enableEntersPrivilegedEXECMode.
Syntaxenable
ModesUserEXECMode
History
ExampleThefollowingcommandentersPrivilegedEXECMode:
Release Modification
10.1 Thecommandwasintroduced.
Switch>enable
Switch#
-
Copyright Lenovo 2017 Chapter 1: Privileged EXEC Mode Commands 35
disableTurnsoffPrivilegedEXECModeandreturnsyoutoUserEXECMode.
Syntaxdisable
ModesPrivilegedEXECMode
History
ExampleThefollowingcommanddisablesPrivilegedEXECMode:
Release Modification
10.1 Thecommandwasintroduced.
Switch#disable
Switch>
-
36 Command Reference for CNOS 10.5
clock setConfiguresthesystemtimeanddate.
Syntaxclockset
where:
ModesPrivilegedEXECMode
History
ExampleThefollowingcommandsetthesystemtimeto12hours30minutesand00secondsandthesystemdatetoJanuary1st2016:
Parameter Function
time ThetimeformatisHH:mm:ss,where: HHisthehouroftheday(rangeis00to24) mmistheminuteofthehour(rangeis00to60) ssisthesecondoftheminute(rangeis00to60)
day Thedayofthemonth(rangeis1to31).
month Themonthoftheyear(rangeisJanuarytoDecember).
year Theyearofthecalendar(rangeis2000to2030).
Release Modification
10.1 Thecommandwasintroduced.
Switch#clockset12:30:001January2016Switch#displayclock
12:30:03UTCFriJan12016
-
Copyright Lenovo 2017 Chapter 1: Privileged EXEC Mode Commands 37
configureEntersConfigurationMode.
Syntaxconfigure[device]
ModesPrivilegedEXECMode
History
ExampleThefollowingcommandentersConfigurationMode:
Release Modification
10.1 Thecommandwasintroduced.
Switch#configuredeviceSwitch(config)#
-
38 Command Reference for CNOS 10.5
cp alias-configCopiesthespecifiedcommandaliasconfigurationfiletothespecifiedremoteserver.
Syntaxcpaliasconfig{ftp|scp|sftp|tftp}[][vrf{default|management}]
where:
ModesPrivilegedEXECmode
History
ExampleThefollowingcommandcopiesthecommandaliasconfigurationfileusingTFTP:
Parameter Description
ftp UsesFileTransferProtocol(FTP).
scp UsesSecureCopyProtocol(SCP).
sftp UsesSecureFileTransferProtocol(SFTP).
tftp UsesTrivialFileTransferProtocol(TFTP).
serverURL TheURLaddressoftheserver.
vrfdefault CopiesusingthedefaultVirtualRoutingandForwarding(VRF)instance.
vrfmanagement CopiesusingthemanagementVRFinstance.
Release Modification
10.4 Thecommandwasintroduced.
Switch#cpaliasconfigtftptftp://10.112.71.18/aliasConfig.cfgvrfdefault
-
Copyright Lenovo 2017 Chapter 1: Privileged EXEC Mode Commands 39
cp fileCopiesthespecifiedfiletoaremoteserver.
Syntaxcpfile{all|bgpd|hostpd|imi|imish|nsm|ospfd|showredirect}{ftp|sftp|tftp}[][timeout][vrf{default|management}]
cpfile{all|bgpd|hostpd|imi|imish|nsm|ospfd|showredirect}scp[][timeout][vrf{default|management}]
where:
Parameter Function
all Copiesallbinaryfiles.
bgpd CopiesBorderGatewayProtocol(BGP)daemonfiles.
hostpd CopiesHostProtocoldaemonfiles.
imi CopiesIntegratedManagementInterface(IMI)files.
imish CopiesIntegratedManagementInterfaceShell(IMISH)files.
nsm CopiesNetworkServiceModule(NSM)files.
ospfd CopiesOpenShortestPathFirst(OSPF)daemonfiles.
showredirect Copiessavedoutputredirectfile.
ftp UsesFileTransferProtocol(FTP).
scp UsesSecureCopyProtocol(SCP).
sftp UsesSecureFileTransferProtocol(SFTP).
tftp UsesTrivialFileTransferProtocol(TFTP).
serverURL TheURLaddressoftheserver.
timeouttimeoutinterval
Specifiesthemaximumtime(inseconds)towaitfortheservertoreplytotheconnectionrequest.Ifthetimeoutperiodexpires,theconnectingprocessstops.Thetimeoutintervalisfrom1to150seconds.
vrfdefault CopiesusingthedefaultVirtualRoutingandForwarding(VRF)instance.
vrfmanagement CopiesusingthemanagementVRFinstance.
-
40 Command Reference for CNOS 10.5
ModesPrivilegedEXECMode
History
ExampleThefollowingcommandcopiesallbinaryfilesusingSFTP:
Release Modification
10.1 Thecommandwasintroduced.
Switch#cpfileallsftpsftp://10.112.71.18/binFilesvrfmanagement
-
Copyright Lenovo 2017 Chapter 1: Privileged EXEC Mode Commands 41
cp ftpCopiesafilefromaremoteserverusingFileTransferProtocol(FTP).
Syntaxcpftp{aliasconfig|file{bgpd|hostpd|imi|imish|nsm|ospfd}|runningconfig|startupconfig|systemimage{all|boot|onie|os}|usb1}[vrf{default|management}]
cpftp{aliasconfig|file{bgpd|hostpd|imi|imish|nsm|ospfd}|runningconfig|startupconfig}
where:
Parameter Function
serverURL TheURLaddressoftheserver.
aliasconfig Copiestothecommandaliasconfigurationfile.
filebgpd CopiesBorderGatewayProtocol(BGP)daemonfiles.
filehostpd CopiesHostProtocoldaemonfiles.
fileimi CopiesIntegratedManagementInterface(IMI)files.
fileimish CopiesIntegratedManagementInterfaceShell(IMISH)files.
filensm CopiesNetworkServiceModule(NSM)files.
fileospfd CopiesOpenShortestPathFirst(OSPF)daemonfiles.
runningconfig Copiestotherunningconfiguration.
startupconfig Copiestothestartupconfiguration.
systemimage Copiestothesystemimage.
all CopiesbothbootandOSimages.
boot Copiesonlythebootimage.
onie CopiesonlytheOpenNetworkInstallEnvironment(ONIE)image.Note: NotavailableontheG8332.
os CopiesonlytheOSimage.
usb1filename CopiestothespecifiedfileontheUSBdevice.
vrfdefault CopiesusingthedefaultVirtualRoutingandForwarding(VRF)instance.
vrfmanagement CopiesusingthemanagementVRFinstance.
-
42 Command Reference for CNOS 10.5
ModesPrivilegedEXECMode
History
ExampleThefollowingcommandcopiesafilefromaremoteservertothestartupconfigurationusingFTP:
Release Modification
10.1 Thecommandwasintroduced.
10.2 Addedrunningconfigoption.
Switch#cpftpftp://[email protected]/startConfig.cfgstartupconfigvrfdefault
-
Copyright Lenovo 2017 Chapter 1: Privileged EXEC Mode Commands 43
cp obsCopiesanOnBoxScript(OBS)filetoaremoteserver.
Syntaxcpobs{sftp|tftp}[vrf{default|management}]
where:
ModesPrivilegedEXECMode
History
ExampleThefollowingcommandcopiesanOBSscriptfiletoaremoveserverusingSFTP:
Parameter Function
scriptname ThenameoftheOBSscriptfile.
sftp UsesSecureFileTransferProtocol(SFTP).
tftp UsesTrivialFileTransferProtocol(TFTP).
serverURL TheURLaddressoftheserver.
vrfdefault CopiesusingthedefaultVirtualRoutingandForwarding(VRF)instance.
vrfmanagement CopiesusingthemanagementVRFinstance.
Release Modification
10.1 Thecommandwasintroduced.
Switch#cpobsmyScriptsftpsftp://[email protected]:22/scripts/myScript
-
44 Command Reference for CNOS 10.5
cp running-configCopiestherunningconfigurationfiletoaremoteserver.
Syntaxcprunningconfig{{ftp|sftp|tftp}[][vrf{default|management}]|usb1|startupconfig}
cprunningconfigscp[[timeout][vrf{default|management}]]
where:
ModesPrivilegedEXECMode
Parameter Function
ftp UsesFileTransferProtocol(FTP).
sftp UsesSecureFileTransferProtocol(SFTP).
tftp UsesTrivialFileTransferProtocol(TFTP).
serverURL TheURLaddressoftheserver.
vrfdefault CopiesusingthedefaultVirtualRoutingandForwarding(VRF)instance.
vrfmanagement CopiesusingthemanagementVRFinstance.
usb1filename CopiestherunningconfigurationfiletothespecifiedfileontheUSBdevice.
startupconfig Copiestherunningconfigurationfiletothestartupconfigurationfile.
scp UsesSecureCopyProtocol(SCP).
timeouttimeoutinterval
Specifiesthemaximumtime(inseconds)towaitfortheservertoreplytotheconnectionrequest.Ifthetimeoutperiodexpires,theconnectingprocessstops.Thetimeoutintervalisfrom1to150seconds.
-
Copyright Lenovo 2017 Chapter 1: Privileged EXEC Mode Commands 45
History
ExampleThefollowingcommandcopiestherunningconfigurationtothestartupconfigurationfile:
Release Modification
10.1 Thecommandwasintroduced.
Switch#cprunningconfigstartupconfig
-
46 Command Reference for CNOS 10.5
cp scpCopiesafilefromaremoteserverusingSecureCopyProtocol(SCP).
Syntaxcpscp[timeout]{aliasconfig|file{bgpd|hostpd|imi|imish|nsm|ospfd}|runningconfig|startupconfig|systemimage[all|boot|onie|os]|usb1}[vrf{default|management}]
cpscp{aliasconfig|file{bgpd|hostpd|imi|imish|nsm|ospfd}|runningconfig|startupconfig}
where:
Parameter Function
serverURL TheURLaddressoftheserver.
timeouttimeoutinterval
Specifiesthemaximumtime(inseconds)towaitfortheservertoreplytotheconnectionrequest.Ifthetimeoutperiodexpires,theconnectingprocessstops.Thetimeoutintervalisfrom1to150seconds.
aliasconfig Copiesthecommandaliasconfigurationfile.
filebgpd CopiesBorderGatewayProtocol(BGP)daemonfiles.
filehostpd CopiesHostProtocoldaemonfiles.
fileimi CopiesIntegratedManagementInterface(IMI)files.
fileimish CopiesIntegratedManagementInterfaceShell(IMISH)files.
filensm CopiesNetworkServiceModule(NSM)files.
fileospfd CopiesOpenShortestPathFirst(OSPF)daemonfiles.
runningconfig Copiestotherunningconfiguration.
startupconfig Copiestothestartupconfiguration.
systemimage Copiestothesystemimage.
all CopiesbothbootandOSimages.
boot Copiesonlythebootimage.
onie CopiesonlytheOpenNetworkInstallEnvironment(ONIE)image.Note: NotavailableontheG8332.
os CopiesonlytheOSimage.
usb1filename CopiestothespecifiedfileontheUSBdevice.
-
Copyright Lenovo 2017 Chapter 1: Privileged EXEC Mode Commands 47
ModesPrivilegedEXECMode
History
ExampleThefollowingcommandcopiesafilefromaremoteservertothestartupconfigurationusingSCP:
vrfdefault CopiesusingthedefaultVirtualRoutingandForwarding(VRF)instance.
vrfmanagement CopiesusingthemanagementVRFinstance.
Parameter Function
Release Modification
10.1 Thecommandwasintroduced.
10.2 Addedrunningconfigoption.
Switch#cpscpscp://[email protected]/startConfig.cfgstartupconfigvrfdefault
-
48 Command Reference for CNOS 10.5
cp script-logCopiesanOnBoxScript(OBS)logfiletoaremoteserver.
Syntaxcpscriptlog{sftp|tftp}[vrf{default|management}]
where:
ModesPrivilegedEXECMode
History
ExampleThefollowingcommandcopiesanOBSscriptlogfiletoaremoveserverusingSFTP:
Parameter Function
scriptlogname ThenameoftheOBSscriptlogfile.
sftp UsesSecureFileTransferProtocol(SFTP).
tftp UsesTrivialFileTransferProtocol(TFTP).
serverURL TheURLaddressoftheserver.
vrfdefault CopiesusingthedefaultVirtualRoutingandForwarding(VRF)instance.
vrfmanagement CopiesusingthemanagementVRFinstance.
Release Modification
10.1 Thecommandwasintroduced.
Switch#cpscriptlogmyOBSLogsftpsftp://[email protected]/logs/myOBSLog
-
Copyright Lenovo 2017 Chapter 1: Privileged EXEC Mode Commands 49
cp sftpCopiesafilefromaremoteserverusingSecureFileTransferProtocol(SFTP).
Syntaxcpsftp{aliasconfig|file{bgpd|hostpd|imi|imish|nsm|ospfd}|obs|runningconfig|startupconfig|systemimage[all|boot|onie|os]|usb1}[vrf{default|management}]
cpsftp{aliasconfig|file{bgpd|hostpd|imi|imish|nsm|ospfd}|runningconfig|startupconfig}
where:
Parameter Function
serverURL TheURLaddressoftheserver.
aliasconfig Copiesthecommandaliasconfigurationfile.
filebgpd CopiesBorderGatewayProtocol(BGP)daemonfiles.
filehostpd CopiesHostProtocoldaemonfiles.
fileimi CopiesIntegratedManagementInterface(IMI)files.
fileimish CopiesIntegratedManagementInterfaceShell(IMISH)files.
filensm CopiesNetworkServiceModule(NSM)files.
fileospfd CopiesOpenShortestPathFirst(OSPF)daemonfiles.
obsscriptname CopiestothespecifiedOBSscriptfile.
runningconfig Copiestotherunningconfiguration.
startupconfig Copiestothestartupconfiguration.
systemimage Copiestothesystemimage.
all CopiesbothbootandOSimages.
boot Copiesonlythebootimage.
onie CopiesonlytheOpenNetworkInstallEnvironment(ONIE)image.Note: NotavailableontheG8332.
os CopiesonlytheOSimage.
usb1filename CopiestothespecifiedfileontheUSBdevice.
vrfdefault CopiesusingthedefaultVirtualRoutingandForwarding(VRF)instance.
vrfmanagement CopiesusingthemanagementVRFinstance.
-
50 Command Reference for CNOS 10.5
ModesPrivilegedEXECMode
History
ExampleThefollowingcommandcopiesafilefromaremoteservertothestartupconfigurationusingSFTP:
Release Modification
10.1 Thecommandwasintroduced.
10.2 Addedrunningconfigoption.
Switch#cpsftpsftp://[email protected]/startConfig.cfgstartupconfigvrfmanagement
-
Copyright Lenovo 2017 Chapter 1: Privileged EXEC Mode Commands 51
cp startup-configCopiesthestartupconfigurationfiletoaremoteserver.
Syntaxcpstartupconfig{{ftp|runningconfig|scp|sftp|tftp}[][timeout][vrf{default|management}]|usb1}
where:
ModesPrivilegedEXECMode
Parameter Function
ftp UsesFileTransferProtocol(FTP).
runningconfig Copiestotherunningconfiguration.
scp UsesSecureCopyProtocol(SCP).
sftp UsesSecureFileTransferProtocol(SFTP).
tftp UsesTrivialFileTransferProtocol(TFTP).
serverURL TheURLaddressoftheserver.
timeouttimeoutvalue Specifiesthemaximumtime(inseconds)towaitfortheservertoreplytotheconnectionrequest.Ifthetimeoutperiodexpires,theconnectingprocessstops.Thetimeoutvalueisfrom1to150seconds.Note: ThisparameterisavailableonlyusingSCP.
vrfdefault CopiesusingthedefaultVirtualRoutingandForwarding(VRF)instance.
vrfmanagement CopiesusingthemanagementVRFinstance.
usb1filename CopiesthestartupconfigurationfiletothespecifiedfileontheUSBdevice.
-
52 Command Reference for CNOS 10.5
History
ExampleThefollowingcommandcopiesthestartupconfigurationtothefilestartupconfigcopy.cfgontheUSBdevice:
Release Modification
10.1 Thecommandwasintroduced.
10.2 Addedrunningconfigoption.
Switch#cpstartupconfigusb1startupconfigcopy.cfg
-
Copyright Lenovo 2017 Chapter 1: Privileged EXEC Mode Commands 53
cp tech-supportCopiesthetechnicalsupportinformationdumpfiletoaremoteserver.
Syntaxcptechsupport{ftp|scp|sftp|tftp}[timeout][vrf{default|management}]
where:
ModesPrivilegedEXECMode
History
ExampleThefollowingcommandcopiesthetechnicalsupportdumpfiletoaremoteserverusingSFTP:
Parameter Function
ftp UsesFileTransferProtocol(FTP).
scp UsesSecureCopyProtocol(SCP).
sftp UsesSecureFileTransferProtocol(SFTP).
tftp UsesTrivialFileTransferProtocol(TFTP).
serverURL TheURLaddressoftheserver.
timeouttimeoutinterval
Specifiesthemaximumtime(inseconds)towaitfortheservertoreplytotheconnectionrequest.Ifthetimeoutperiodexpires,theconnectingprocessstops.Thetimeoutintervalisfrom1to150seconds.Note: ThisparameterisavailableonlyusingSCP.
vrfdefault CopiesusingthedefaultVirtualRoutingandForwarding(VRF)instance.
vrfmanagement CopiesusingthemanagementVRFinstance.
Release Modification
10.1 Thecommandwasintroduced.
Switch#cptechsupportsftpsftp://[email protected]:2222/dumpFiles/techSupportEX67T
-
54 Command Reference for CNOS 10.5
cp tftpCopiesafilefromaremoteserverusingTrivialFileTransferProtocol(TFTP).
Syntaxcptftp{aliasconfig|file{bgpd|hostpd|imi|imish|nsm|ospfd}|lsmcert|obs|runningconfig|startupconfig|systemimage[all|boot|onie|os]|usb1}[vrf{default|management}]
cptftp{file{aliasconfig|bgpd|hostpd|imi|imish|nsm|ospfd}|runningconfig|startupconfig}
where:
Parameter Function
serverURL TheURLaddressoftheserver.
aliasconfig Copiesthecommandaliasconfigurationfile.
filebgpd CopiesBorderGatewayProtocol(BGP)daemonfiles.
filehostpd CopiesHostProtocoldaemonfiles.
fileimi CopiesIntegratedManagementInterface(IMI)files.
fileimish CopiesIntegratedManagementInterfaceShell(IMISH)files.
filensm CopiesNetworkServiceModule(NSM)files.
fileospfd CopiesOpenShortestPathFirst(OSPF)daemonfiles.
lsmcert CopiesLowSecurityMode(LSM)certificate.
obsscriptname CopiestothespecifiedOBSscriptfile.
runningconfig Copiestotherunningconfiguration.
startupconfig Copiestothestartupconfiguration.
systemimage Copiestothesystemimage.
all CopiesbothbootandOSimages.
boot Copiesonlythebootimage.
onie CopiesonlytheOpenNetworkInstallEnvironment(ONIE)image.Note: NotavailableontheG8332.
os CopiesonlytheOSimage.
usb1filename CopiestothespecifiedfileontheUSBdevice.
-
Copyright Lenovo 2017 Chapter 1: Privileged EXEC Mode Commands 55
ModesPrivilegedEXECMode
History
ExampleThefollowingcommandafilefromaremoteservertothestartupconfigurationusingTFTP:
vrfdefault CopiesusingthedefaultVirtualRoutingandForwarding(VRF)instance.
vrfmanagement CopiesusingthemanagementVRFinstance.
Parameter Function
Release Modification
10.1 Thecommandwasintroduced.
10.2 Addedtherunningconfigoption.
Switch#cptftptftp://10.112.71.18/startConfig.cfgstartupconfigvrfdefault
-
56 Command Reference for CNOS 10.5
cp usb1CopiesafilefromtheUSBdevicetothesystemimage.
Syntaxcpusb1{runningconfig|startupconfig|systemimage{all|boot|onie|os}}
where:
ModesPrivilegedEXECMode
History
ExampleThefollowingcommandcopiesanOSimagefromtheUSBdevicetothesystemimage:
Parameter Function
filename Thepathandnameoffiletobecopied.
runningconfig Copiestotherunningconfiguration.
startupconfig Copiesonlytothebootimage.
systemimage Copiestothesystemimage.
all CopiesbothtobootandOSimages.
boot Copiesonlytothebootimage.
onie CopiesonlytotheOpenNetworkInstallEnvironment(ONIE)image.Note: NotavailableontheG8332.
os CopiesonlytotheOSimage.
Release Modification
10.1 Thecommandwasintroduced.
10.2 Addedrunningconfigoption.
Switch#cpusb1/osimages/CNOS10.5.2.0.imgssystemimageos
-
Copyright Lenovo 2017 Chapter 1: Privileged EXEC Mode Commands 57
edit scriptEditsthespecifiedOnBoxScript(OBS)file.
Syntaxeditscript
where:
ModesPrivilegedEXECMode
History
ExampleThefollowingcommandeditstheOBSscriptobsscript10:
Parameter Function
scriptname ThenameoftheOBSscriptfile.
Release Modification
10.1 Thecommandwasintroduced.
Switch#editscriptobsscript10
-
58 Command Reference for CNOS 10.5
maint mode enableEnablesordisablesmaintenancemode.
Toconfigureapasswordtoactivatethisoption,inGlobalConfigurationMode,usethecommand:
Syntaxmaintmodeenable
Todisablemaintenancemode,usethefollowingcommand:
nomaintmode
ModesPrivilegedEXECmode
History
ExampleThefollowingcommandenablesmaintenancemode:
Related Commands
Switch(config)#maintpassword
Release Modification
10.1 Thecommandwasintroduced.
10.5 Updateddocumentationforthecommand
Switch#maintmodeenable
Command Description
maintpassword Setsamaintenancemodepassword
-
Copyright Lenovo 2017 Chapter 1: Privileged EXEC Mode Commands 59
pingPollstheInternetGatewayorpingstoseeifthespecifiedhostisreachable.
Syntaxping[|][vrf{default|management}][source][interface{|ethernet|loopback|mgmt0|portaggregation|vlan}][count{|unlimited}][dfbit][interval][packetsize][timeout]
where:
Parameter Description
destinationaddress TheIPaddressofthehostyouaretryingtoping.
hostname Thenameofthehostyouaretryingtoping.
vrfdefault PingsthedefaultVRFinstanceforthespecifiedremotehost.
vrfmanagement PingsthemanagementVRFinstanceforthespecifiedremotehost.
source SpecifiesthesourceIPv4addresstouse.
sourceaddress TheIPaddressofthesourcehost.
interfaceinterfacename
Thenameoftheinterfacetoping.
interfaceethernetchassisnumber/portnumber
Pingsthespecifiedethernetport.Thechassisnumberis1andtheportnumberdependsontheswitchtype.
interfaceloopbackloopbackinterface
Pingsthespecifiedloopbackinterface.Theloopbackinterfaceisanintegerfrom0to7.
interfacemgmt0 Pingsthemanagementinterface.
interfaceportaggregationLAGnumber
PingsthespecifiedLinkAggregationGroup(LAG).TheLAGnumberisanintegerfrom1to4096.
interfacevlanVLANID
PingsthespecifiedVLAN.TheVLANIDisanintegerfrom1to4094.
count|unlimited
Specifiesrepeatcountsofpingpackets.Youcaneithersetanunlimitednumberofcountsorspecifyaspecificvaluefrom1to655350.Thedefaultvalueis5pingpackets.
dfbit EnablesthedonotfragmentbitintheIPv4header.Thedefaultvalueisdisabled.
-
60 Command Reference for CNOS 10.5
ModesPrivilegedEXECMode
History
ExampleThefollowingcommandpingshost10.148.22.18:
intervalseconds Setstheintervalofsendingpingpackets,inseconds(from0to60).Defaultvalueis0seconds.
packetsizebytes Setsthepacketsizeofsendingpingpackets,inbytes(from1to65468).Thedefaultvalueis56bytes.
timeoutseconds Specifiesnonresponsivetimeoutintervalofsendingpingpackets,inseconds(from1to60).Thedefaultvalueis2seconds.
Release Modification
10.1 Thecommandwasintroduced.
10.4 Addedhostnameoption.
Switch#ping10.148.22.18
-
Copyright Lenovo 2017 Chapter 1: Privileged EXEC Mode Commands 61
ping6PollstheInternetGatewayorpingsanIPv6addresstoseeifthespecifiedhostisreachable.
Syntaxping6[|][vrf{default|management}][source][interface{|ethernet|loopback|mgmt0|portaggregation|vlan}][count{|unlimited}][interval][packetsize][timeout]
where:
Parameter Description
destinationaddress TheIPv6addressofthehostyouaretryingtoping.
hostname Thenameofthehostyouaretryingtoping.
vrfdefault PingsthedefaultVRFinstanceforthespecifiedremotehost.
vrfmanagement PingsthemanagementVRFinstanceforthespecifiedremotehost.
source SpecifiesthesourceIPv6addresstouse.
sourceadress TheIPv6addressofthesourcehost.
interfaceinterfacename
Thenameoftheinterfacetoping.
interfaceethernetchassisnumber/portnumber
Pingsthespecifiedethernetport.Thechassisnumberis1andtheportnumberdependsontheswitchtype.
interfaceloopbackloopbackinterface
Pingsthespecifiedloopbackinterface.Theloopbackinterfaceisanintegerfrom0to7.
interfacemgmt0 Pingsthemanagementinterface.
interfaceportaggregationLAGnumber
PingsthespecifiedLinkAggregationGroup(LAG).TheLAGnumberisanintegerfrom1to4096.
interfacevlanVLANID
PingsthespecifiedVLAN.TheVLANIDisanintegerfrom1to4094.
count|unlimited
Specifiesrepeatcountsofpingpackets.Youcaneithersetanunlimitednumberofcountsorspecifyaspecificvaluefrom1to655350.Thedefaultvalueis5pingpackets.
-
62 Command Reference for CNOS 10.5
ModesPrivilegedEXECMode
History
ExampleThefollowingcommandpingshost2001:db8:85a3::8a2e:370:7334:
intervalseconds Setstheintervalofsendingpingpackets,inseconds(from0to60).Defaultvalueis0seconds.
packetsizebytes Setsthepacketsizeofsendingpingpackets,inbytes(from1to65468).Thedefaultvalueis56bytes.
timeoutseconds Specifiesnonresponsivetimeoutintervalofsendingpingpackets,inseconds(from1to60).Thedefaultvalueis2seconds.
Release Modification
10.1 Thecommandwasintroduced.
10.4 Addedhostnameoption.
Switch#ping62001:db8:85a3::8a2e:370:7334
-
Copyright Lenovo 2017 Chapter 1: Privileged EXEC Mode Commands 63
pythonEntersthePythonProgrammingShell.ToexitthePythonShelleithertypequit(),exit(),orpress.
Syntaxpython[[]]
where:
ModesPrivilegedEXECMode
History
ExampleThefollowingcommandentersthePythonShell:
Paramete Function
scriptname ThenameofthePythonscriptfile.
listofarguments Thelistofargumentsforthespecifiedscriptfile.
Release Modification
10.1 Thecommandwasintroduced.
Switch#python
>>>help()WelcometoPython2.7!Thisistheonlinehelputility.
IfthisisyourfirsttimeusingPython,youshoulddefinitelycheckoutthetutorialontheInternetathttp://docs.python.org/tutorial/.
Enterthenameofanymodule,keyword,ortopictogethelponwritingPythonprogramsandusingPythonmodules.Toquitthishelputilityandreturntotheinterpreter,justtype"quit".
Togetalistofavailablemodules,keywords,ortopics,type"modules","keywords",or"topics".Eachmodulealsocomeswithaonelinesummaryofwhatitdoestolistthemoduleswhosesummariescontainagivenwordsuchas"spam",type"modulesspam".
help>quit>>>quit()
Switch#
-
64 Command Reference for CNOS 10.5
reloadRestartstheswitch.Youwillbepromptedtoconfirmthisaction.
Iftherunningconfigurationisdifferentfromthestartupconfiguration,theswitchwillamessageinformingyouofthis.Ifyourestarttheswitchwithoutsavingtherunningconfiguration,allunsavedchangeswillbelost.
Tosavetherunningconfiguration,useoneofthefollowingcommands: cprunningconfigstartupconfig write
Syntaxreload
ModesPrivilegedEXECmode
History
ExampleThefollowingcommandrestartstheswitch:
Release Modification
10.1 Thecommandwasintroduced.
Switch#reload
-
Copyright Lenovo 2017 Chapter 1: Privileged EXEC Mode Commands 65
remove ip arpDeletesallAddressResolutionProtocol(ARP)tableentries.
Syntaxremoveiparp[||ethernet|loopback|mgmt0|vlan][forcedelete][vrf{all|default|management}]
where:
Modes PrivilegedEXECmode
GlobalConfigurationmode
Parameter Function
IPv4address DeletesARPentriesforthespecifiedIPv4address.
interfacename DeletesARPentriesfortheinterfacespecifiedbyname.
ethernetchassisnumber/portnumber
DeletesARPentriesforthespecifiedethernetport.Thechassisnumberis1andtheportnumberdependsontheswitchtype.
loopbackloopbackinterface
DeletesARPentriesforthespecifiedloopbackinterface.Theloopbackinterfacenumberisanintegerfrom0to7.
mgmt0 DeletesARPentriesforthemanagementinterface.
vlanVLANID DeletesARPentriesforthespecifiedVLANinterface.TheVLANIDisanintegerfrom1to4094.
forcedelete DeletesARPentrieswithoutrefreshingthetable.
vrfall DeletesARPentriesassociatedwithallVirtualRoutingandForwarding(VRF)instances.
vrfdefault DeletesARPentriesassociatedwiththedefaultVRFinstance.
vrfmanagement DeletesARPentriesassociatedwiththemanagementVRFinstance.
-
66 Command Reference for CNOS 10.5
History
ExampleThefollowingcommanddeletesallARPtableentries:
Release Modification
10.1 Thecommandwasintroduced.
Switch#removeiparp
-
Copyright Lenovo 2017 Chapter 1: Privileged EXEC Mode Commands 67
remove ip bgpDeletesBorderGatewayProtocol(BGP)neighbors.
Syntaxremoveipbgp{all|{ipv4|ipv6}unicast}{*||[/]}[vrf{all|default}]
removeipbgp{||external|peergroup}[in[prefixfilter]|out|soft[in|out]]
removeipbgp{*|}[vrfdefault][soft[in|out]]
removeipbgp{*|||external|peergroup}[ipv4unicast{in[prefixfilter]|out|soft[in|out]}]
removeipbgp{*|}[ipv6unicast[soft[in|out]]]
where:
Parameter