Creating and Using Oracle® Solaris Zones

Exit Print View

Updated: May 2015
 
 

How to Use dladm to Assign Temporary Data-Links

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

You must be the global administrator or a user granted the appropriate authorizations in the global zone to administer data-links.

  1. Become an administrator.

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

  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-parseable format.