zonecfg:zonename> add net (Begin adding network.)
zonecfg:zonename:net> set address=IP-address/prefixlen (Specify IP address and prefix length.)
zonecfg:zonename:net> set physical=Interface (Specify network interface.)
zonecfg:zonename:net> end (Finish adding network.)
zonecfg:zonename> exit (End of command.)

Example: Adding fjgi0 to a Shared-IP Non-Global Zone (zone1).

# zonecfg -z zone1
zonecfg:zone1> set ip-type=shared
zonecfg:zone1> add net
zonecfg:zone1:net> set address=192.168.150.1/24
zonecfg:zone1:net> set physical=fjgi0
zonecfg:zone1:net> end
zonecfg:zone1> exit
(Note 1) In Solaris 11,zonecfg create -b command must be executed to create a Shared-IP
Non-Global Zone.
(Note 2) In Solaris 11, the vanity name (net2) is specified as fjgi0.
(Note 3) Reboot the Shared-IP Non-Global Zone to make this setting effective.
If the Shared-IP Non-Global Zone has not booted, execute the following command.
# zoneadm -z zonename boot
If the Shared-IP Non-Global Zone has booted, execute the following command.
# zoneadm -z zonename reboot
-The following example shows how to remove an interface from a Shared-IP Non-Global Zone (zonecfg remove net)
zonecfg -z zonename (Specify Zone Name.)
zonecfg:zonename> remove net address=IP-address (Specify IP address.)
zonecfg:zonename> exit (End of command.)

Example: Removing fjgi0 from a Shared-IP Non-Global Zone (zone1).

# zonecfg -z zone1
zonecfg:zone1> remove net address=192.168.150.1
zonecfg:zone1> exit
(Note) Reboot the Shared-IP Non-Global Zone to make this setting effective.
If the Shared-IP Non-Global Zone has not booted, execute the following command.
# zoneadm -z zonename boot
If the Shared-IP Non-Global Zone has booted, execute the following command.
# zoneadm -z zonename reboot
-The following example shows how to add an interface to an Exclusive-IP Non-Global Zone (zonecfg set ip-type/zonecfg add net)
zonecfg -z zonename (Specify Zone Name.)
zonecfg:zonename> set ip-type=exclusive (Specify Exclusive-IP Non-Global Zone.)
zonecfg:zonename> add net (Begin adding network.)
zonecfg:zonename:net> set physical=Interface (Specify network interface.)
zonecfg:zonename:net> end (Finish adding network.)
zonecfg:zonename> exit (End of command.)

Example: Adding fjgi2 to an Exclusive-IP Non-Global Zone (zone2).

# zonecfg -z zone2
zonecfg:zone2> set ip-type=exclusive
zonecfg:zone2> add net
zonecfg:zone2:net> set physical=fjgi2
zonecfg:zone2:net> end
zonecfg:zone2> exit

- 68 -