分类:
2011-05-25 17:29:01
create -b set zonepath=zone根目录,保证权限为700 set autoboot=true set pool=pool_default set ip-type=shared add net set address=IP地址 set physical=物理网口 end |
(2) 创建zone1
$ zonecfg -z zone1 -f zone1.cfg
(3) 启动zone1
$ zoneadm -z zone2 boot
(4) 登录zone1,进行初始化配置
$ zlogin -C zone1
稍后进行一些系统配置即可
2.克隆zone
(1)导出待克隆的zone的配置
$ zonecfg -z zone1 export > zone2.cfg
(2)停止待克隆的zone
$ zoneadm -z zone1 halt
(3)创建zone2
$ zonecfg -z zone2 -f zone2.cfg
(4)克隆zone1
$ zoneadm -z zone2 clone zone1
(5) 启动zone2
$ zoneadm -z zone2 boot
(6) 登录zone2,进行初始化配置
$ zlogin -C zone2
3. 修改zone IP
(1)停止zone
$ zoneadm -z zone halt
(2) 修改配置
$ zonecfg -z zone
zone>remove net
zone>add net
zone:net>set physical=物理网口
zone:net>set address=新IP地址
zone:net>end
zone>verify
zone>commit
zone>exit