Managing Network Virtualization and Network Resources in Oracle® Solaris 11.2

Exit Print View

Updated: September 2014

How to Configure a Zone for the Virtual Network

This procedure explains how to configure a new zone with a new VNIC. Note that only the steps related to network virtualization are included in the procedure. For more information about how to configure zones, see Chapter 1, How to Plan and Configure Non-Global Zones, in Creating and Using Oracle Solaris Zones .

  1. Become an administrator.

    For more information, see Using Your Assigned Administrative Rights in Securing Users and Processes in Oracle Solaris 11.2 .

  2. Configure the VNIC.

    For more information, see How to Configure VNICs and Etherstubs.

  3. Create the zone.
    global# zonecfg -z zone

    Refers to the name of the zone.

    Make sure that you assign the VNIC that you previously created as the zone's physical interface. By default, the ip-type parameter of the zone is set to exclusive.

  4. Verify and commit the changes that you have implemented and then exit the zone.
    zonecfg:zone> verify
    zonecfg:zone> commit
    zonecfg:zone> exit
  5. Install the zone.
    global# zoneadm -z zone install
  6. Start the zone.
    global# zoneadm -z zone boot
  7. After the zone completely boots up, log in to the zone.
    global# zlogin -C zone
  8. Specify the information as you are prompted.

    You can specify most of the information by selecting from a list of choices. Usually, the default options suffice. To configure the virtual network, you must specify or verify the following information:

    • Host name of the zone, for example, zone1

    • IP address of the zone which is based on the IP address of the zone's VNIC

    • Whether IPv6 should be enabled

    • Whether the system with the virtual network is part of a subnet

    • Netmask of the IP address

    • Default route, which can be the IP address of the physical interface on which the virtual network is built

    After you have provided the required information, the zone restarts.

    Alternatively, you can configure an exclusive-IP zone with an automatic VNIC called the anet resource. For more information, see How to Configure the Zone in Creating and Using Oracle Solaris Zones .

Example 2-3  Configuring a Zone for the Virtual Network

In this example, zone1 is created for the virtual network and vnic1 is attached as the physical interface. Note that only the zone parameters that are relevant to the creation of a virtual network are listed.

global # zonecfg -z zone1
zonecfg:zone1> create
zonecfg:zone1> set zonepath=/export/home/zone1
zonecfg:zone1> set autoboot=true
zonecfg:zone1> add net
zonecfg:zone1:net> set physical=vnic1
zonecfg:zone1:net> end
zonecfg:zone1> verify
zonecfg:zone1> commit
zonecfg:zone1> exit

global# zoneadm -z zone1 install
global# zoneadm -z zone1 boot

global# zlogin -C zone1

To configure the network, the following information is supplied:

Hostname: zone1
IP address:
System part of a subnet: Yes
Enable IPv6: No
Default route:
Router IP address: