当使用 zonecfg 实用程序配置区域时,请使用 revert 子命令来撤消对区域配置执行的资源设置。
您必须是全局区域中的全局管理员或在全局区域中具有区域安全权限配置文件的用户才能执行此过程。
zonecfg:tmp-zone> info
配置的 net 资源段显示如下:
.
.
.
fs:
dir: /tmp
special: swap
type: tmpfs
net:
address: 192.168.0.1
physical: eri0
device
match: /dev/pts/*
.
.
.
zonecfg:tmp-zone> remove net address=192.168.0.1
zonecfg:tmp-zone> info
.
.
.
fs:
dir: /tmp
special: swap
type: tmpfs
device
match: /dev/pts/*
.
.
.
zonecfg:tmp-zone> revert
Are you sure you want to revert (y/[n])? y
zonecfg:tmp-zone> info
.
.
.
fs:
dir: /tmp
special: swap
type: tmpfs
net:
address: 192.168.0.1
physical: eri0
device
match: /dev/pts/*
.
.
.