カーネルゾーンは、net または anet リソースの追加によってカーネルゾーンでのネットワークアクセスを提供します。これら 2 つのリソースタイプの詳細は、Oracle Solaris ゾーンの紹介 のゾーンネットワークインタフェースを参照してください。
排他的 IP ゾーンをカーネルゾーンに使用する必要があります。排他的 IP ゾーンの詳細は、Oracle Solaris ゾーンの作成と使用 の排他的 IP ゾーンのネットワークアドレスを参照してください。
追加の MAC アドレスを指定すると、入れ子にされたゾーン、またはカーネルゾーンが非大域 solaris および solaris10 ブランドゾーンをホストするゾーンをサポートできます。入れ子にされたゾーンの詳細は、入れ子にされたゾーンの管理を参照してください。
オプションでネットワークデバイス ID を指定して、ゾーン内から VNIC アドレスを識別して、ネットワークインタフェースがカーネルゾーンに表示される順序を決定できます。このプロセスは、ある物理スロットから別の物理スロットへの NIC の移動に似ています。
ネットワークゾーンリソースの設定方法については、Oracle Solaris ゾーンの作成と使用 の第 1 章非大域ゾーンの計画および構成方法を参照してください。
使用例 1-7 カーネルゾーンへのネットワークリソースの追加この例は、ネットワークリソースをカーネルゾーン kzone1 に追加する方法を示しています。ID が 3 に設定され、新しい anet インタフェースがカーネルゾーンに表示される順序が決定されます。
global# zonecfg -z kzone1 zonecfg:kzone1> add anet zonecfg:kzone1:anet> set id=3 global# zonecfg:kzone1:anet> end zonecfg:kzone1> exit使用例 1-8 カーネルゾーンからのネットワークデバイスの削除
この例は、カーネルゾーン kzone1 からネットワークデバイスを削除する方法を示しています。既存の anet リソースに関する情報が一覧表示され、値が 1 の anet デバイスが削除されます。
global# zonecfg -z kzone1 info anet anet: lower-link: auto allowed-address not specified allowed-dhcp-cids not specified link-protection: mac-nospoof mac-address: random mac-prefix not specified mac-slot not specified vlan-id not specified priority not specified rxrings not specified txrings not specified mtu not specified maxbw not specified rxfanout not specified vsi-typeid not specified vsi-vers not specified vsi-mgrid not specified etsbw-lcl not specified cos not specified id: 0 anet: lower-link: auto allowed-address not specified allowed-dhcp-cids not specified link-protection: mac-nospoof mac-address: default mac-prefix not specified mac-slot not specified vlan-id not specified priority not specified rxrings not specified txrings not specified mtu not specified maxbw not specified rxfanout not specified vsi-typeid not specified vsi-vers not specified vsi-mgrid not specified etsbw-lcl not specified cos not specified id: 1 global# zonecfg -z kzone1 remove anet id=1