System Administration Guide: Oracle Solaris Containers-Resource Management and Oracle Solaris Zones

Switching the Non-Global Zone to a Different Networking Service Configuration

This zone was installed with the open networking configuration described in Chapter 19, Managing Services (Tasks), in System Administration Guide: Basic Administration. You can switch the zone to the limited networking configuration, or enable or disable individual services in the zone.

ProcedureHow to Switch the Zone to the Limited Networking Service Configuration

  1. From the global zone, log in to the zone, for example, my-zone.


    global# zlogin my-zone
    
  2. Run the netservices command to switch the zone to the limited networking configuration.


    my-zone# /usr/sbin/netservices limited
    

    You will see a display similar to the following. Respond y to the prompt to restart dtlogin.


    restarting syslogd
    restarting sendmail
    dtlogin needs to be restarted. Restart now? [Y] y
    restarting dtlogin

ProcedureHow to Enable a Specific Service in a Zone

  1. From the global zone, log in to the zone, for example, my-zone.


    global# zlogin my-zone
    
  2. Run the svcadm command to enable physical memory control using the resource capping daemon.


    my-zone# svcadm enable svc:/system/rcap:default
    
  3. List the services to verify that rcapd is enabled.


    my-zone# svcs -a
    .
    .
    .
    online    14:04:21 svc:/system/rcap:default
    .
    .
    .