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 .
For more information, see Using Your Assigned Administrative Rights in Securing Users and Processes in Oracle Solaris 11.2 .
For more information, see How to Configure VNICs and Etherstubs.
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.
zonecfg:zone> verify zonecfg:zone> commit zonecfg:zone> exit
global# zoneadm -z zone install
global# zoneadm -z zone boot
global# zlogin -C zone
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 .
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: 192.168.3.80 System part of a subnet: Yes Netmask: 255.255.255.0 Enable IPv6: No Default route: 192.168.3.70 Router IP address: 192.168.3.25