{"id":1671,"date":"2019-05-26T14:08:00","date_gmt":"2019-05-26T11:08:00","guid":{"rendered":"https:\/\/isp-tech.ru\/?p=1671"},"modified":"2021-04-19T23:45:50","modified_gmt":"2021-04-19T20:45:50","slug":"huawei-cloudengine-basic-configuration","status":"publish","type":"post","link":"https:\/\/isp-tech.ru\/en\/huawei-cloudengine-basic-configuration\/","title":{"rendered":"Huawei CloudEngine &#8211; configuration basics."},"content":{"rendered":"\n<p><br>This note was written to help network engineers to understand Huawei CloudEngine switches configuration basics.<br><br>There are different command views in Huawei VRP OS :<\/p>\n\n\n\n<p><strong>User view<\/strong><\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: plain; auto-links: false; title: ; quick-code: false; notranslate\" title=\"\">\n\u02c2HUAWEI&gt;\n<\/pre><\/div>\n\n\n<p>In the user view, you can view the running status and statistics of the device.<\/p>\n\n\n\n<p><strong>system-view<\/strong><\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: plain; title: ; notranslate\" title=\"\">\n&#x5B;~HUAWEI]\n<\/pre><\/div>\n\n\n<p>In the system view, you can set the system parameters of the device.  CloudEngine series switches have two-stage configuration mode enabled by default.<br><br><strong>system-view immediately<\/strong><\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: plain; title: ; notranslate\" title=\"\">\n&#x5B;HUAWEI]\n<\/pre><\/div>\n\n\n<p>In immediately view all commands are applied in one stage mode.<\/p>\n\n\n\n<p>Let&#8217;s configure the port in the two-stage mode:<\/p>\n\n\n\n<p>Show active config:<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: plain; title: ; notranslate\" title=\"\">\n&#x5B;~HUAWEI]display current\n<\/pre><\/div>\n\n\n<p>View current interface config:<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: plain; title: ; notranslate\" title=\"\">\n&#x5B;~HUAWEI]int 10GE 0\/0\/38\n&#x5B;~HUAWEI-10GE0\/0\/38]display this \n#\ninterface 10GE0\/0\/38\n description default-config\n shutdown\n<\/pre><\/div>\n\n\n<p>Disable port:<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: plain; title: ; notranslate\" title=\"\">\n&#x5B;~HUAWEI]int 10GE 0\/0\/38\n&#x5B;~HUAWEI-10GE0\/0\/38]\n&#x5B;~HUAWEI-10GE0\/0\/38]undo shut\n&#x5B;*HUAWEI-10GE0\/0\/38]\n<\/pre><\/div>\n\n\n<p>Checking config changes:<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: plain; title: ; notranslate\" title=\"\">\n&#x5B;*HUAWEI-10GE0\/0\/38]display configuration candidate changes\nBuilding configuration\n  #\n  interface 10GE0\/0\/38\n-  shutdown\n  #\n&#x5B;*HUAWEI-10GE0\/0\/38]\n<\/pre><\/div>\n\n\n<p>Checking all config, including current config changes:<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: plain; title: ; notranslate\" title=\"\">\n&#x5B;*HUAWEI]display configuration candidate merge\n<\/pre><\/div>\n\n\n<p>Clear all changes made:<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: plain; title: ; notranslate\" title=\"\">\n&#x5B;*HUAWEI]clear configuration candidate\n<\/pre><\/div>\n\n\n<p>Apply changes made: <\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: plain; title: ; notranslate\" title=\"\">\n&#x5B;*HUAWEI]commit\n<\/pre><\/div>\n\n\n<p>Apply changes made with trial period of 5 minutes:<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: plain; title: ; notranslate\" title=\"\">\n&#x5B;*HUAWEI]commit trial 300\nInfo: The system enters the trial configuration mode.\nThe system will revert to previous configuration if the trial configuration is not confirmed in 300 seconds. \n<\/pre><\/div>\n\n\n<p>Cancel trial config and rollback immediately:<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: plain; title: ; notranslate\" title=\"\">\n&#x5B;~HUAWEI]abort trial \nWarning: The trial configuration will be rolled back. Continue? &#x5B;Y\/N]:y\nInfo: The trial configuration rollback succeeded.\n<\/pre><\/div>\n\n\n<p>Save config :<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: plain; title: ; notranslate\" title=\"\">\n&#x5B;~HUAWEI]q\n\u02c2HUAWEI&gt;save\nWarning: The current configuration will be written to the device. Continue? &#x5B;Y\/N]:y\nNow saving the current configuration ........\nInfo: Save the configuration successfully.\n<\/pre><\/div>\n\n\n<p>Rollback config to last one:<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: plain; title: ; notranslate\" title=\"\">\n\u02c2HUAWEI&gt;rollback configuration last 1\nWarning: This operation will revert configuration changes to the previous status. Continue? &#x5B;Y\/N]:y\nLoading rollback changes\nCommitting\nCheck rollback result\nConfiguration rollback succeeded.\nPlease use &#039;display configuration commit changes last 1&#039; to view the changes.\n<\/pre><\/div>\n\n\n<p>Show commit list : <\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: plain; title: ; notranslate\" title=\"\">\n\u02c2HUAWEI&gt;display configuration commit list\n<\/pre><\/div>\n\n\n<p>View changes made in last commit:<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: plain; title: ; notranslate\" title=\"\">\n\u02c2HUAWEI&gt;display configuration commit changes last 1\nBuilding configuration\n  #\n  interface 10GE0\/0\/38\n+  shutdown\n<\/pre><\/div>\n\n\n<p>History of config change in all commits:<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: plain; title: ; notranslate\" title=\"\">\n\u02c2HUAWEI&gt;display configuration commit changes\nBuilding configuration\nCommit changes of commitId 1000001274 2019-05-26 13:48:57+03:00\n  #\n  interface 10GE0\/0\/38\n-  shutdown\n  #\n\nCommit changes of commitId 1000001273 2019-05-26 13:46:11+03:00\n  #\n  interface 10GE0\/0\/38\n+  shutdown\n  #\n<\/pre><\/div>\n\n\n<p>Changes made in particular commit:<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: plain; title: ; notranslate\" title=\"\">\n\u02c2HUAWEI&gt;display configuration commit changes at 1000001252\nBuilding configuration\n  #\n- vlan batch 4038 4043 to 4045\n  #\n+ vlan batch 4033 4038 4043 to 4045\n<\/pre><\/div>\n\n\n<p>Show changes made from specified commit to current one:<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: plain; title: ; notranslate\" title=\"\">\n\u02c2HUAWEI&gt;display configuration commit changes since 1000000810\n<\/pre><\/div>\n\n\n<p>View changes made in last 4 commits:<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: plain; title: ; notranslate\" title=\"\">\n \u02c2HUAWEI&gt;display configuration commit changes last 4\n<\/pre><\/div>\n\n\n<p><br>Huawei VRP OS also has an alias feature,  it can save your time. I mainly work with Juniper, so I use short aliases similar to Junos:<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: plain; title: ; notranslate\" title=\"\">\ncommand alias\n alias shc1 command &quot;display configuration commit changes last 1&quot;\n alias shch command &quot; display configuration candidate changes&quot;\n alias show command display\n alias shr command &quot;display current&quot;\n alias sht command &quot;display this&quot;\n<\/pre><\/div>","protected":false},"excerpt":{"rendered":"<p>This note was written to help network engineers to understand Huawei CloudEngine switches configuration basics. There are different command views in Huawei VRP OS : User view In the user view, you can view the running status and statistics of the device. system-view In the system view, you can set the system parameters of the\u2026 <span class=\"read-more\"><a href=\"https:\/\/isp-tech.ru\/en\/huawei-cloudengine-basic-configuration\/\">Read More &raquo;<\/a><\/span><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"ngg_post_thumbnail":0,"footnotes":""},"categories":[22],"tags":[29,20],"class_list":["post-1671","post","type-post","status-publish","format-standard","hentry","category-general-huawei","tag-huawei-configuration","tag-huawei"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v24.9 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Huawei CloudEngine configuration basics.Commit\\Rollback. - isp-tech.ru<\/title>\n<meta name=\"description\" content=\"Huawei CloudEngine configuration basics.CommitRollback operations. Confguration modes. Show and compare configurations.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/isp-tech.ru\/en\/huawei-cloudengine-basic-configuration\/\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"admin\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"3 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/isp-tech.ru\/huawei-cloudengine-basic-configuration\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/isp-tech.ru\/huawei-cloudengine-basic-configuration\/\"},\"author\":{\"name\":\"admin\",\"@id\":\"https:\/\/isp-tech.ru\/#\/schema\/person\/bfc8f447cee1b54cc04a263ed0673363\"},\"headline\":\"Huawei CloudEngine &#8211; configuration basics.\",\"datePublished\":\"2019-05-26T11:08:00+00:00\",\"dateModified\":\"2021-04-19T20:45:50+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/isp-tech.ru\/huawei-cloudengine-basic-configuration\/\"},\"wordCount\":386,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/isp-tech.ru\/#\/schema\/person\/bfc8f447cee1b54cc04a263ed0673363\"},\"keywords\":[\"Huawei configuration\",\"Huawei\"],\"articleSection\":[\"General\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/isp-tech.ru\/huawei-cloudengine-basic-configuration\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/isp-tech.ru\/huawei-cloudengine-basic-configuration\/\",\"url\":\"https:\/\/isp-tech.ru\/huawei-cloudengine-basic-configuration\/\",\"name\":\"Huawei CloudEngine configuration basics.Commit\\\\Rollback. - isp-tech.ru\",\"isPartOf\":{\"@id\":\"https:\/\/isp-tech.ru\/#website\"},\"datePublished\":\"2019-05-26T11:08:00+00:00\",\"dateModified\":\"2021-04-19T20:45:50+00:00\",\"description\":\"Huawei CloudEngine configuration basics.Commit\\\\Rollback operations. Confguration modes. Show and compare configurations.\",\"breadcrumb\":{\"@id\":\"https:\/\/isp-tech.ru\/huawei-cloudengine-basic-configuration\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/isp-tech.ru\/huawei-cloudengine-basic-configuration\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/isp-tech.ru\/huawei-cloudengine-basic-configuration\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u0413\u043b\u0430\u0432\u043d\u0430\u044f \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0430\",\"item\":\"https:\/\/isp-tech.ru\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Huawei CloudEngine &#8212; configuration basics.\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/isp-tech.ru\/#website\",\"url\":\"https:\/\/isp-tech.ru\/\",\"name\":\"isp-tech.ru\",\"description\":\"\",\"publisher\":{\"@id\":\"https:\/\/isp-tech.ru\/#\/schema\/person\/bfc8f447cee1b54cc04a263ed0673363\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/isp-tech.ru\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":[\"Person\",\"Organization\"],\"@id\":\"https:\/\/isp-tech.ru\/#\/schema\/person\/bfc8f447cee1b54cc04a263ed0673363\",\"name\":\"admin\",\"logo\":{\"@id\":\"https:\/\/isp-tech.ru\/#\/schema\/person\/image\/\"}}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Huawei CloudEngine configuration basics.Commit\\Rollback. - isp-tech.ru","description":"Huawei CloudEngine configuration basics.CommitRollback operations. Confguration modes. Show and compare configurations.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/isp-tech.ru\/en\/huawei-cloudengine-basic-configuration\/","twitter_misc":{"Written by":"admin","Est. reading time":"3 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/isp-tech.ru\/huawei-cloudengine-basic-configuration\/#article","isPartOf":{"@id":"https:\/\/isp-tech.ru\/huawei-cloudengine-basic-configuration\/"},"author":{"name":"admin","@id":"https:\/\/isp-tech.ru\/#\/schema\/person\/bfc8f447cee1b54cc04a263ed0673363"},"headline":"Huawei CloudEngine &#8211; configuration basics.","datePublished":"2019-05-26T11:08:00+00:00","dateModified":"2021-04-19T20:45:50+00:00","mainEntityOfPage":{"@id":"https:\/\/isp-tech.ru\/huawei-cloudengine-basic-configuration\/"},"wordCount":386,"commentCount":0,"publisher":{"@id":"https:\/\/isp-tech.ru\/#\/schema\/person\/bfc8f447cee1b54cc04a263ed0673363"},"keywords":["Huawei configuration","Huawei"],"articleSection":["General"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/isp-tech.ru\/huawei-cloudengine-basic-configuration\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/isp-tech.ru\/huawei-cloudengine-basic-configuration\/","url":"https:\/\/isp-tech.ru\/huawei-cloudengine-basic-configuration\/","name":"Huawei CloudEngine configuration basics.Commit\\Rollback. - isp-tech.ru","isPartOf":{"@id":"https:\/\/isp-tech.ru\/#website"},"datePublished":"2019-05-26T11:08:00+00:00","dateModified":"2021-04-19T20:45:50+00:00","description":"Huawei CloudEngine configuration basics.Commit\\Rollback operations. Confguration modes. Show and compare configurations.","breadcrumb":{"@id":"https:\/\/isp-tech.ru\/huawei-cloudengine-basic-configuration\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/isp-tech.ru\/huawei-cloudengine-basic-configuration\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/isp-tech.ru\/huawei-cloudengine-basic-configuration\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u0413\u043b\u0430\u0432\u043d\u0430\u044f \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0430","item":"https:\/\/isp-tech.ru\/"},{"@type":"ListItem","position":2,"name":"Huawei CloudEngine &#8212; configuration basics."}]},{"@type":"WebSite","@id":"https:\/\/isp-tech.ru\/#website","url":"https:\/\/isp-tech.ru\/","name":"isp-tech.ru","description":"","publisher":{"@id":"https:\/\/isp-tech.ru\/#\/schema\/person\/bfc8f447cee1b54cc04a263ed0673363"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/isp-tech.ru\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":["Person","Organization"],"@id":"https:\/\/isp-tech.ru\/#\/schema\/person\/bfc8f447cee1b54cc04a263ed0673363","name":"admin","logo":{"@id":"https:\/\/isp-tech.ru\/#\/schema\/person\/image\/"}}]}},"_links":{"self":[{"href":"https:\/\/isp-tech.ru\/en\/wp-json\/wp\/v2\/posts\/1671","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/isp-tech.ru\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/isp-tech.ru\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/isp-tech.ru\/en\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/isp-tech.ru\/en\/wp-json\/wp\/v2\/comments?post=1671"}],"version-history":[{"count":80,"href":"https:\/\/isp-tech.ru\/en\/wp-json\/wp\/v2\/posts\/1671\/revisions"}],"predecessor-version":[{"id":1755,"href":"https:\/\/isp-tech.ru\/en\/wp-json\/wp\/v2\/posts\/1671\/revisions\/1755"}],"wp:attachment":[{"href":"https:\/\/isp-tech.ru\/en\/wp-json\/wp\/v2\/media?parent=1671"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/isp-tech.ru\/en\/wp-json\/wp\/v2\/categories?post=1671"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/isp-tech.ru\/en\/wp-json\/wp\/v2\/tags?post=1671"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}