{"id":5555,"date":"2019-01-16T11:36:28","date_gmt":"2019-01-16T09:36:28","guid":{"rendered":"https:\/\/skeletor.org.ua\/?p=5555"},"modified":"2023-12-01T17:07:29","modified_gmt":"2023-12-01T15:07:29","slug":"solaris-alias-src-l2-l3","status":"publish","type":"post","link":"https:\/\/skeletor.org.ua\/?p=5555","title":{"rendered":"Solaris alias src L2\/L3"},"content":{"rendered":"\n<p>\u0412 <strong>Solaris <\/strong>\u0431\u043e\u043b\u044c\u0448\u043e\u0435 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \u0438\u043c\u0435\u0435\u0442 \u0442\u043e, \u043d\u0430 \u043a\u0430\u043a\u043e\u043c \u0443\u0440\u043e\u0432\u043d\u0435 \u043c\u043e\u0434\u0435\u043b\u0438 <strong>OSI <\/strong>\u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442\u0441\u044f \u043e\u0431\u044a\u0435\u043a\u0442: \u0435\u0441\u043b\u0438 \u0431\u044b \u0441\u043e\u0437\u0434\u0430\u043d \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u044b\u0439 \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441 (<strong>L2<\/strong>) \u0438 \u043d\u0430 \u043d\u0435\u0433\u043e \u043d\u0430\u0437\u043d\u0430\u0447\u0435\u043d\u044b <strong>IP <\/strong>\u0430\u043b\u0438\u0430\u0441\u044b \u0438\u043b\u0438 \u043f\u0440\u043e\u0441\u0442\u043e \u043d\u0430\u0437\u043d\u0430\u0447\u0435\u043d\u044b <strong>IP <\/strong>\u0430\u043b\u0438\u0430\u0441\u044b \u043d\u0430 \u0441\u0443\u0449\u0435\u0441\u0442\u0432\u0443\u044e\u0449\u0438\u0435 \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441\u044b.<\/p>\n\n\n<p><!--more--><\/p>\n\n\n<p class=\"has-vivid-red-color has-text-color\"><strong>L2<\/strong><\/p>\n\n\n\n<p>&nbsp;&nbsp; &nbsp; &nbsp; usesrc (IP, IPMP)<\/p>\n\n\n\n<p class=\"has-vivid-cyan-blue-color has-text-color\">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <em>Specifies&nbsp; a&nbsp; physical&nbsp; or&nbsp; virtual interface to be used for  source address selection. If the keyword none is used, then&nbsp; any&nbsp; previous selection is cleared. Default is none.<\/em><\/p>\n\n\n<pre># ipadm show-ifprop -p usesrc vrrp13\nIFNAME      PROPERTY        PROTO PERM CURRENT    PERSISTENT DEFAULT    POSSIBLE\nvrrp13      usesrc          ipv4  rw   none       --         none       --\nvrrp13      usesrc          ipv6  rw   none       --         none       --\n# ipadm set-ifprop -p usesrc=net0 -m ipv4 vrrp13\n# ipadm show-ifprop -p usesrc vrrp13\nIFNAME      PROPERTY        PROTO PERM CURRENT    PERSISTENT DEFAULT    POSSIBLE\nvrrp13      usesrc          ipv4  rw   net0       net0       none       --\nvrrp13      usesrc          ipv6  rw   none       --         none       --\n<\/pre>\n\n\n<p class=\"has-vivid-red-color has-text-color\"><strong>L3<\/strong><\/p>\n\n\n\n<p>&nbsp;&nbsp; &nbsp; &nbsp; deprecated (DHCP, Static, Addrconf, VRRP)<\/p>\n\n\n\n<p class=\"has-vivid-cyan-blue-color has-text-color\">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <em>The address should no longer used as a source address in new communications,&nbsp; but&nbsp; packets addressed to this address are processed as expected. Possible values are on or off. Default is off. This property is not supported on an address object of type dhcp.<\/em><\/p>\n\n\n<p><pre># ipadm show-addrprop -p deprecated net0\/v4\nADDROBJ     PROPERTY         PERM CURRENT         PERSISTENT      DEFAULT         POSSIBLE\nnet0\/v4     deprecated       rw   off              off              off             on,off\n# ipadm set-addrprop -p deprecated=on net0\/v4\n# ipadm show-addrprop -p deprecated net0\/v4\nADDROBJ     PROPERTY         PERM CURRENT         PERSISTENT      DEFAULT         POSSIBLE\nnet0\/v4     deprecated       rw   on              on              off             on,off\n<\/pre>\n<\/p>\n\n\n<p><strong><em><mark style=\"background-color:rgba(0, 0, 0, 0);color:#f16f07\" class=\"has-inline-color\">\u041f\u0440\u0438\u043c\u0435\u0447\u0430\u043d\u0438\u0435<\/mark><\/em><\/strong>.<\/p>\n\n\n\n<p>\u0418\u043d\u043e\u0433\u0434\u0430 \u0441\u043b\u0443\u0447\u0430\u0435\u0442\u0441\u044f, \u0447\u0442\u043e <strong>property <\/strong>\u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043b\u0435\u043d\u0430, \u043d\u043e \u043f\u043e \u0444\u0430\u043a\u0442\u0443 \u043d\u0435 \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442. <strong>Workaround <\/strong>&#8211; \u043f\u0440\u0438\u043d\u0443\u0434\u0438\u0442\u0435\u043b\u044c\u043d\u043e \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u044c \u0435\u0449\u0435 \u0440\u0430\u0437 <strong>property<\/strong><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u0412 Solaris \u0431\u043e\u043b\u044c\u0448\u043e\u0435 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \u0438\u043c\u0435\u0435\u0442 \u0442\u043e, \u043d\u0430 \u043a\u0430\u043a\u043e\u043c \u0443\u0440\u043e\u0432\u043d\u0435 \u043c\u043e\u0434\u0435\u043b\u0438 OSI \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442\u0441\u044f \u043e\u0431\u044a\u0435\u043a\u0442: \u0435\u0441\u043b\u0438 \u0431\u044b \u0441\u043e\u0437\u0434\u0430\u043d \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u044b\u0439 \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441 (L2) \u0438 \u043d\u0430 \u043d\u0435\u0433\u043e \u043d\u0430\u0437\u043d\u0430\u0447\u0435\u043d\u044b IP \u0430\u043b\u0438\u0430\u0441\u044b \u0438\u043b\u0438 \u043f\u0440\u043e\u0441\u0442\u043e \u043d\u0430\u0437\u043d\u0430\u0447\u0435\u043d\u044b IP \u0430\u043b\u0438\u0430\u0441\u044b \u043d\u0430 \u0441\u0443\u0449\u0435\u0441\u0442\u0432\u0443\u044e\u0449\u0438\u0435 \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441\u044b.<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[24],"tags":[],"class_list":["post-5555","post","type-post","status-publish","format-standard","hentry","category-solaris"],"_links":{"self":[{"href":"https:\/\/skeletor.org.ua\/index.php?rest_route=\/wp\/v2\/posts\/5555","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/skeletor.org.ua\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/skeletor.org.ua\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/skeletor.org.ua\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/skeletor.org.ua\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=5555"}],"version-history":[{"count":11,"href":"https:\/\/skeletor.org.ua\/index.php?rest_route=\/wp\/v2\/posts\/5555\/revisions"}],"predecessor-version":[{"id":6286,"href":"https:\/\/skeletor.org.ua\/index.php?rest_route=\/wp\/v2\/posts\/5555\/revisions\/6286"}],"wp:attachment":[{"href":"https:\/\/skeletor.org.ua\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=5555"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/skeletor.org.ua\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=5555"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/skeletor.org.ua\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=5555"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}