{"id":3612,"date":"2013-07-25T16:34:03","date_gmt":"2013-07-25T13:34:03","guid":{"rendered":"http:\/\/skeletor.org.ua\/?p=3612"},"modified":"2013-07-25T16:34:03","modified_gmt":"2013-07-25T13:34:03","slug":"zone-%d0%b8-exclusive-ip-%d1%87%d0%b5%d1%80%d0%b5%d0%b7-vnic","status":"publish","type":"post","link":"https:\/\/skeletor.org.ua\/?p=3612","title":{"rendered":"Zone \u0438 exclusive IP \u0447\u0435\u0440\u0435\u0437 vnic"},"content":{"rendered":"<p>\u041d\u0430\u0447\u0438\u043d\u0430\u044f \u0441 11-\u043e\u0439 \u0432\u0435\u0440\u0441\u0438\u0438 \u043f\u043e\u044f\u0432\u0438\u043b\u0430\u0441\u044c \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u044c \u0441\u043e\u0437\u0434\u0430\u0432\u0430\u0442\u044c <strong>vnic&#8217;\u044b<\/strong> \u0430\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u0438, \u043f\u0440\u0438 \u0441\u0442\u0430\u0440\u0442\u0435 \u0437\u043e\u043d\u044b, \u0442\u0435\u043c \u0441\u0430\u043c\u044b\u043c \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c <strong>exclusive IP<\/strong> \u0434\u043b\u044f \u0437\u043e\u043d\u044b. \u0412\u0441\u0451 \u044d\u0442\u043e \u0431\u043b\u0430\u0433\u043e\u0434\u0430\u0440\u044f <strong>anet<\/strong>.<\/p>\n<p>\u041e\u0442\u0440\u0435\u0434\u0430\u043a\u0442\u0438\u0440\u0443\u0435\u043c \u0441\u0432\u043e\u0439\u0441\u0442\u0432\u0430 \u0437\u043e\u043d\u044b:<\/p>\n<p><!--more--><\/p>\n<pre># zonecfg -z zone0\r\nzonecfg:zone0&gt; remove net\r\nzonecfg:zone0&gt; remove anet\r\nzonecfg:zone0&gt; add anet\r\nzonecfg:zone0:anet&gt; set linkname = net0\r\nzonecfg:zone0:anet&gt; lower-link = auto\r\nzonecfg:zone0:anet&gt; mac-address = random\r\nzonecfg:zone0:anet&gt; link-protection = mac-nospoof\r\nzonecfg:zone0:anet&gt; end\r\nzonecfg:zone0&gt; info\r\nzonename: zone0\r\nzonepath: \/zone0\r\nbrand: solaris\r\nautoboot: true\r\nbootargs: \r\nfile-mac-profile: \r\npool: \r\nlimitpriv: \r\nscheduling-class: \r\nip-type: exclusive\r\nhostid: \r\nfs-allowed: \r\nanet:\r\n        linkname: net0\r\n        lower-link: auto\r\n        allowed-address not specified\r\n        configure-allowed-address: true\r\n        defrouter not specified\r\n        allowed-dhcp-cids not specified\r\n        link-protection: mac-nospoof\r\n        mac-address: random\r\n        auto-mac-address: 2:8:20:7d:5f:44\r\n        mac-prefix not specified\r\n        mac-slot not specified\r\n        vlan-id not specified\r\n        priority not specified\r\n        rxrings not specified\r\n        txrings not specified\r\n        mtu not specified\r\n        maxbw not specified\r\n        rxfanout not specified\r\n        vsi-typeid not specified\r\n        vsi-vers not specified\r\n        vsi-mgrid not specified\r\n        etsbw-lcl not specified\r\n        cos not specified\r\n        pkey not specified\r\n        linkmode not specified\r\nzonecfg:zone0&gt; commit\r\nzonecfg:zone0&gt; exit<\/pre>\n<p>\u0422\u0435\u043f\u0435\u0440\u044c \u0441\u0442\u0430\u0440\u0442\u043e\u043d\u0451\u043c \u0437\u043e\u043d\u0443 \u0438 \u043f\u043e\u0441\u043c\u043e\u0442\u0440\u0438\u043c \u0441\u043f\u0438\u0441\u043e\u043a <strong>vnic&#8217;\u043e\u0432<\/strong>:<\/p>\n<pre># zoneadm -z zone0 boot\r\n# dladm show-vnic\r\nLINK                OVER         SPEED  MACADDRESS        MACADDRTYPE       VID\r\nzone0\/net0          net0         1000   2:8:20:7d:5f:44   random            0<\/pre>\n<p>\u0422\u0435\u043f\u0435\u0440\u044c \u043e\u0441\u0442\u0430\u043b\u043e\u0441\u044c \u0437\u0430\u0439\u0442\u0438 \u0432 \u0437\u043e\u043d\u0443 \u0438 \u0441\u043e\u0437\u0434\u0430\u0442\u044c <strong>IP<\/strong>-\u0430\u0434\u0440\u0435\u0441:<\/p>\n<pre># zlogin zone0\r\n[Connected to zone 'zone0' pts\/6]\r\nOracle Corporation      SunOS 5.11      11.1    May 2013\r\nroot@zone0:~# ipadm create-ip net0\r\nroot@zone0:~# ipadm create-addr -T DHCP net0\/v4\r\nroot@zone0:~# ipadm show-addr\r\nADDROBJ           TYPE     STATE        ADDR\r\nlo0\/v4            static   ok           127.0.0.1\/8\r\nnet0\/v4           dhcp     ok           10.5.4.211\/23\r\nlo0\/v6            static   ok           ::1\/128<\/pre>\n<p>\u0412\u0441\u0451.<\/p>\n<p><strong><span style=\"color: #ff0000;\">\u041f\u0440\u0438\u043c\u0435\u0447\u0430\u043d\u0438\u0435.<\/span><\/strong><\/p>\n<p>\u0412 \u0441\u0438\u043b\u0443 \u043e\u0441\u043e\u0431\u0435\u043d\u043d\u043e\u0441\u0442\u0435\u0439 <strong>vnic<\/strong> \u043d\u0435 \u0440\u0430\u0431\u043e\u0442\u043e\u0441\u043f\u043e\u0441\u043e\u0431\u0435\u043d \u043d\u0430 \u0432\u0438\u0440\u0442\u0443\u0430\u043b\u044c\u043d\u044b\u0445 \u043c\u0430\u0448\u0438\u043d\u0430\u0445. \u0422\u043e \u0435\u0441\u0442\u044c \u043f\u0440\u0438 \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0435 \u0432\u044b \u043d\u0438\u043a\u0430\u043a\u0438\u0445 \u043e\u0448\u0438\u0431\u043e\u043a \u043d\u0435 \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u0435, \u043d\u043e \u0442\u0440\u0430\u0444\u0438\u043a \u0445\u043e\u0434\u0438\u0442\u044c \u043d\u0435 \u0431\u0443\u0434\u0435\u0442.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u041d\u0430\u0447\u0438\u043d\u0430\u044f \u0441 11-\u043e\u0439 \u0432\u0435\u0440\u0441\u0438\u0438 \u043f\u043e\u044f\u0432\u0438\u043b\u0430\u0441\u044c \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u044c \u0441\u043e\u0437\u0434\u0430\u0432\u0430\u0442\u044c vnic&#8217;\u044b \u0430\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u0438, \u043f\u0440\u0438 \u0441\u0442\u0430\u0440\u0442\u0435 \u0437\u043e\u043d\u044b, \u0442\u0435\u043c \u0441\u0430\u043c\u044b\u043c \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c exclusive IP \u0434\u043b\u044f \u0437\u043e\u043d\u044b. \u0412\u0441\u0451 \u044d\u0442\u043e \u0431\u043b\u0430\u0433\u043e\u0434\u0430\u0440\u044f anet. \u041e\u0442\u0440\u0435\u0434\u0430\u043a\u0442\u0438\u0440\u0443\u0435\u043c \u0441\u0432\u043e\u0439\u0441\u0442\u0432\u0430 \u0437\u043e\u043d\u044b:<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[24],"tags":[],"class_list":["post-3612","post","type-post","status-publish","format-standard","hentry","category-solaris"],"_links":{"self":[{"href":"https:\/\/skeletor.org.ua\/index.php?rest_route=\/wp\/v2\/posts\/3612","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=3612"}],"version-history":[{"count":1,"href":"https:\/\/skeletor.org.ua\/index.php?rest_route=\/wp\/v2\/posts\/3612\/revisions"}],"predecessor-version":[{"id":3613,"href":"https:\/\/skeletor.org.ua\/index.php?rest_route=\/wp\/v2\/posts\/3612\/revisions\/3613"}],"wp:attachment":[{"href":"https:\/\/skeletor.org.ua\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=3612"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/skeletor.org.ua\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=3612"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/skeletor.org.ua\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=3612"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}