Monday, November 21, 2011

Solaris Zone part four ( Zone Configuration )

Solaris Zone part four ( Zone Configuration )
change solaris zone IP address 

From global zone at the command prompt type :- 

 zonecfg:zone1> select net address=10.109.9.211 
 zonecfg:zone1:net> set address=10.109.9.212 
 zonecfg:zone1:net> end 
 zonecfg:zone1:net> endzonecfg:zone1> verify 
 zonecfg:zone1> commit 
 zonecfg:zone1> exit 
↬ reboot the zone 
 zoneadm -z zone1 reboot 

↬ where :- 
- zone1 is the name of the zone
- 10.109.9.211 is the old IP address
- 10.109.9.212 is the new IP address

change the Zone Host name 

↬ from the zone at the command prompt type :- 
 vi /etc/hosts 

↬ change the old name with new.
 vi /etc/nodename 
↬ change the old name with new .

↬ reboot the zone 
 zoneadm -z zone1 reboot 

➌ Delete zone 

↬ from global zone at the command prompt :- 

 zoneadm -z zone1 halt 
 zoneadm -z zone1 uninstall 
 zonecfg -z zone1 delete 

➍ swap space in non-global zone
↬ A non-global zone inherits its swap space setting from the global zone. For example, in my global zone:




0 comments:

Post a Comment

 
Design by Wordpress Theme | Bloggerized by Free Blogger Templates | coupon codes