Go to main content

Creating and Using Oracle® Solaris Kernel Zones

Exit Print View

Updated: December 2018
 
 

How to Add Multiple MAC Addresses to a Kernel Zone

This procedure shows how to add two automatically generated MAC addresses to a kernel zone.

  1. Become a zone administrator.

    For more information, see Assigning Rights to Non-Root Users to Manage Zones in Creating and Using Oracle Solaris Zones.

  2. Add the new MAC addresses.
    global$ zonecfg -z kz0
    zonecfg:kz0> add anet
    zonecfg:kz0:anet> add mac
    zonecfg:kz0:anet:mac> end
    zonecfg:kz0:anet> add mac
    zonecfg:kz0:anet:mac> end
    zonecfg:kz0:anet> end
    zonecfg:kz0> exit
    global#
  3. Boot the kernel zone or apply the changes to the running kernel zone.
    global$ zoneadm -z kz0 apply
    zone 'kz0': Checking: Adding anet id=1
    zone 'kz0': Applying the changes
  4. (Optional) Log in to the kernel zone and display the new MAC addresses.
    global$ zlogin kz0
    kz0# dladm show-phys -m net1
    LINK                SLOT     ADDRESS            INUSE CLIENT
    net1                primary  2:8:20:42:cf:83    yes   net1
                        1        2:8:20:f4:e1:b1    no    --
                        2        2:8:20:38:67:f3    no    --