Header RSS Feed
 
If you only want to see the articles of a certain category, please click on the desired category below:
ALL Android Backup BSD Database Hacks Hardware Internet Linux Mail MySQL Monitoring Network Personal PHP Proxy Shell Solaris Unix Virtualization VMware Windows Wyse

Solaris: (Hot-)Add a new ip address to a zone without reboot
Monday - Jul 22nd 2013 - by - (2 comments)

The following steps explain how to add an additional IP address to a Solaris zone without having to reboot the zone.

1. Edit the zone configuration with zonecfg
Add a new net section with the new ip address (192.168.56.44) and the interface of the zone (see ifconfig -a for the interface name of the zone).

# zonecfg -z zone01
zonecfg:zone01> add net
zonecfg:zone01:net> set address=192.168.56.44
zonecfg:zone01:net> set physical=z01ipmp0
zonecfg:zone01:net> end
zonecfg:zone01> verify
zonecfg:zone01> commit
zonecfg:zone01> exit

This prepares the zone to use the additional ip address on the mentioned interface.

2. Add the ip address with ifconfig

ifconfig z01ipmp0 addif 192.168.56.44 netmask + broadcast + zone zone01 up
Created new logical interface z01ipmp0:2
Setting netmask of z01ipmp0:2 to 255.255.255.0

 

To remove an additional ip address from a Solaris zone, do the following steps:

1. Remove the ip address with ifconfig:

ifconfig z01ipmp0 removeif 192.168.56.44

2. Remove the ip address from the Solaris zone configuration:

# zonecfg -z zone01
zonecfg:zone01> remove net address=192.168.56.44
zonecfg:zone01> verify
zonecfg:zone01> commit
zonecfg:zone01> exit

 

Add a comment

Show form to leave a comment

Comments (newest first):

Claudio from Switzerland wrote on Jul 22nd, 2013:
All commands are run on the global.

Alexander from Sardinien wrote on Jul 22nd, 2013:
Would be worthwhile to add, that the ifconfig command is run in the global zone
Or, is it? :-)


Go to Homepage home
Linux Howtos how to's
Nagios Plugins nagios plugins
Links links

Valid HTML 4.01 Transitional
Valid CSS!
[Valid RSS]

7666 Days
until Death of Computers
Why?