{"id":1939,"date":"2020-11-24T16:04:53","date_gmt":"2020-11-24T13:04:53","guid":{"rendered":"https:\/\/isp-tech.ru\/?p=1939"},"modified":"2021-04-19T23:40:18","modified_gmt":"2021-04-19T20:40:18","slug":"juniper-qfx5100-virtual-chassis","status":"publish","type":"post","link":"https:\/\/isp-tech.ru\/en\/juniper-qfx5100-virtual-chassis\/","title":{"rendered":"How to configure Virtual chassis on Juniper QFX5100"},"content":{"rendered":"\n<p>Today we&#8217;ll talk about an alternative to MCLAG from Juniper &#8211; Virtual Chassis. With Virtual Chassis, you can control multiple devices as a single device, have multiple Routing Engines in the stack, and use the graceful Routing Engine switchover (GRES) and Nonstop Active Routing (NSR).<\/p>\n\n\n\n<p>My use case is option with two switches, both same model &#8211; <a href=\"https:\/\/isp-tech.ru\/en\/switch-asic\/juniper-qfx5100\/\" target=\"_blank\" rel=\"noreferrer noopener\">QFX5100-48S<\/a>. We will configure &#8211; pre-provisioned VC, where the roles of the switches are predefined and fixed.<\/p>\n\n\n\n<p>Before starting configuration of the Virtual chassis, we need a list of serial numbers, you can check it like this:<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: plain; highlight: [1]; title: ; notranslate\" title=\"\">\nqfx01&gt; show virtual-chassis                               \n\nVirtual Chassis ID: a1a4.efda.4891\nVirtual Chassis Mode: Enabled\n                                                Mstr           Mixed Route Neighbor List\nMember ID  Status   Serial No    Model          prio  Role      Mode  Mode ID  Interface\n0 (FPC 0)  Prsnt    TA3700000001 qfx5100-48s-6q 128   Master*      N  VC\n\nMember ID for next new member: 1 (FPC 1)\n<\/pre><\/div>\n\n\n<p>The virtual-chassis stack can consist of different switch models &#8211; this is Mixed mode. In our case, the models are the same, so we need fabric mode.<\/p>\n\n\n\n<p>Before starting the configuration, check the virtual-chassis mode:<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: plain; highlight: [1]; title: ; notranslate\" title=\"\">\nqfx01&gt; show virtual-chassis mode \nfpc0:\n--------------------------------------------------------------------------\nCurrent mode : Virtual Chassis with similar devices\nFuture mode after reboot : Virtual Chassis with similar devices\n\n<\/pre><\/div>\n\n\n<p>If the mode is not the one we need, we should change it:<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: plain; title: ; notranslate\" title=\"\">\n qfx01&gt;request virtual-chassis mode fabric local reboot\n<\/pre><\/div>\n\n\n<p>Now we need to define the roles of each switch. I have identical models, so i will use them both as a Routing Engines. This will give the ability to use the GRES \/ NSR \/ NSB and the Control-plane redundancy in case one switch fails. <br><br>Defining the roles:<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: plain; highlight: [1]; title: ; notranslate\" title=\"\">\n#qfx01 config\nchassis {\n    redundancy {\n        graceful-switchover;\n    }\n}\nrouting-options {\n    nonstop-routing;\n}\nprotocols {\n    layer2-control {\n        nonstop-bridging;\n    }\n}\nvirtual-chassis {\n    preprovisioned;\n    no-split-detection;\n    member 0 {                          \n        role routing-engine;\n        serial-number TA3700000001;\n    }\n    member 1 {\n        role routing-engine;\n        serial-number TA3700000002;\n    }\n}             \n<\/pre><\/div>\n\n\n<p>I must say a few words why no-split-detection is used: <br><br>When using split-detection in a two members stack, if one of the switches fails, the rest will go into line-card mode. In this case, no active RE will remain and all FPC ports will be disabled. BEST PRACTICE as recommended by Juniper &#8211; disable split-detection when using a stack of two switches. This functionality is needed if there are more than 2 devices in the stack.<br><br>Quote from the manual:<br>&#8220;We recommend that you disable split detection for a two-member Virtual Chassis configuration if you think the backup router or switch is more likely to fail than the Virtual Chassis port interfaces to the backup router or switch. Configuring redundant Virtual Chassis ports on different line cards in each member router or switch reduces the likelihood that all Virtual Chassis port interfaces to the backup router or switch can fail.&#8221;<\/p>\n\n\n\n<p>Configuring VC ports:<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: plain; highlight: [1,3]; title: ; notranslate\" title=\"\">\nqfx01&gt;request virtual-chassis vc-port set pic-slot 0 port 48\nPort conversion initiated,  use show virtual-chassis vc-port to verify\nqfx01&gt;request virtual-chassis vc-port set pic-slot 0 port 49\nPort conversion initiated,  use show virtual-chassis vc-port to verify\n<\/pre><\/div>\n\n\n<p>Checking VC ports: <\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: plain; highlight: [1]; title: ; notranslate\" title=\"\">\nqfx01&gt; show virtual-chassis vc-port \nfpc0:\n--------------------------------------------------------------------------\nInterface   Type              Trunk  Status       Speed        Neighbor\nor                             ID                 (mbps)       ID  Interface\nPIC \/ Port\n0\/48        Configured         -1    Down         40000\n0\/49        Configured         -1    Down         40000\n<\/pre><\/div>\n\n\n<p>Configuration of the first switch is done. Now i will repeat all the same on the second switch and see what happened:<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: plain; highlight: [1]; title: ; notranslate\" title=\"\">\nqfx01&gt; show virtual-chassis \n\nPreprovisioned Virtual Chassis\nVirtual Chassis ID: a1a4.efda.4891\nVirtual Chassis Mode: Enabled\n                                                Mstr           Mixed Route Neighbor List\nMember ID  Status   Serial No    Model          prio  Role      Mode  Mode ID  Interface\n0 (FPC 0)  Prsnt    TA3700000001 qfx5100-48s-6q 129   Master*      N  VC   1  vcp-255\/0\/48\n                                                                           1  vcp-255\/0\/49\n1 (FPC 1)  Prsnt    TA3700000002 qfx5100-48s-6q 129   Backup       N  VC   0  vcp-255\/0\/48\n                                                                           0  vcp-255\/0\/49\n<\/pre><\/div>\n\n\n<p>We got a chassis with a redundant RE, 96 10G ports and 8 40G ports (2 40G ports are used by VC). <\/p>\n\n\n\n<p>To get into the console of the switch, which works as a backup RE, use this command:<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: plain; highlight: [1,2]; title: ; notranslate\" title=\"\">\nqfx01&gt;request session member 1\nroot@qfx01:BK:1% cli \nwarning: This chassis is operating in a non-master role as part of a virtual-chassis (VC) system.\nwarning: Use of interactive commands should be limited to debugging and VC Port operations.\nwarning: Full CLI access is provided by the Virtual Chassis Master (VC-M) chassis.\nwarning: The VC-M can be identified through the show virtual-chassis status command executed at this console.\nwarning: Please logout and log into the VC-M to use CLI.\n{backup:1}\nroot@qfx01&gt;\n<\/pre><\/div>\n\n\n<p>Let&#8217;s check replication and GRES status :<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: plain; highlight: [2,9]; title: ; notranslate\" title=\"\">\n{backup:1}\nroot@qfx01&gt;show system switchover                            \nfpc1:\n--------------------------------------------------------------------------\nGraceful switchover: On\nConfiguration database: Ready\nKernel database: Ready\n{backup:1}\nroot@qfx01&gt;show task replication\nStateful Replication: Enabled\nRE mode: Backup\n<\/pre><\/div>\n\n\n<p>Everything works as it expected, Virtual Chassis is assembled, REs are synchronized. <\/p>\n\n\n\n<p><strong>How do I remove a switch from a Virtual Chassis?<\/strong><br>If the switch is operating as the Master RE, then you should switch active RE to the switch that will remains in service.<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: plain; highlight: [1,4]; title: ; notranslate\" title=\"\">\nqfx01&gt; request chassis routing-engine master switch check\n# Here should be &quot;Switchover Ready&quot;, output \n# but on 18.4R2-S5.4 i got just blank line??\nqfx01&gt; request chassis routing-engine master switch\nToggle mastership between routing engines ? &#x5B;yes,no] (no) yes\n<\/pre><\/div>\n\n\n<p>Power down the switch you are removing from VC. Disconnect all links. You can now delete Virtual-Chassis related configuration of the disconnected switch.<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: plain; title: ; notranslate\" title=\"\">\n{master:1}\nroot@qfx01&gt; configure \nEntering configuration mode\n\n{master:1}&#x5B;edit]\nroot@qfx01# del virtual-chassis member 1\n\n{master:1}&#x5B;edit]\nroot@qfx01# commit \nconfiguration check succeeds\ncommit complete\n<\/pre><\/div>\n\n\n<p>Remove VC ports:<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: plain; title: ; notranslate\" title=\"\">\n{master:0}\nroot@qfx01&gt;request virtual-chassis vc-port delete pic-slot 0 local port 48\nPort deletion initiated, use cmd show virtual-chassis vc-port to verify\nroot@qfx01&gt;request virtual-chassis vc-port delete pic-slot 0 local port 49 \nPort deletion initiated, use cmd show virtual-chassis vc-port to verify\n<\/pre><\/div>\n\n\n<p>After that, the switch will be removed from the VC, and VC ports are wiped. <\/p>\n","protected":false},"excerpt":{"rendered":"<p>Today we&#8217;ll talk about an alternative to MCLAG from Juniper &#8211; Virtual Chassis. With Virtual Chassis, you can control multiple devices as a single device, have multiple Routing Engines in the stack, and use the graceful Routing Engine switchover (GRES) and Nonstop Active Routing (NSR). My use case is option with two switches, both same\u2026 <span class=\"read-more\"><a href=\"https:\/\/isp-tech.ru\/en\/juniper-qfx5100-virtual-chassis\/\">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":[34],"tags":[33,14],"class_list":["post-1939","post","type-post","status-publish","format-standard","hentry","category-juniper-virtual-chassis","tag-virtual-chassis","tag-juniper"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v24.9 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>How to configure Virtual chassis on Juniper QFX5100 - isp-tech.ru[:]<\/title>\n<meta name=\"description\" content=\"Configure Virtual Chassis on Juniper QFX5100. Pre-provisioned configuration examples. Step-by-step configuration.\" \/>\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\/juniper-qfx5100-virtual-chassis\/\" \/>\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=\"5 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/isp-tech.ru\/juniper-qfx5100-virtual-chassis\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/isp-tech.ru\/juniper-qfx5100-virtual-chassis\/\"},\"author\":{\"name\":\"admin\",\"@id\":\"https:\/\/isp-tech.ru\/#\/schema\/person\/bfc8f447cee1b54cc04a263ed0673363\"},\"headline\":\"How to configure Virtual chassis on Juniper QFX5100\",\"datePublished\":\"2020-11-24T13:04:53+00:00\",\"dateModified\":\"2021-04-19T20:40:18+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/isp-tech.ru\/juniper-qfx5100-virtual-chassis\/\"},\"wordCount\":924,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/isp-tech.ru\/#\/schema\/person\/bfc8f447cee1b54cc04a263ed0673363\"},\"keywords\":[\"Virtual-Chassis\",\"Juniper\"],\"articleSection\":[\"Virtual-Chassis\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/isp-tech.ru\/juniper-qfx5100-virtual-chassis\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/isp-tech.ru\/juniper-qfx5100-virtual-chassis\/\",\"url\":\"https:\/\/isp-tech.ru\/juniper-qfx5100-virtual-chassis\/\",\"name\":\"How to configure Virtual chassis on Juniper QFX5100\",\"isPartOf\":{\"@id\":\"https:\/\/isp-tech.ru\/#website\"},\"datePublished\":\"2020-11-24T13:04:53+00:00\",\"dateModified\":\"2021-04-19T20:40:18+00:00\",\"description\":\"Configure Virtual Chassis on Juniper QFX5100. Pre-provisioned configuration examples. Step-by-step configuration.\",\"breadcrumb\":{\"@id\":\"https:\/\/isp-tech.ru\/juniper-qfx5100-virtual-chassis\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/isp-tech.ru\/juniper-qfx5100-virtual-chassis\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/isp-tech.ru\/juniper-qfx5100-virtual-chassis\/#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\":\"How to configure Virtual chassis on Juniper QFX5100\"}]},{\"@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":"How to configure Virtual chassis on Juniper QFX5100 - isp-tech.ru[:]","description":"Configure Virtual Chassis on Juniper QFX5100. Pre-provisioned configuration examples. Step-by-step configuration.","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\/juniper-qfx5100-virtual-chassis\/","twitter_misc":{"Written by":"admin","Est. reading time":"5 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/isp-tech.ru\/juniper-qfx5100-virtual-chassis\/#article","isPartOf":{"@id":"https:\/\/isp-tech.ru\/juniper-qfx5100-virtual-chassis\/"},"author":{"name":"admin","@id":"https:\/\/isp-tech.ru\/#\/schema\/person\/bfc8f447cee1b54cc04a263ed0673363"},"headline":"How to configure Virtual chassis on Juniper QFX5100","datePublished":"2020-11-24T13:04:53+00:00","dateModified":"2021-04-19T20:40:18+00:00","mainEntityOfPage":{"@id":"https:\/\/isp-tech.ru\/juniper-qfx5100-virtual-chassis\/"},"wordCount":924,"commentCount":0,"publisher":{"@id":"https:\/\/isp-tech.ru\/#\/schema\/person\/bfc8f447cee1b54cc04a263ed0673363"},"keywords":["Virtual-Chassis","Juniper"],"articleSection":["Virtual-Chassis"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/isp-tech.ru\/juniper-qfx5100-virtual-chassis\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/isp-tech.ru\/juniper-qfx5100-virtual-chassis\/","url":"https:\/\/isp-tech.ru\/juniper-qfx5100-virtual-chassis\/","name":"How to configure Virtual chassis on Juniper QFX5100","isPartOf":{"@id":"https:\/\/isp-tech.ru\/#website"},"datePublished":"2020-11-24T13:04:53+00:00","dateModified":"2021-04-19T20:40:18+00:00","description":"Configure Virtual Chassis on Juniper QFX5100. Pre-provisioned configuration examples. Step-by-step configuration.","breadcrumb":{"@id":"https:\/\/isp-tech.ru\/juniper-qfx5100-virtual-chassis\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/isp-tech.ru\/juniper-qfx5100-virtual-chassis\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/isp-tech.ru\/juniper-qfx5100-virtual-chassis\/#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":"How to configure Virtual chassis on Juniper QFX5100"}]},{"@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\/1939","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=1939"}],"version-history":[{"count":55,"href":"https:\/\/isp-tech.ru\/en\/wp-json\/wp\/v2\/posts\/1939\/revisions"}],"predecessor-version":[{"id":2376,"href":"https:\/\/isp-tech.ru\/en\/wp-json\/wp\/v2\/posts\/1939\/revisions\/2376"}],"wp:attachment":[{"href":"https:\/\/isp-tech.ru\/en\/wp-json\/wp\/v2\/media?parent=1939"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/isp-tech.ru\/en\/wp-json\/wp\/v2\/categories?post=1939"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/isp-tech.ru\/en\/wp-json\/wp\/v2\/tags?post=1939"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}