How to change the IP address of the zone ?

Posted on 2009-04-20
Last Modified: 2013-12-27
How can I change the IP address of running zone. Can I change it from inside the zone or do I need global zone access? Thanks!
Question by:beer9
    LVL 4

    Expert Comment

    you can perform almost all the admin task for that particular zone from inside the zone, but you need to login as root through console, or from the global zone,
    LVL 22

    Accepted Solution

    In general you cannot change the IP address of a zone from within a zone, at least not by default. If you are using shared-ip stacks, then you cannot do it at all. If you are using exclusive-IP stacks, then the admin of the zone can run the ifconfig command
    to set the IP from within the zone. The default is shared-IP, and since you are asking this question, I assume you tried it and
    it didn't work, so you are probably using shared-ip. Exclusive-IP stacks can only be used when there is a physical interface
    dedicated to the zone, so in other words, you must have multiple physical interfaces on the system.

    If you are using shared-ip, the only way to change the IP address of a zone is using the zonecfg command. It is pretty straight forward, just take a look at the man page for zonecfg.

    Author Closing Comment

    Thanks blu! :-)

    Featured Post

    Find Ransomware Secrets With All-Source Analysis

    Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

    Join & Write a Comment

    This tech tip describes how to install the Solaris Operating System from a tape backup that was created using the Solaris flash archive utility. I have used this procedure on the Solaris 8 and 9 OS, and it shoudl also work well on the Solaris 10 rel…
    My previous tech tip, Installing the Solaris OS From the Flash Archive On a Tape (, discussed installing the Solaris Operating S…
    Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:
    Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…

    733 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    22 Experts available now in Live!

    Get 1:1 Help Now