{"id":5600,"date":"2023-03-15T04:48:59","date_gmt":"2023-03-15T04:48:59","guid":{"rendered":"https:\/\/tst-amo.net.ua\/blog\/?p=5600"},"modified":"2023-03-15T15:10:58","modified_gmt":"2023-03-15T15:10:58","slug":"vlan-trunk-%d1%81-%d0%bf%d0%be%d0%bc%d0%be%d1%89%d1%8c%d1%8e-switch-chip","status":"publish","type":"post","link":"https:\/\/tst-amo.net.ua\/blog\/?p=5600","title":{"rendered":"VLAN TRUNK \u0438 ACCESS \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e switch chip"},"content":{"rendered":"<p><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-5571 aligncenter\" src=\"https:\/\/tst-amo.net.ua\/blog\/wp-content\/uploads\/2023\/03\/fig1.jpg\" alt=\"\" width=\"454\" height=\"428\" srcset=\"https:\/\/tst-amo.net.ua\/blog\/wp-content\/uploads\/2023\/03\/fig1.jpg 454w, https:\/\/tst-amo.net.ua\/blog\/wp-content\/uploads\/2023\/03\/fig1-300x283.jpg 300w\" sizes=\"(max-width: 454px) 100vw, 454px\" \/><\/p>\n<p><strong>Router R1<\/strong><\/p>\n<ul>\n<li>ether1 \u2013 WAN<\/li>\n<li>ether4 \u2013 trunk\/tagged<\/li>\n<li>ether2 \u2013 access\/untugged<\/li>\n<li>ether3 \u2013 access\/untagged (\u043d\u0430 \u0441\u0445\u0435\u043c\u0435 \u043d\u0435 \u0443\u043a\u0430\u0437\u0430\u043d)<\/li>\n<\/ul>\n<p><strong>Switch SW1<\/strong><\/p>\n<ul>\n<li>ether24 \u2013 trunk\/tagged<\/li>\n<li>ether15 \u2013 access\/untagged<\/li>\n<li>ether16 \u2013 access\/untagged<\/li>\n<\/ul>\n<p>1)\u00a0\u0421\u041e\u0417\u0414\u0410\u0415\u041c\u00a0\u0411\u0420\u0418\u0414\u0416\u00a0\u0418\u041d\u0422\u0415\u0420\u0424\u0415\u0419\u0421<\/p>\n<pre>\/interface bridge\u00a0\r\nadd\u00a0name=bridge-LAN\r\n<\/pre>\n<p>2)\u00a0\u0421\u041e\u0417\u0414\u0410\u0415\u041c\u00a0\u0418\u041d\u0422\u0415\u0420\u0424\u0415\u0419\u0421\u00a0\u0412\u041b\u0410\u041d\u042b\u00a0\u041f\u041e\u0414\u00a0\u0418\u041d\u0422\u0415\u0420\u0424\u0415\u0419\u0421\u041e\u041c\u00a0bridge-LAN<\/p>\n<pre>\/interface vlan\r\nadd\u00a0interface=bridge-LAN\u00a0name=vlan36\u00a0vlan-id=36\r\nadd\u00a0interface=bridge-LAN\u00a0name=vlan50\u00a0vlan-id=50\r\n<\/pre>\n<p>3)\u00a0\u0414\u041e\u0411\u0410\u0412\u041b\u042f\u0415\u041c\u00a0\u0418\u041d\u0422\u0415\u0420\u0424\u0415\u0419\u0421\u042b\u00a0\u0412\u00a0\u0411\u0420\u0418\u0414\u0416<\/p>\n<pre>\/interface\u00a0bridge\u00a0port\r\nadd\u00a0bridge=bridge-LAN\u00a0interface=ether2\r\nadd\u00a0bridge=bridge-LAN\u00a0interface=ether3\r\nadd\u00a0bridge=bridge-LAN\u00a0interface=ether4\r\n<\/pre>\n<p>4)\u00a0\u041d\u0410\u0417\u041d\u0410\u0427\u0410\u0415\u041c\u00a0IP\u00a0\u0410\u0414\u0420\u0415\u0421\u0410\u00a0\u041d\u0410\u00a0\u0418\u041d\u0422\u0415\u0420\u0424\u0415\u0419\u0421\u042b\u00a0VLAN<\/p>\n<pre>\/ip\u00a0address\r\nadd\u00a0address=10.10.36.1\/24\u00a0interface=vlan36\u00a0network=10.10.36.0\r\nadd\u00a0address=10.10.50.1\/24\u00a0interface=vlan50\u00a0network=10.10.50.0\r\n<\/pre>\n<p>5)\u00a0\u041d\u0410\u0421\u0422\u0420\u0410\u0418\u0412\u0410\u0415\u041c\u00a0DHCP\u00a0\u0441\u0435\u0440\u0432\u0435\u0440\u0430<\/p>\n<p>6)\u00a0\u0414\u041e\u0411\u0410\u0412\u041b\u042f\u0415\u041c\u00a0\u0412\u00a0SWITCH1\u00a0\u041f\u041e\u0420\u0422\u042b\u00a0\u0418\u00a0\u0412\u041b\u0410\u041d\u00a0\u041a\u041e\u0422\u041e\u0420\u042b\u0415\u00a0\u0411\u0423\u0414\u0423\u0422\u00a0\u0418\u0421\u041f\u041e\u041b\u042c\u0417\u041e\u0412\u0410\u0422\u042c\u00a0\u0412\u041b\u0410\u041d<\/p>\n<pre>\/interface\u00a0ethernet\u00a0switch\u00a0vlan\r\nadd\u00a0ports=ether2,ether4,switch1-cpu\u00a0switch=switch1\u00a0vlan-id=36\r\nadd\u00a0ports=ether3,ether4,switch1-cpu\u00a0switch=switch1\u00a0vlan-id=50\r\n<\/pre>\n<p>7) \u041d\u0410\u0421\u0422\u0420\u0410\u0418\u0412\u0410\u0415\u041c \u041f\u041e\u0420\u0422\u042b \u041d\u0410 SWITCH1 \u0412 \u041a\u0410\u0427\u0415\u0421\u0422\u0412\u0415 \u0410\u041a\u0421\u0415\u0421\u041e\u0412 \u0418 \u0422\u0420\u0410\u041d\u041a\u041e\u0412 (always-strip &#8211; \u044d\u0442\u043e \u0430\u043a\u0441\u0435\u0441, add-if-missing &#8211; \u044d\u0442\u043e \u0442\u0440\u0430\u043d\u043a, switch-cpu \u043e\u0441\u0442\u0430\u0432\u043b\u044f\u0435\u043c \u043a\u0430\u043a \u0435\u0441\u0442\u044c leave-as-is \u0438 \u0434\u0435\u043b\u0430\u0435\u043c secure)<\/p>\n<pre>\/interface\u00a0ethernet\u00a0switch\u00a0port\r\nset\u00a02\u00a0default-vlan-id=36\u00a0vlan-header=always-strip\u00a0vlan-mode=secure\r\nset\u00a03\u00a0default-vlan-id=50\u00a0vlan-header=always-strip\u00a0vlan-mode=secure\r\nset\u00a0switch1-cpu\u00a0vlan-header=leave-as-is\u00a0vlan-mode=secure<\/pre>\n<div class=\"pdfprnt-buttons pdfprnt-buttons-post pdfprnt-bottom-right\"><a href=\"https:\/\/tst-amo.net.ua\/blog\/index.php?rest_route=wpv2posts5600&print=pdf\" class=\"pdfprnt-button pdfprnt-button-pdf\" target=\"_blank\"><img decoding=\"async\" src=\"https:\/\/tst-amo.net.ua\/blog\/wp-content\/plugins\/pdf-print\/images\/pdf.png\" alt=\"image_pdf\" title=\"View PDF\" \/><\/a><a href=\"https:\/\/tst-amo.net.ua\/blog\/index.php?rest_route=wpv2posts5600&print=print\" class=\"pdfprnt-button pdfprnt-button-print\" target=\"_blank\"><img decoding=\"async\" src=\"https:\/\/tst-amo.net.ua\/blog\/wp-content\/plugins\/pdf-print\/images\/print.png\" alt=\"image_print\" title=\"Print Content\" \/><\/a><\/div>","protected":false},"excerpt":{"rendered":"<p>Router R1 ether1 \u2013 WAN ether4 \u2013 trunk\/tagged ether2 \u2013 access\/untugged ether3 \u2013 access\/untagged (\u043d\u0430 \u0441\u0445\u0435\u043c\u0435 \u043d\u0435 \u0443\u043a\u0430\u0437\u0430\u043d) Switch SW1 ether24 \u2013 trunk\/tagged ether15 \u2013 access\/untagged ether16 \u2013 access\/untagged 1)\u00a0\u0421\u041e\u0417\u0414\u0410\u0415\u041c\u00a0\u0411\u0420\u0418\u0414\u0416\u00a0\u0418\u041d\u0422\u0415\u0420\u0424\u0415\u0419\u0421 \/interface bridge\u00a0 add\u00a0name=bridge-LAN 2)\u00a0\u0421\u041e\u0417\u0414\u0410\u0415\u041c\u00a0\u0418\u041d\u0422\u0415\u0420\u0424\u0415\u0419\u0421\u00a0\u0412\u041b\u0410\u041d\u042b\u00a0\u041f\u041e\u0414\u00a0\u0418\u041d\u0422\u0415\u0420\u0424\u0415\u0419\u0421\u041e\u041c\u00a0bridge-LAN \/interface vlan add\u00a0interface=bridge-LAN\u00a0name=vlan36\u00a0vlan-id=36 add\u00a0interface=bridge-LAN\u00a0name=vlan50\u00a0vlan-id=50 3)\u00a0\u0414\u041e\u0411\u0410\u0412\u041b\u042f\u0415\u041c\u00a0\u0418\u041d\u0422\u0415\u0420\u0424\u0415\u0419\u0421\u042b\u00a0\u0412\u00a0\u0411\u0420\u0418\u0414\u0416 \/interface\u00a0bridge\u00a0port add\u00a0bridge=bridge-LAN\u00a0interface=ether2 add\u00a0bridge=bridge-LAN\u00a0interface=ether3 add\u00a0bridge=bridge-LAN\u00a0interface=ether4 4)\u00a0\u041d\u0410\u0417\u041d\u0410\u0427\u0410\u0415\u041c\u00a0IP\u00a0\u0410\u0414\u0420\u0415\u0421\u0410\u00a0\u041d\u0410\u00a0\u0418\u041d\u0422\u0415\u0420\u0424\u0415\u0419\u0421\u042b\u00a0VLAN \/ip\u00a0address add\u00a0address=10.10.36.1\/24\u00a0interface=vlan36\u00a0network=10.10.36.0 add\u00a0address=10.10.50.1\/24\u00a0interface=vlan50\u00a0network=10.10.50.0 5)\u00a0\u041d\u0410\u0421\u0422\u0420\u0410\u0418\u0412\u0410\u0415\u041c\u00a0DHCP\u00a0\u0441\u0435\u0440\u0432\u0435\u0440\u0430 6)\u00a0\u0414\u041e\u0411\u0410\u0412\u041b\u042f\u0415\u041c\u00a0\u0412\u00a0SWITCH1\u00a0\u041f\u041e\u0420\u0422\u042b\u00a0\u0418\u00a0\u0412\u041b\u0410\u041d\u00a0\u041a\u041e\u0422\u041e\u0420\u042b\u0415\u00a0\u0411\u0423\u0414\u0423\u0422\u00a0\u0418\u0421\u041f\u041e\u041b\u042c\u0417\u041e\u0412\u0410\u0422\u042c\u00a0\u0412\u041b\u0410\u041d \/interface\u00a0ethernet\u00a0switch\u00a0vlan add\u00a0ports=ether2,ether4,switch1-cpu\u00a0switch=switch1\u00a0vlan-id=36 add\u00a0ports=ether3,ether4,switch1-cpu\u00a0switch=switch1\u00a0vlan-id=50 7) \u041d\u0410\u0421\u0422\u0420\u0410\u0418\u0412\u0410\u0415\u041c \u041f\u041e\u0420\u0422\u042b &#8230;<\/p>\n<p><a href=\"https:\/\/tst-amo.net.ua\/blog\/?p=5600\" class=\"more-link\">Continue reading &lsquo;VLAN TRUNK \u0438 ACCESS \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e switch chip&rsquo; &raquo;<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[372,377,222,316,378,373],"tags":[],"class_list":["post-5600","post","type-post","status-publish","format-standard","hentry","category-access-port","category-bridge","category-dhcp","category-mikrotik","category-switch-chip","category-trunk-port"],"_links":{"self":[{"href":"https:\/\/tst-amo.net.ua\/blog\/index.php?rest_route=\/wp\/v2\/posts\/5600"}],"collection":[{"href":"https:\/\/tst-amo.net.ua\/blog\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/tst-amo.net.ua\/blog\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/tst-amo.net.ua\/blog\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/tst-amo.net.ua\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=5600"}],"version-history":[{"count":5,"href":"https:\/\/tst-amo.net.ua\/blog\/index.php?rest_route=\/wp\/v2\/posts\/5600\/revisions"}],"predecessor-version":[{"id":5612,"href":"https:\/\/tst-amo.net.ua\/blog\/index.php?rest_route=\/wp\/v2\/posts\/5600\/revisions\/5612"}],"wp:attachment":[{"href":"https:\/\/tst-amo.net.ua\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=5600"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/tst-amo.net.ua\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=5600"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/tst-amo.net.ua\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=5600"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}