{"id":242,"date":"2008-11-26T11:58:18","date_gmt":"2008-11-26T07:58:18","guid":{"rendered":"http:\/\/www.unixpin.com\/wordpress\/?p=242"},"modified":"2009-11-10T15:22:02","modified_gmt":"2009-11-10T12:22:02","slug":"solaris-ipmp","status":"publish","type":"post","link":"https:\/\/www.unixpin.com\/?p=242","title":{"rendered":"IPMP \u0431\u0435\u0437 \u0433\u043e\u043b\u043e\u0432\u043d\u043e\u0439 \u0431\u043e\u043b\u0438"},"content":{"rendered":"<p>\u0414\u043b\u044f \u043f\u043e\u0432\u044b\u0448\u0435\u043d\u0438\u044f \u043d\u0430\u0434\u0435\u0436\u043d\u043e\u0441\u0442\u0438 \u0441\u0435\u0442\u0435\u0432\u044b\u0445 \u0441\u043e\u0435\u0434\u0438\u043d\u0435\u043d\u0438\u0439 \u0432 Solaris \u043c\u043e\u0436\u043d\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c <a href=\"https:\/\/www.unixpin.com\/2008\/11\/25\/link-aggregation\/\" target=\"_blank\">link aggregations<\/a> \u0438\u043b\u0438 IPMP. \u041d\u0438\u0436\u0435 \u043f\u043e \u0442\u0435\u043a\u0441\u0442\u0443 &#8212; \u0448\u043f\u0430\u0440\u0433\u0430\u043b\u043a\u0430 \u043f\u043e IPMP.<br \/>\n<!--more--><br \/>\n\u0415\u0441\u0442\u044c \u0434\u0432\u0430 \u0432\u0430\u0440\u0438\u0430\u043d\u0442\u0430 \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u0438\u044f \u0441\u0435\u0442\u0435\u0432\u043e\u0433\u043e \u0441\u0431\u043e\u044f &#8212; Link-based  \u0438 Probe-based. Link-based  \u043f\u0440\u043e\u0441\u0442\u043e \u043f\u0440\u043e\u0432\u0435\u0440\u044f\u0435\u0442 &#8212; \u0435\u0441\u0442\u044c \u043b\u0438\u043d\u043a \u0438\u043b\u0438 \u043d\u0435\u0442 (\u0433\u043e\u0440\u0438\u0442 \u043b\u0430\u043c\u043f\u043e\u0447\u043a\u0430 \u0432 \u0441\u0435\u0442\u0435\u0432\u0443\u0445\u0435 \u0438\u043b\u0438 \u043d\u0435\u0442 :), Probe-based \u043f\u0440\u043e\u0432\u0435\u0440\u044f\u0435\u0442 \u0440\u0430\u0431\u043e\u0442\u0443 \u0441\u0435\u0442\u0435\u0432\u044b\u0445 \u0441\u043b\u0443\u0436\u0431 &#8212; \u043f\u0438\u043d\u0433\u0443\u0435\u0442 \u0445\u043e\u0441\u0442 (\u0438\u043b\u0438 \u0445\u043e\u0441\u0442\u044b) \u0432 \u0441\u0435\u0442\u0438.<\/p>\n<p><strong>Link-based<\/strong><br \/>\n<code># cat  \/etc\/hostname.ce0<br \/>\n192.168.10.10 netmask + broadcast + group ipmp0 up<br \/>\n# cat \/etc\/hostname.ce1<br \/>\ngroup ipmp0 up<\/code><\/p>\n<p><strong>Probe-based<\/strong><br \/>\n\u041a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u044f active-active (\u0442\u0440\u0435\u0431\u0443\u0435\u0442\u0441\u044f 2 \u043e\u0441\u043d\u043e\u0432\u043d\u044b\u0445 ip-\u0430\u0434\u0440\u0435\u0441\u0430 \u0438 2 \u0442\u0435\u0441\u0442\u043e\u0432\u044b\u0445 )<br \/>\n<code><br \/>\n# cat \/etc\/hostname.hme0<br \/>\n192.168.85.19 netmask + broadcast + group ipmpgroup up \taddif 192.168.85.21 deprecated -failover netmask + broadcast + up<br \/>\n# cat \/etc\/hostname.hme1<br \/>\n192.168.85.20 netmask + broadcast + group ipmpgroup up \taddif 192.168.85.22 deprecated -failover netmask + broadcast + up<br \/>\n<\/code><\/p>\n<p>\u041a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u044f active-standby (\u0442\u0440\u0435\u0431\u0443\u0435\u0442\u0441\u044f 1 \u043e\u0441\u043d\u043e\u0432\u043d\u043e\u0439 ip-\u0430\u0434\u0440\u0435\u0441\u0430 \u0438 2 \u0442\u0435\u0441\u0442\u043e\u0432\u044b\u0445 )<br \/>\n<code><br \/>\n# cat \/etc\/hostname.hme0<br \/>\n19.16.85.19 netmask + broadcast + group test up addif 19.16.85.21 deprecated -failover netmask + broadcast + up<br \/>\n# cat \/etc\/hostname.hme1<br \/>\n19.16.85.22 netmask + broadcast + deprecated group test -failover standby up <\/code><\/p>\n<p>\u041f\u043e \u0443\u043c\u043e\u043b\u0447\u0430\u043d\u0438\u044e, IPMP \u043f\u0438\u043d\u0433\u0443\u0435\u0442 &#171;\u0440\u043e\u0443\u0442\u0435\u0440 \u043f\u043e \u0443\u043c\u043e\u043b\u0447\u0430\u043d\u0438\u044e&#187;. \u0414\u043b\u044f \u043d\u0430\u0434\u0435\u0436\u043d\u043e\u0441\u0442\u0438 \u043c\u043e\u0436\u043d\u043e \u0434\u043e\u0431\u0430\u0432\u0438\u0442\u044c \u0441\u043a\u0440\u0438\u043f\u0442, \u0432 \u043a\u043e\u0442\u043e\u0440\u043e\u043c \u0431\u0443\u0434\u0443\u0442 \u043f\u0440\u043e\u043f\u0438\u0441\u0430\u043d\u044b \u0441\u0442\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u0438\u0435 IP-\u0448\u043d\u0438\u043a\u0438, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0441\u043b\u0435\u0434\u0443\u0435\u0442 \u043f\u0438\u043d\u0433\u043e\u0432\u0430\u0442\u044c (\u043e\u0431\u044b\u0447\u043d\u043e \u044d\u0442\u043e \u043c\u0430\u0440\u0448\u0440\u0443\u0442\u0438\u0437\u0430\u0442\u043e\u0440\u044b, \u043a\u043e\u043c\u043c\u0443\u0442\u0430\u0442\u043e\u0440\u044b \u0438\u0442\u0434):<\/p>\n<p><code>cat &lt; &lt; EOF &gt;  \/etc\/init.d\/ipmp.targets<br \/>\n#!\/bin\/sh<br \/>\nTARGETS=\"192.168.85.117 192.168.85.127 192.168.85.137\"<br \/>\ncase \"$1\" in<br \/>\n'start')<br \/>\n\/usr\/bin\/echo \"Adding static routes for use as IPMP targets\"<br \/>\nfor target in $TARGETS; do<br \/>\n\/usr\/sbin\/route add -host $target $target<br \/>\ndone<br \/>\n;;<br \/>\n'stop')<br \/>\n\/usr\/bin\/echo \"Removing static routes for use as IPMP targets\"<br \/>\nfor target in $TARGETS; do<br \/>\n\/usr\/sbin\/route delete -host $target $target<br \/>\ndone<br \/>\n;;<br \/>\nesac<br \/>\nEOF<br \/>\nchmod 744 \/etc\/init.d\/ipmp.targets<br \/>\nchown root:sys \/etc\/init.d\/ipmp.targets<br \/>\nln \/etc\/init.d\/ipmp.targets \/etc\/rc2.d\/S70ipmp.targets<\/code><\/p>\n<p>\u041f\u0440\u043e\u0432\u0435\u0440\u0438\u0442\u044c \u0440\u0430\u0431\u043e\u0442\u043e\u0441\u043f\u043e\u0441\u043e\u0431\u043d\u043e\u0441\u0442\u044c IPMP \u043c\u043e\u0436\u043d\u043e \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e \u043a\u043e\u043c\u0430\u043d\u0434\u044b <a href=\"http:\/\/docs.sun.com\/app\/docs\/doc\/816-0211\/6m6nc66s8?a=view\" target=\"_blank\">if_mpdadm<\/a><br \/>\n<code># if_mpdadm -d hme0<br \/>\n# ifconfig -a<br \/>\n# if_mpdadm -r hme0<br \/>\n<\/code><\/p>\n<p>UPDATE: 2009.11.10 \u0414\u043e\u0431\u0430\u0432\u043b\u0435\u043d \u0430\u0431\u0437\u0430\u0446 \u043e Link-based failure detection<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u0414\u043b\u044f \u043f\u043e\u0432\u044b\u0448\u0435\u043d\u0438\u044f \u043d\u0430\u0434\u0435\u0436\u043d\u043e\u0441\u0442\u0438 \u0441\u0435\u0442\u0435\u0432\u044b\u0445 \u0441\u043e\u0435\u0434\u0438\u043d\u0435\u043d\u0438\u0439 \u0432 Solaris \u043c\u043e\u0436\u043d\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c link aggregations \u0438\u043b\u0438 IPMP. \u041d\u0438\u0436\u0435 \u043f\u043e \u0442\u0435\u043a\u0441\u0442\u0443 &#8212; \u0448\u043f\u0430\u0440\u0433\u0430\u043b\u043a\u0430 \u043f\u043e IPMP.<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3,4,372],"tags":[26,323,33,324,322,233,268,222,116,27,259,325,227,319,326],"class_list":["post-242","post","type-post","status-publish","format-standard","hentry","category-sun","category-solaris","category-372","tag-hardware-sun","tag-if_mpadm","tag-ifconfig","tag-ip","tag-ipmp","tag-link","tag-netmask","tag-network","tag-solaris-10","tag-unix-solaris","tag-259","tag-325","tag-227","tag-319","tag-326"],"_links":{"self":[{"href":"https:\/\/www.unixpin.com\/index.php?rest_route=\/wp\/v2\/posts\/242","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.unixpin.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.unixpin.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.unixpin.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.unixpin.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=242"}],"version-history":[{"count":9,"href":"https:\/\/www.unixpin.com\/index.php?rest_route=\/wp\/v2\/posts\/242\/revisions"}],"predecessor-version":[{"id":543,"href":"https:\/\/www.unixpin.com\/index.php?rest_route=\/wp\/v2\/posts\/242\/revisions\/543"}],"wp:attachment":[{"href":"https:\/\/www.unixpin.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=242"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.unixpin.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=242"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.unixpin.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=242"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}