{"id":15,"date":"2008-05-26T15:57:08","date_gmt":"2008-05-26T11:57:08","guid":{"rendered":"http:\/\/www.unixpin.com\/wordpress\/?p=15"},"modified":"2010-06-30T15:35:06","modified_gmt":"2010-06-30T11:35:06","slug":"virtual-lan-interface","status":"publish","type":"post","link":"https:\/\/www.unixpin.com\/?p=15","title":{"rendered":"\u0412\u0438\u0440\u0442\u0443\u0430\u043b\u044c\u043d\u044b\u0439 \u0441\u0435\u0442\u0435\u0432\u043e\u0439 \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441 \u0432 *nix-\u0430\u0445"},"content":{"rendered":"<p>[ <a href=\"#item_solaris\">Solaris<\/a> ] [ <a href=\"#item_linux\">Linux<\/a> ] [ <a href=\"#item_hp-ux\">HP-UX<\/a> ] [ <a href=\"#item_tru64\">Tru64<\/a> ]<\/p>\n<table border=\"1\">\n<tbody>\n<tr valign=\"top\" bgcolor=\"#e6e6fa\">\n<td colspan=\"2\"><a name=\"item_solaris\"><\/a><\/p>\n<h3>Solaris<\/h3>\n<\/td>\n<\/tr>\n<tr valign=\"top\" bgcolor=\"#e6e6fa\">\n<td>\u0421\u043f\u0438\u0441\u043e\u043a \u0432\u0441\u0435\u0445 \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441\u043e\u0432<\/td>\n<td>ifconfig -a<\/td>\n<\/tr>\n<tr valign=\"top\" bgcolor=\"#e6e6fa\">\n<td>\u0414\u043e\u0431\u0430\u0432\u0438\u0442\u044c &#171;\u0432\u0438\u0440\u0442\u0443\u0430\u043b\u044c\u043d\u044b\u0439&#187; \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441 (alias)<\/td>\n<td>ifconfig hme0:1 plumb<br \/>\nifconfig hme0:1 192.168.100.100 \\ netmask + broadcast + up<\/td>\n<\/tr>\n<tr valign=\"top\" bgcolor=\"#e6e6fa\">\n<td>\u0423\u0434\u0430\u043b\u0438\u0442\u044c &#171;\u0432\u0438\u0440\u0442\u0443\u0430\u043b\u044c\u043d\u044b\u0439&#187; \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441 (alias)<\/td>\n<td>ifconfig hme0:1 unplumb<\/td>\n<\/tr>\n<tr valign=\"top\" bgcolor=\"#e6e6fa\">\n<td>\u0412\u043e\u0441\u0441\u0442\u0430\u043d\u043e\u0432\u043b\u0435\u043d\u0438\u0435 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u043e\u0432 \u043f\u043e\u0441\u043b\u0435 \u043f\u0435\u0440\u0435\u0437\u0430\u0433\u0440\u0443\u0437\u043a\u0438<\/td>\n<td>echo &#8216;192.168.100.100 myhostname1&#8217;\\ &gt;&gt; \/etc\/hosts<br \/>\necho &#8216;myhostname1&#8217; &gt; \/etc\/hostname.hme0:1<\/td>\n<\/tr>\n<tr valign=\"top\" bgcolor=\"#e6e6fa\">\n<td>\u041c\u0430\u0441\u043a\u0430 \u043f\u043e\u0434\u0441\u0435\u0442\u0438<\/td>\n<td>cat \/etc\/netmasks<\/td>\n<\/tr>\n<tr valign=\"top\" bgcolor=\"#e6e6fa\">\n<td>\u0420\u043e\u0443\u0442\u0435\u0440 \u043f\u043e \u0443\u043c\u043e\u043b\u0447\u0430\u043d\u0438\u044e<\/td>\n<td>cat \/etc\/defaultrouter<\/td>\n<\/tr>\n<tr valign=\"top\">\n<td colspan=\"2\"><a name=\"item_linux\"><\/a><\/p>\n<h3>Linux<\/h3>\n<\/td>\n<\/tr>\n<tr valign=\"top\">\n<td>\u0421\u043f\u0438\u0441\u043e\u043a \u0432\u0441\u0435\u0445 \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441\u043e\u0432<\/td>\n<td>ifconfig -a<\/td>\n<\/tr>\n<tr valign=\"top\">\n<td>\u0414\u043e\u0431\u0430\u0432\u0438\u0442\u044c &#171;\u0432\u0438\u0440\u0442\u0443\u0430\u043b\u044c\u043d\u044b\u0439&#187; \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441 (alias)<\/td>\n<td>ifconfig eth0:1 192.168.100.100 up<br \/>\nifconfig eth0:1 192.168.255.254 \\<br \/>\nnetmask 255.255.255.0 broadcast 192.168.255.255 up<\/td>\n<\/tr>\n<tr valign=\"top\">\n<td>\u0423\u0434\u0430\u043b\u0438\u0442\u044c &#171;\u0432\u0438\u0440\u0442\u0443\u0430\u043b\u044c\u043d\u044b\u0439&#187; \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441 (alias)<\/td>\n<td>ifconfig eth0:1 down<\/td>\n<\/tr>\n<tr valign=\"top\">\n<td>\u0412\u043e\u0441\u0441\u0442\u0430\u043d\u043e\u0432\u043b\u0435\u043d\u0438\u0435 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u043e\u0432 \u043f\u043e\u0441\u043b\u0435 \u043f\u0435\u0440\u0435\u0437\u0430\u0433\u0440\u0443\u0437\u043a\u0438<\/td>\n<td>cd \/etc\/sysconfig\/network-scripts<br \/>\ncp ifcfg-eth0 ifcfg-eth0:1<br \/>\nvi ifcfg-eth0:1<\/td>\n<\/tr>\n<tr valign=\"top\">\n<td>\u041c\u0430\u0441\u043a\u0430 \u043f\u043e\u0434\u0441\u0435\u0442\u0438<\/td>\n<td>\u0423\u043a\u0430\u0437\u044b\u0432\u0430\u0435\u0442\u0441\u044f \u0432 \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0430\u0445 \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441\u0430<br \/>\ncat \/etc\/sysconfig\/network-scripts\/ifcfg-eth0<\/td>\n<\/tr>\n<tr valign=\"top\">\n<td>\u0420\u043e\u0443\u0442\u0435\u0440 \u043f\u043e \u0443\u043c\u043e\u043b\u0447\u0430\u043d\u0438\u044e<\/td>\n<td>cat \/etc\/sysconfig\/network<\/td>\n<\/tr>\n<tr valign=\"top\" bgcolor=\"#e6e6fa\">\n<td colspan=\"2\"><a name=\"item_hp-ux\"><\/a><\/p>\n<h3>HP-UX<\/h3>\n<\/td>\n<\/tr>\n<tr valign=\"top\" bgcolor=\"#e6e6fa\">\n<td>\u0421\u043f\u0438\u0441\u043e\u043a \u0432\u0441\u0435\u0445 \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441\u043e\u0432<\/td>\n<td>netstat -in<br \/>\nifconfig lan0:30<br \/>\n\u0438\u043b\u0438 \u0430\u043d\u0430\u043b\u043e\u0433 &#8216;ifconfig -a&#8217;:<br \/>\n# netstat -in | tail +2 | awk &#8216;{print &#171;ifconfig &#171;$1}&#8217; | sh<\/td>\n<\/tr>\n<tr valign=\"top\" bgcolor=\"#e6e6fa\">\n<td>\u0414\u043e\u0431\u0430\u0432\u0438\u0442\u044c &#171;\u0432\u0438\u0440\u0442\u0443\u0430\u043b\u044c\u043d\u044b\u0439&#187; \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441 (alias)<\/td>\n<td>ifconfig lan0:1 plumb<br \/>\nifconfig lan0:1 192.168.100.100 up<\/td>\n<\/tr>\n<tr valign=\"top\" bgcolor=\"#e6e6fa\">\n<td>\u0423\u0434\u0430\u043b\u0438\u0442\u044c &#171;\u0432\u0438\u0440\u0442\u0443\u0430\u043b\u044c\u043d\u044b\u0439&#187; \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441 (alias)<\/td>\n<td>ifconfig lan0:1 down<br \/>\nifconfig lan0:1 0.0.0.0<\/td>\n<\/tr>\n<tr valign=\"top\" bgcolor=\"#e6e6fa\">\n<td>\u0412\u043e\u0441\u0441\u0442\u0430\u043d\u043e\u0432\u043b\u0435\u043d\u0438\u0435 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u043e\u0432 \u043f\u043e\u0441\u043b\u0435 \u043f\u0435\u0440\u0435\u0437\u0430\u0433\u0440\u0443\u0437\u043a\u0438<\/td>\n<td>cat \/etc\/rc.config.d\/netconf<\/td>\n<\/tr>\n<tr valign=\"top\" bgcolor=\"#e6e6fa\">\n<td>\u041c\u0430\u0441\u043a\u0430 \u043f\u043e\u0434\u0441\u0435\u0442\u0438<\/td>\n<td>cat \/etc\/rc.config.d\/netconf<\/td>\n<\/tr>\n<tr valign=\"top\" bgcolor=\"#e6e6fa\">\n<td>\u0420\u043e\u0443\u0442\u0435\u0440 \u043f\u043e \u0443\u043c\u043e\u043b\u0447\u0430\u043d\u0438\u044e<\/td>\n<td>cat \/etc\/rc.config.d\/netconf<\/td>\n<\/tr>\n<tr valign=\"top\">\n<td colspan=\"2\"><a name=\"item_tru64\"><\/a><\/p>\n<h3>Tru64<\/h3>\n<\/td>\n<\/tr>\n<tr valign=\"top\">\n<td>\u0421\u043f\u0438\u0441\u043e\u043a \u0432\u0441\u0435\u0445 \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441\u043e\u0432<\/td>\n<td>ifconfig -a ifconfig -l<\/td>\n<\/tr>\n<tr valign=\"top\">\n<td>\u0414\u043e\u0431\u0430\u0432\u0438\u0442\u044c &#171;\u0432\u0438\u0440\u0442\u0443\u0430\u043b\u044c\u043d\u044b\u0439&#187; \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441 (alias)<\/td>\n<td>ifconfig ee0 alias 192.168.196.196\/24<\/td>\n<\/tr>\n<tr valign=\"top\">\n<td>\u0423\u0434\u0430\u043b\u0438\u0442\u044c &#171;\u0432\u0438\u0440\u0442\u0443\u0430\u043b\u044c\u043d\u044b\u0439&#187; \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441 (alias)<\/td>\n<td>ifconfig ee0 -alias 192.168.196.196 abort<\/td>\n<\/tr>\n<tr valign=\"top\">\n<td>\u0412\u043e\u0441\u0441\u0442\u0430\u043d\u043e\u0432\u043b\u0435\u043d\u0438\u0435 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u043e\u0432 \u043f\u043e\u0441\u043b\u0435 \u043f\u0435\u0440\u0435\u0437\u0430\u0433\u0440\u0443\u0437\u043a\u0438<\/td>\n<td>echo &#8216;ifconfig ee0 alias 192.168.196.196\/24&#8217;\\<br \/>\n&gt;&gt; \/etc\/inet.local<\/td>\n<\/tr>\n<tr valign=\"top\">\n<td>\u041c\u0430\u0441\u043a\u0430 \u043f\u043e\u0434\u0441\u0435\u0442\u0438<\/td>\n<td>cat \/etc\/rc.config<\/td>\n<\/tr>\n<tr valign=\"top\">\n<td>\u0420\u043e\u0443\u0442\u0435\u0440 \u043f\u043e \u0443\u043c\u043e\u043b\u0447\u0430\u043d\u0438\u044e<\/td>\n<td>cat \/etc\/routes<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>[ <a href=\"#item_solaris\">Solaris<\/a> ] [ <a href=\"#item_linux\">Linux<\/a> ] [ <a href=\"#item_hp-ux\">HP-UX<\/a> ] [ <a href=\"#item_tru64\">Tru64<\/a> ]<\/p>\n","protected":false},"excerpt":{"rendered":"<p>[ Solaris ] [ Linux ] [ HP-UX ] [ Tru64 ] Solaris \u0421\u043f\u0438\u0441\u043e\u043a \u0432\u0441\u0435\u0445 \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441\u043e\u0432 ifconfig -a \u0414\u043e\u0431\u0430\u0432\u0438\u0442\u044c &#171;\u0432\u0438\u0440\u0442\u0443\u0430\u043b\u044c\u043d\u044b\u0439&#187; \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441 (alias) ifconfig hme0:1 plumb ifconfig hme0:1 192.168.100.100 \\ netmask + broadcast + up \u0423\u0434\u0430\u043b\u0438\u0442\u044c &#171;\u0432\u0438\u0440\u0442\u0443\u0430\u043b\u044c\u043d\u044b\u0439&#187; \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441 (alias) ifconfig hme0:1 unplumb \u0412\u043e\u0441\u0441\u0442\u0430\u043d\u043e\u0432\u043b\u0435\u043d\u0438\u0435 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u043e\u0432 \u043f\u043e\u0441\u043b\u0435 \u043f\u0435\u0440\u0435\u0437\u0430\u0433\u0440\u0443\u0437\u043a\u0438 echo &#8216;192.168.100.100 myhostname1&#8217;\\ &gt;&gt; \/etc\/hosts echo &#8216;myhostname1&#8217; &gt; \/etc\/hostname.hme0:1 \u041c\u0430\u0441\u043a\u0430 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[21,3,24,25,4,93,372],"tags":[881,34,33,223,267,268,222,880,262,261,35,1020,36,27,257,882,258,260,259,266,265,263,264,227,878,879],"class_list":["post-15","post","type-post","status-publish","format-standard","hentry","category-hp","category-sun","category-hpux","category-linux","category-solaris","category-unix-tru64","category-372","tag-alias","tag-hp-ux","tag-ifconfig","tag-interface","tag-mask","tag-netmask","tag-network","tag-route","tag-router","tag-routing","tag-tru64","tag-hpux","tag-unix-linux","tag-unix-solaris","tag-virtual","tag-882","tag-258","tag-260","tag-259","tag-266","tag-265","tag-263","tag-264","tag-227","tag-878","tag-879"],"_links":{"self":[{"href":"https:\/\/www.unixpin.com\/index.php?rest_route=\/wp\/v2\/posts\/15","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=15"}],"version-history":[{"count":7,"href":"https:\/\/www.unixpin.com\/index.php?rest_route=\/wp\/v2\/posts\/15\/revisions"}],"predecessor-version":[{"id":210,"href":"https:\/\/www.unixpin.com\/index.php?rest_route=\/wp\/v2\/posts\/15\/revisions\/210"}],"wp:attachment":[{"href":"https:\/\/www.unixpin.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=15"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.unixpin.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=15"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.unixpin.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=15"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}