Go to main content

Creating and Using Oracle® Solaris Zones

Exit Print View

Updated: April 2019
 
 

How to Revert a Zone Configuration

While configuring a zone with the zonecfg utility, use the revert subcommand to undo a resource setting made to the zone configuration.

  1. Become a zone administrator.

    For more information, see Assigning Limited Rights to Zone Administrators.

  2. While configuring a zone called tmp-zone, type info to view your configuration:
    zonecfg:tmp-zone> info

    The net resource segment of the configuration displays as follows:

    …
    fs:
            dir: /tmp
            special: swap
            type: tmpfs
    net:
            address: 192.0.2.0
            physical: eri0
    device
            match: /dev/pts/*
    …
  3. Remove the net address.
    zonecfg:tmp-zone> remove net address=192.0.2.0
  4. Verify that the net entry has been removed.
    zonecfg:tmp-zone> info
    …
    fs:
            dir: /tmp
            special: swap
            type: tmpfs
    device
            match: /dev/pts/*
    …
  5. Type revert.
    zonecfg:tmp-zone> revert
  6. Answer yes to the following question:
    Are you sure you want to revert (y/[n])? y
  7. Verify that the net address is once again present:
    zonecfg:tmp-zone> info
    …
    fs:
            dir: /tmp
            special: swap
            type: tmpfs
    net:
            address: 192.0.2.0
            physical: eri0
    device
            match: /dev/pts/*
    …