• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 443
  • Last Modified:

How to change the IP address of the zone ?

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!
1 Solution
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,
Brian UtterbackPrinciple Software EngineerCommented:
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.
beer9Author Commented:
Thanks blu! :-)

Featured Post

Hire Technology Freelancers with Gigs

Work with freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely, and get projects done right.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now