{"id":280007,"date":"2016-10-27T00:30:02","date_gmt":"2016-10-26T20:30:02","guid":{"rendered":"http:\/\/savepearlharbor.com\/?p=280007"},"modified":"-0001-11-30T00:00:00","modified_gmt":"-0001-11-29T21:00:00","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=280007","title":{"rendered":"Mikrotik: \u043c\u0430\u043b\u0435\u043d\u044c\u043a\u0430\u044f \u0445\u0438\u0442\u0440\u043e\u0441\u0442\u044c switch chip"},"content":{"rendered":"<p>\u041c\u043e\u044f <a href=\"https:\/\/habrahabr.ru\/post\/313248\/\">\u043f\u0440\u043e\u0448\u043b\u0430\u044f \u0441\u0442\u0430\u0442\u044c\u044f<\/a> \u043f\u0440\u043e switch chip \u043d\u0430 Mikrotik \u0432\u044b\u0437\u0432\u0430\u043b\u0430 \u043d\u0435\u043e\u0434\u043d\u043e\u0437\u043d\u0430\u0447\u043d\u0443\u044e \u0440\u0435\u0430\u043a\u0446\u0438\u044e, \u0430 \u043a\u043e\u043c\u043c\u0435\u043d\u0442\u0430\u0440\u0438\u0439 \u043e\u0434\u043d\u043e\u0433\u043e \u0438\u0437 \u0447\u0438\u0442\u0430\u0442\u0435\u043b\u0435\u0439 \u043d\u0430\u0442\u043e\u043b\u043a\u043d\u0443\u043b \u043d\u0430 \u0438\u0434\u0435\u044e. \u0418 \u0442\u0430\u043a: \u043a\u0430\u043a \u043d\u0430 RB952Ui-5ac2nD \u0441\u0434\u0435\u043b\u0430\u0442\u044c \u0431\u043e\u043b\u0435\u0435 \u043e\u0434\u043d\u043e\u0439 \u0433\u0440\u0443\u043f\u043f\u044b \u043a\u043e\u043c\u043c\u0443\u0442\u0430\u0446\u0438\u0438?<br \/>  <a name=\"habracut\"><\/a>  <\/p>\n<h4><b>\u041e\u0431\u0445\u043e\u0434\u0438\u043c \u043e\u0433\u0440\u0430\u043d\u0438\u0447\u0435\u043d\u0438\u0435 \u0447\u0438\u043f\u0430 Atheros8227 (\u0434\u0443\u043c\u0430\u044e \u0441 \u0434\u0440\u0443\u0433\u0438\u043c\u0438 \u043c\u043e\u0436\u043d\u043e \u0430\u043d\u0430\u043b\u043e\u0433\u0438\u0447\u043d\u043e)<\/b><\/h4>\n<p>  \u0418\u0434\u0435\u044f \u0442\u0443\u0442 \u043f\u0440\u043e\u0441\u0442\u0430\u044f, \u0441\u043f\u0430\u0441\u0438\u0431\u043e <a href=\"https:\/\/habrahabr.ru\/users\/Ivan_83\/\"><b>Ivan_83<\/b><\/a> \u0437\u0430 \u0438\u0434\u0435\u044e (\u0438\u043c\u0435\u043d\u043d\u043e \u0435\u0433\u043e <a href=\"https:\/\/habrahabr.ru\/post\/313248\/#comment_9872712\">\u043a\u043e\u043c\u043c\u0435\u043d\u0442\u0430\u0440\u0438\u0439<\/a> \u0434\u0430\u043b \u043d\u0430\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u0435 \u043c\u044b\u0441\u043b\u0438).<\/p>\n<p>  \u0421\u0444\u043e\u0440\u043c\u0443\u043b\u0438\u0440\u0443\u0435\u043c \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u0443: \u0435\u0441\u0442\u044c \u0434\u043e\u043c\u0430\u0448\u043d\u0438\u0439 \u0438\u043d\u0442\u0435\u0440\u043d\u0435\u0442 \u0441 \u0442\u0435\u043b\u0435\u0432\u0438\u0434\u0435\u043d\u0438\u0435\u043c, \u043d\u043e \u043d\u0430 \u043f\u0440\u0438\u0441\u0442\u0430\u0432\u043a\u0443 \u043d\u0443\u0436\u043d\u043e \u0434\u0430\u0442\u044c \u043a\u0430\u0431\u0435\u043b\u044c \u043d\u0435 \u043f\u043e\u0441\u043b\u0435 \u043d\u0430\u0448\u0435\u0433\u043e NAT, \u0430 \u0434\u043e \u043d\u0435\u0433\u043e. \u041e\u0431\u044b\u0447\u043d\u043e \u043f\u0440\u043e\u0432\u0430\u0439\u0434\u0435\u0440 \u043f\u0440\u0435\u0434\u043b\u0430\u0433\u0430\u0435\u0442 \u043c\u0430\u043b\u0435\u043d\u044c\u043a\u0438\u0439 \u043a\u043e\u043c\u043c\u0443\u0442\u0430\u0442\u043e\u0440 \u0434\u043e \u0432\u0430\u0448\u0435\u0433\u043e \u0440\u043e\u0443\u0442\u0435\u0440\u0430 (\u043a\u0430\u043a\u043e\u0439 \u043a\u043e\u0448\u043c\u0430\u0440, \u0441\u0442\u043e\u043b\u044c\u043a\u043e \u043d\u0435\u043d\u0443\u0436\u043d\u044b\u0445 \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432!), \u0438\u043b\u0438 \u0435\u0441\u043b\u0438 \u0440\u043e\u0443\u0442\u0435\u0440 \u0443\u043c\u0435\u0435\u0442, \u0432\u044b \u0441\u043e\u0437\u0434\u0430\u0435\u0442\u0435 \u043d\u0430 \u043d\u0435\u043c \u043c\u043e\u0441\u0442 \u0438\u0437 \u0434\u0432\u0443\u0445 \u043f\u043e\u0440\u0442\u043e\u0432, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043e\u0442\u0434\u0430\u0435\u0442\u0435 \u0432\u043d\u0435\u0448\u043d\u0435\u0439 \u0441\u0435\u0442\u0438 (\u0432\u0445\u043e\u0434\u044f\u0449\u0438\u0439 \u043a\u0430\u0431\u0435\u043b\u044c+\u043f\u0440\u0438\u0441\u0442\u0430\u0432\u043a\u0430 \u0422\u0412). \u041d\u043e, \u0432\u044b\u0448\u0435\u043e\u0437\u043d\u0430\u0447\u0435\u043d\u043d\u044b\u0439 Mikrotik \u043d\u0435 \u0443\u043c\u0435\u0435\u0442 \u0434\u0432\u0435 \u0433\u0440\u0443\u043f\u043f\u044b \u043a\u043e\u043c\u043c\u0443\u0442\u0430\u0446\u0438\u0438, \u0438 \u043f\u043e\u0442\u043e\u043c\u0443, \u043f\u0440\u0438\u0445\u043e\u0434\u0438\u0442\u0441\u044f \u0434\u0435\u043b\u0430\u0442\u044c \u0441\u043e\u0444\u0442\u043e\u0432\u044b\u0439 bridge (\u0430 \u0445\u043e\u0447\u0435\u0442\u0441\u044f \u043e\u0442\u0434\u0430\u0442\u044c \u044d\u0442\u043e \u0432 \u00ab\u0436\u0435\u043b\u0435\u0437\u043e\u00bb).<\/p>\n<p>  \u0422\u0435\u043f\u0435\u0440\u044c \u0440\u0435\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u044f:<br \/>  \u041e\u0431\u044a\u0435\u0434\u0438\u043d\u0438\u043c \u0432\u0441\u0435 \u043f\u043e\u0440\u0442\u044b \u0432 \u0433\u0440\u0443\u043f\u043f\u0443 \u043a\u043e\u043c\u043c\u0443\u0442\u0430\u0446\u0438\u0438 (\u0432\u044b\u0441\u0442\u0430\u0432\u0438\u043c \u043c\u0430\u0441\u0442\u0435\u0440 \u043f\u043e\u0440\u0442):  <\/p>\n<pre><code class=\"bash\">\/interface ethernet set ether1 master-port=ether2-master <\/code><\/pre>\n<p>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/files\/32a\/ab9\/4e8\/32aab94e878b4b89a5a9e48bb5a34a18.PNG\" width=\"738\"\/><\/p>\n<p>  \u0410\u043d\u0430\u043b\u043e\u0433\u0438\u0447\u043d\u043e \u0434\u043b\u044f \u0432\u0441\u0435\u0445 \u043e\u0441\u0442\u0430\u043b\u044c\u043d\u044b\u0445.<\/p>\n<p>  \u0422\u0435\u043f\u0435\u0440\u044c \u0432\u043e\u0437\u044c\u043c\u0435\u043c, \u0438 \u0441\u043e\u0437\u0434\u0430\u0434\u0438\u043c \u0434\u0432\u0430 VLAN, \u043e\u0434\u0438\u043d \u0434\u043b\u044f \u0432\u043d\u0435\u0448\u043d\u0435\u0439 \u0441\u0435\u0442\u0438 (\u043a \u043f\u0440\u0438\u043c\u0435\u0440\u0443 VID:1), \u0438 \u0434\u043b\u044f \u0432\u043d\u0443\u0442\u0440\u0435\u043d\u043d\u0435\u0439 (VID:2):  <\/p>\n<pre><code class=\"bash\">\/interface vlan add interface=ether2-master \\     name=ext vlan-id=1 add interface=ether2-master \\    name=V_LAN vlan-id=2 <\/code><\/pre>\n<p>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/files\/754\/987\/52a\/75498752a92643d18da8994af4b60fa5.PNG\"\/><\/p>\n<p>  \u0418 \u043d\u0430 \u0447\u0438\u043f\u0435 \u043a\u043e\u043c\u043c\u0443\u0442\u0430\u0446\u0438\u0438 \u00ab\u043e\u0431\u044a\u0435\u0434\u0438\u043d\u0438\u043c\u00bb \u043f\u043e\u0440\u0442\u044b \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e VLAN. \u0412\u0441\u0435 \u043f\u043e\u0440\u0442\u044b \u0431\u0443\u0434\u0443\u0442 \u0440\u0430\u0441\u0442\u0435\u0433\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u044b (\u043a\u0440\u043e\u043c\u0435 CPU), \u0438 VLAN \u043f\u043e \u0443\u043c\u043e\u043b\u0447\u0430\u043d\u0438\u044e \u0431\u0443\u0434\u0435\u0442 \u0442\u043e\u0442, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0443\u0435\u0442 \u043d\u0430\u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044e \u043f\u043e\u0440\u0442\u0430 (\u0434\u043b\u044f \u0432\u043d\u0435\u0448\u043d\u0435\u0439 \u0441\u0435\u0442\u0438 1, \u0434\u043b\u044f \u0432\u043d\u0443\u0442\u0440\u0435\u043d\u043d\u0435\u0439 2):  <\/p>\n<pre><code class=\"bash\">\/interface ethernet switch port set ether1 default-vlan-id=1 vlan-header=always-strip vlan-mode=secure set ether2-master default-vlan-id=1 vlan-header=always-strip vlan-mode=secure set ether3 default-vlan-id=2 vlan-header=always-strip vlan-mode=secure set ether4 default-vlan-id=2 vlan-header=always-strip vlan-mode=secure set ether5 default-vlan-id=2 vlan-header=always-strip vlan-mode=secure set switch1-cpu default-vlan-id=2 vlan-header=add-if-missing vlan-mode=secure <\/code><\/pre>\n<p>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/files\/797\/03e\/448\/79703e44814846dba049b42a82430a2d.PNG\"\/><\/p>\n<p>  \u0422\u0435\u043f\u0435\u0440\u044c \u0441\u043e\u0437\u0434\u0430\u0435\u043c \u0442\u0430\u0431\u043b\u0438\u0446\u0443 VLAN:  <\/p>\n<pre><code class=\"bash\">\/interface ethernet switch vlan add ports=ether1,ether2-master,ether3,ether4,ether5,switch1-cpu switch=switch1 vlan-id=1 add ports=ether1,ether2-master,ether3,ether4,ether5,switch1-cpu switch=switch1 vlan-id=2 <\/code><\/pre>\n<p>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/files\/5e4\/f95\/da5\/5e4f95da5a5049fca23627a3f49b0859.PNG\"\/><br \/>  \u0412\u0441\u0435, \u0442\u0435\u043f\u0435\u0440\u044c \u0447\u0438\u043f \u043a\u043e\u043c\u043c\u0443\u0442\u0430\u0446\u0438\u0438 \u0441\u0434\u0435\u043b\u0430\u0435\u0442 \u043d\u0443\u0436\u043d\u0443\u044e \u043d\u0430\u043c \u0440\u0430\u0431\u043e\u0442\u0443.<br \/> \u0441\u0441\u044b\u043b\u043a\u0430 \u043d\u0430 \u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b \u0441\u0442\u0430\u0442\u044c\u0438 <a href=\"https:\/\/habrahabr.ru\/post\/313702\/\"> https:\/\/habrahabr.ru\/post\/313702\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u041c\u043e\u044f <a href=\"https:\/\/habrahabr.ru\/post\/313248\/\">\u043f\u0440\u043e\u0448\u043b\u0430\u044f \u0441\u0442\u0430\u0442\u044c\u044f<\/a> \u043f\u0440\u043e switch chip \u043d\u0430 Mikrotik \u0432\u044b\u0437\u0432\u0430\u043b\u0430 \u043d\u0435\u043e\u0434\u043d\u043e\u0437\u043d\u0430\u0447\u043d\u0443\u044e \u0440\u0435\u0430\u043a\u0446\u0438\u044e, \u0430 \u043a\u043e\u043c\u043c\u0435\u043d\u0442\u0430\u0440\u0438\u0439 \u043e\u0434\u043d\u043e\u0433\u043e \u0438\u0437 \u0447\u0438\u0442\u0430\u0442\u0435\u043b\u0435\u0439 \u043d\u0430\u0442\u043e\u043b\u043a\u043d\u0443\u043b \u043d\u0430 \u0438\u0434\u0435\u044e. \u0418 \u0442\u0430\u043a: \u043a\u0430\u043a \u043d\u0430 RB952Ui-5ac2nD \u0441\u0434\u0435\u043b\u0430\u0442\u044c \u0431\u043e\u043b\u0435\u0435 \u043e\u0434\u043d\u043e\u0439 \u0433\u0440\u0443\u043f\u043f\u044b \u043a\u043e\u043c\u043c\u0443\u0442\u0430\u0446\u0438\u0438?  <\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[],"tags":[],"class_list":["post-280007","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/280007","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=280007"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/280007\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=280007"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=280007"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=280007"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}