Using Dynamic MAC Addresses and VLAN IDs in Kernel Zones

For most deployment cases, the MAC address and VLAN IDs used in a kernel zone can be statically configured before the zone is booted. However, in cases such as a cloud deployment, you might not know ahead of time what values the kernel zone needs to use for MAC addresses and the VLAN IDs of its VNICs. In such cases, you have two configuration options:

  • You can specify prefixes of allowed MAC addresses and ranges of allowed VLAN IDs.

  • You can enable the kernel zone to create a VNIC with any valid MAC address or VLAN ID.

Tip:

Use the default static configuration when you know the number of MAC addresses and VLAN IDs and their values ahead of time. Static configuration is also required for SR-IOV VF based anet resources.

To enable dynamic configuration, set the anet resource type allowed-mac-address and allowed-vlan-ids as shown in the following procedure.

For more information about these properties, see anet Resource Type in Oracle Solaris Zones Configuration Resources.