Go to main content

Creating and Using Oracle® Solaris Zones

Exit Print View

Updated: April 2019
 
 

How to Use dladm to Assign Temporary Datalinks

The dladm command can be used with the set-linkprop subcommand to temporarily assign datalinks to running exclusive-IP zones. Persistent assignment must be made through the zonecfg command.

  1. Become a network administrator.

    You must be assigned the Network Management rights profile. The root role has all of these rights.

    For more information, see Using Your Assigned Administrative Rights in Securing Users and Processes in Oracle Solaris 11.3.

  2. Use dladm set-linkprop with the –t to add net0 to a running zone called zoneA.
    global$ dladm set-linkprop -t -p zone=zoneA net0
    LINK     PROPERTY        PERM   VALUE        DEFAULT        POSSIBLE
    net0     zone            rw     zoneA        --             --

    Tip  -  The –p option produces a display using a stable machine-parsable format.