Creating and Using Oracle® Solaris Zones

Exit Print View

Updated: May 2015
 
 

Shared-IP Zone Network Address

Each shared-IP zone that requires network connectivity has one or more unique IP addresses. Both IPv4 and IPv6 addresses are supported.

IPv4 Zone Network Address

If you are using IPv4, obtain an address and assign the address to the zone. When you assign addresses to the zone, you can specify the address by using CIDR notation, such as 192.168.1.1/24.

For shared-IP zones, the IP address itself can be specified directly when configuring a zone so that no host name resolution is required.

For more information, see hosts(4), netmasks(4), and nodename(4).

IPv6 Zone Network Address

If you are using IPv6, you must manually configure the address. Typically, at least the following two types of addresses must be configured:

Link-local address

A link-local address is of the form fe80::64-bit interface ID/10. The /10 indicates a prefix length of 10 bits.

Global unicast address

A global unicast address is based off a 64–bit prefix that the administrator configures for each subnet, and a 64-bit interface ID. The prefix can be obtained by running the ipadm show-addr command on any system on the same subnet that has been configured to use IPv6.

The 64–bit interface ID is typically derived from a system's MAC address. For zones use, an alternate address that is unique can be derived from the global zone's IPv4 address by using the following convention:

16 bits of zero:upper 16 bits of IPv4 address:lower 16 bits of IPv4 address:a zone-unique number

Assume that the global zone's IPv4 address is 192.168.200.10. This address is converted to hexadecimal as follows:

  • 192 = c0

  • 168 = a8

  • 200 = c8

  • 10 = 0a

Thus, a suitable link-local address for a non-global zone using a zone-unique number of 1 is fe80::c0a8:c80a:1/10.

If the global prefix in use on that subnet is 2001:0db8:aabb:ccdd/64, a unique global unicast address for the same non-global zone is 2001:0db8:aabb:ccdd::c0a8:c80a:1/64. Note that you must specify a prefix length when configuring an IPv6 address.

For more information about link-local and global unicast addresses, see the ipadm(1M) and inet6(7P) man pages.