Zone subnet change


 
Thread Tools Search this Thread
Operating Systems Solaris Zone subnet change
# 1  
Old 12-23-2011
Zone subnet change

Hello,
I'm in the process of changing the netmask on my servers from /24 to /23.
I have been doing this on the Solaris 9 and the global zones on Solaris 10 servers.
sudo vi /etc/netmasks
sudo ifconfig <device> IP/23

The question is this, should I do it this way in the zone or should I do it from the global zone using zonecfg?
I'm trying to do this with the least impact.

Thanks for your time
# 2  
Old 12-23-2011
It depends on whether the zone is configured with exclusive or shared IP stack.
# 3  
Old 12-23-2011
Shared I think. If I do a ifconfig -a I get somthing like this.

#> ifconfig -a
eho inet 10.0.0.20
eho:1 inet 10.0.0.30 zone myzone
# 4  
Old 12-23-2011
To be sure run:
Code:
zonecfg -z zonename export | grep ip-type

# 5  
Old 12-23-2011
Code:
zonecfg -z zonename export | grep ip-type

What does that do?

This what I have been doing.
Code:
# zonecfg -z myzone
zonecfg:myzone> remove net address=10.0.0.20
zonecfg:myzone> add net
zonecfg:myzone:net> set address=10.0.0.20/23
zonecfg:myzone:net> set physical=bge0
zonecfg:myzone:net> end
zonecfg:myzone> verify
zonecfg:myzone> commit
zonecfg:myzone> exit
#

I need to reboot the zone for the change to take affect. I can't do that so I do this instead.
Code:
# ifconfig <device> 10.0.0.20/23

This changes the netmask until reboot and the zondcfg command will set it after the reboot.

Last edited by DukeNuke2; 12-23-2011 at 02:27 PM..
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

How to change the time zone in UNIX??

hi, my system date and time zone is PDT. whenever i append date time stamp to a file it appends the system date thats PDT date time zone. i want to append GMT time zone. is there a mechanism or option which can append the date time stamp according to GMT. (4 Replies)
Discussion started by: Little
4 Replies

2. Shell Programming and Scripting

Generate zone files based off subnet

Hi, I'm attempting to generate zone files based off the subnet address of a reverse zone. For example... My text file contains the following.. 5.4.7.0/24 5.4.7.0/24 68.74.23.0/24 68.74.24.0/24 I want to create a separate file for each of the listed blocks. Each file should contain... (1 Reply)
Discussion started by: spartan22
1 Replies

3. Shell Programming and Scripting

Date Time Change for a particular target Zone

Hi Summary: - Script will take 2 arguments - Argument 1: Date/Time value in a particular format - Argument 2: TimeZone value Examples: Argument 1: a. "May 11, 2012 08:00:00 AM" b. "Dec 21, 2012 12:21:12 PM" c. "Oct 2, 2012 05:00:00 PM" Argument 2: a. MT or MST or MDT b. ET c.... (4 Replies)
Discussion started by: anuragpgtgerman
4 Replies

4. Solaris

zone and global zone Ip change

Hi I have a global zone server with 4 difrent zones servers on it . I need to change all the Ip's for the global zone server and for his 4 zones servers . the change is a totaly diffrent Ip address on a diffrent range so I think I will need to do some changes on the defaultrouter and maybe... (3 Replies)
Discussion started by: shaife72
3 Replies

5. HP-UX

How can I change in HP-UX to Jerusalem time zone

How can I change in HP-UX The time zone to reflect the Jerusalem/Israel time zone (I think ist called IDT or IST) ? tnx (5 Replies)
Discussion started by: umen
5 Replies

6. Solaris

how to change the subnet mask of interface

Hi all, could you please tell me how to Change the subnet mask of interface aded:1 from ffffffc0 to ffffff80 regards Krishna (7 Replies)
Discussion started by: murthy76
7 Replies

7. IP Networking

Migrating existing Subnet to a new subnet and changing ip addresses in UNIX

Hi, My project needs to migrate the existing Subnet (255.255.255.0) to a new subnet and change the ipaddresses (currently C class). How can I do that. I need some information. John (0 Replies)
Discussion started by: johnmarsh
0 Replies

8. HP-UX

Time Zone Change Needed

Need help with a timezone change for my user profile on HPUX, from UTC to PDT8PST pgop:/home/pgop > date Thu Sep 25 15:09:50 UTC 2008 to Thu Sep 25 08:12:44 PDT 2008 Tried looking through manuals for date over this to no luck!! :confused: (3 Replies)
Discussion started by: pgop
3 Replies

9. UNIX for Advanced & Expert Users

Change params for time zone

Hi! How ican change parameters for daylight, i mean, i want change the daylight on december first week. I've tried with /usr/lib/tztab but result unsuccessful. (7 Replies)
Discussion started by: agustincm
7 Replies
Login or Register to Ask a Question