{"id":359,"date":"2019-05-31T10:19:08","date_gmt":"2019-05-31T07:19:08","guid":{"rendered":"https:\/\/isp-tech.ru\/?p=359"},"modified":"2021-04-19T23:47:11","modified_gmt":"2021-04-19T20:47:11","slug":"juniper-ex-selective-qinq","status":"publish","type":"post","link":"https:\/\/isp-tech.ru\/en\/juniper-ex-selective-qinq\/","title":{"rendered":"How to confgure selective QinQ on Juniper EX4500"},"content":{"rendered":"\n<p>Describing the case when you need to selectively add the outer tag on certain Vlans and also transit some vlans intact. This can be done with selective QinQ on Juniper EX4500.<\/p>\n\n\n\n<p>I will create transport vlan and specify what vlans it should carry.<br>In my case, vlans 1-1000 and 2000-3000 are allowed, all other tags will be dropped.<br>I will add the vlan to  uplink port  &#8211; xe-0\/0\/12 and the client port &#8211; ge-0\/0\/3:<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: plain; title: ; notranslate\" title=\"\">\nethernet-switching-options {\ndot1q-tunneling {\n        ether-type 0x8100;\n          }\n}\nvlans {\nQinQ-selective {\n     vlan-id 10;\n     dot1q-tunneling {\n         customer-vlans &#x5B; 1-1000 2000-3000 ];\n     }\n }\n}\ninterfaces {\nxe-0\/0\/12  \n description uplink;\n mtu 9216;\n unit 0 {\n     family ethernet-switching {\n         port-mode trunk;\n         vlan {\n             members &#x5B; 2 10 ];\n         }\n     }\n }\nge-0\/0\/3 {\n         description test-sw;\n         mtu 9216;\n         unit 0 {\n             family ethernet-switching {\n                 port-mode access;\n                 vlan {\n                     members 10;\n                 }\n             }\n         }\n     }\n}\n<\/pre><\/div>\n\n\n<p>I <strong>dont<\/strong> need to add the outer tag to vlan 1001. To do so,  following configuration will be applied:<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: plain; title: ; notranslate\" title=\"\">\nvlans {\n    transit-vlan {\n        vlan-id 1001;\n         interface {\n             ge-0\/0\/3.0 {\n                 mapping {\n                     1001 {\n                         swap;\n                     }\n                 }                       \n             }\n         }\n     }\n }\n<\/pre><\/div>","protected":false},"excerpt":{"rendered":"<p>Describing the case when you need to selectively add the outer tag on certain Vlans and also transit some vlans intact. This can be done with selective QinQ on Juniper EX4500. I will create transport vlan and specify what vlans it should carry.In my case, vlans 1-1000 and 2000-3000 are allowed, all other tags will\u2026 <span class=\"read-more\"><a href=\"https:\/\/isp-tech.ru\/en\/juniper-ex-selective-qinq\/\">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":[11],"tags":[14,17],"class_list":["post-359","post","type-post","status-publish","format-standard","hentry","category-general-juniper","tag-juniper","tag-qinq"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v24.9 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Selective QinQ on Juniper EX4500 how to - isp-tech.ru<\/title>\n<meta name=\"description\" content=\"Selective QinQ on Juniper EX4500 how to confgure. Decribing the case when you want to selectively add the outer tag on certain Vlans.\" \/>\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-ex-selective-qinq\/\" \/>\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=\"1 minute\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/isp-tech.ru\/juniper-ex-selective-qinq\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/isp-tech.ru\/juniper-ex-selective-qinq\/\"},\"author\":{\"name\":\"admin\",\"@id\":\"https:\/\/isp-tech.ru\/#\/schema\/person\/bfc8f447cee1b54cc04a263ed0673363\"},\"headline\":\"How to confgure selective QinQ on Juniper EX4500\",\"datePublished\":\"2019-05-31T07:19:08+00:00\",\"dateModified\":\"2021-04-19T20:47:11+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/isp-tech.ru\/juniper-ex-selective-qinq\/\"},\"wordCount\":196,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/isp-tech.ru\/#\/schema\/person\/bfc8f447cee1b54cc04a263ed0673363\"},\"keywords\":[\"Juniper\",\"QinQ\"],\"articleSection\":[\"General\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/isp-tech.ru\/juniper-ex-selective-qinq\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/isp-tech.ru\/juniper-ex-selective-qinq\/\",\"url\":\"https:\/\/isp-tech.ru\/juniper-ex-selective-qinq\/\",\"name\":\"Selective QinQ on Juniper EX4500 how to - isp-tech.ru\",\"isPartOf\":{\"@id\":\"https:\/\/isp-tech.ru\/#website\"},\"datePublished\":\"2019-05-31T07:19:08+00:00\",\"dateModified\":\"2021-04-19T20:47:11+00:00\",\"description\":\"Selective QinQ on Juniper EX4500 how to confgure. Decribing the case when you want to selectively add the outer tag on certain Vlans.\",\"breadcrumb\":{\"@id\":\"https:\/\/isp-tech.ru\/juniper-ex-selective-qinq\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/isp-tech.ru\/juniper-ex-selective-qinq\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/isp-tech.ru\/juniper-ex-selective-qinq\/#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 confgure selective QinQ on Juniper EX4500\"}]},{\"@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":"Selective QinQ on Juniper EX4500 how to - isp-tech.ru","description":"Selective QinQ on Juniper EX4500 how to confgure. Decribing the case when you want to selectively add the outer tag on certain Vlans.","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-ex-selective-qinq\/","twitter_misc":{"Written by":"admin","Est. reading time":"1 minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/isp-tech.ru\/juniper-ex-selective-qinq\/#article","isPartOf":{"@id":"https:\/\/isp-tech.ru\/juniper-ex-selective-qinq\/"},"author":{"name":"admin","@id":"https:\/\/isp-tech.ru\/#\/schema\/person\/bfc8f447cee1b54cc04a263ed0673363"},"headline":"How to confgure selective QinQ on Juniper EX4500","datePublished":"2019-05-31T07:19:08+00:00","dateModified":"2021-04-19T20:47:11+00:00","mainEntityOfPage":{"@id":"https:\/\/isp-tech.ru\/juniper-ex-selective-qinq\/"},"wordCount":196,"commentCount":0,"publisher":{"@id":"https:\/\/isp-tech.ru\/#\/schema\/person\/bfc8f447cee1b54cc04a263ed0673363"},"keywords":["Juniper","QinQ"],"articleSection":["General"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/isp-tech.ru\/juniper-ex-selective-qinq\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/isp-tech.ru\/juniper-ex-selective-qinq\/","url":"https:\/\/isp-tech.ru\/juniper-ex-selective-qinq\/","name":"Selective QinQ on Juniper EX4500 how to - isp-tech.ru","isPartOf":{"@id":"https:\/\/isp-tech.ru\/#website"},"datePublished":"2019-05-31T07:19:08+00:00","dateModified":"2021-04-19T20:47:11+00:00","description":"Selective QinQ on Juniper EX4500 how to confgure. Decribing the case when you want to selectively add the outer tag on certain Vlans.","breadcrumb":{"@id":"https:\/\/isp-tech.ru\/juniper-ex-selective-qinq\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/isp-tech.ru\/juniper-ex-selective-qinq\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/isp-tech.ru\/juniper-ex-selective-qinq\/#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 confgure selective QinQ on Juniper EX4500"}]},{"@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\/359","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=359"}],"version-history":[{"count":12,"href":"https:\/\/isp-tech.ru\/en\/wp-json\/wp\/v2\/posts\/359\/revisions"}],"predecessor-version":[{"id":1082,"href":"https:\/\/isp-tech.ru\/en\/wp-json\/wp\/v2\/posts\/359\/revisions\/1082"}],"wp:attachment":[{"href":"https:\/\/isp-tech.ru\/en\/wp-json\/wp\/v2\/media?parent=359"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/isp-tech.ru\/en\/wp-json\/wp\/v2\/categories?post=359"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/isp-tech.ru\/en\/wp-json\/wp\/v2\/tags?post=359"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}