temperory ip change in solaris 9


 
Thread Tools Search this Thread
Operating Systems Solaris temperory ip change in solaris 9
# 1  
Old 10-15-2011
temperory ip change in solaris 9

Hi Admins,

For testing purpose we are moving sun solaris 9 in to test vlan .So i need to change the ip, subnet mask and gateway temperorily. Below are the procedure m going to perform.

1. Backup of ifconfig -a , netstat -an, netstat -rn , netstat -in
2. Backup of /etc/hosts,/etc/netmasks,/etc/defaultrouter,/etc/ipnodes
3.ifconfig hme0 unplumb
4.ifconfig hme0 plumb
5.ifconfig hme0 <new ip> netmask <new subnet> up
6.route add default <new gateway>
7.Modiy hosts file with new entries.


Anything i missed here..?

Do i need to add broadcast ip

My main concern with routings.Below is my current routing table.

Routing Table: IPv4
Destination Gateway Flags Ref Use Interface
-------------------- -------------------- ----- ----- ------ ---------
10.50.23.0 10.50.23.81 U 1 24305 eri0
2.0.0.0 2.1.1.2 U 1 2349 ge0
224.0.0.0 10.50.23.81 U 1 0 eri0
default 10.50.23.1 UG 1 96300
127.0.0.1 127.0.0.1 UH 149185425 lo0


After changing ips and gateway, do i need new routes so that destination system will reach to my new ip..?

Please share your expert thoughts.

Regards
newsol
# 2  
Old 10-15-2011
Quote:
Anything i missed here..?
It seems you did the task very well , Nothing left to say.
Quote:
Do i need to add broadcast ip
Broadcast address will be set automatically based on your subnet mask.

Your routing table seems to be okay

Quote:
After changing ips and gateway, do i need new routes so that destination system will reach to my new ip..?
No, You already did

One more thing please post your code or output posting inside code tags
# 3  
Old 10-15-2011
Looks OK to me but a word (sentence) of warning and I say this as an SA that I worked with that should have known better screwed up doing this task.

The SA mentioned could not login (incorrect root password) via the console so he ssh'd in and changed the network address. He was then understandably kicked out of the ssh session and could no longer log in. This was on a live production system... Not good!
In the case above he had no access to the Solaris media cd roms or blank cdr's, but he did have a laptop so I talked through installing Virtualbox / Solaris and setup a boot server which enable him to mount /a and change the root password.

So stating the obvious make sure you are able connect to the system via its console! ;-)

Regards,
SRG
# 4  
Old 10-15-2011
don't need to change DNS?
# 5  
Old 10-16-2011
Hi Admins,

Thanks for the response. Actually activity will be done next week.So i am preparing checklist or the same. Now i require your expert thoughts on my checklist. doi need to make any changes.

Regard
newsol
# 6  
Old 10-24-2011
Please find the poa for temperorily ip subnet and default gateway change for solaris 9.Please let me know if i missed anything.

Code:
 
ifconfig hme0 down
ifconfig hme0 unplumb
ifconfig hme0 plumb  
ifconfig hme0 <ip address> netmask <subnet> up     
route add default <default gateway>

Regards
newsol
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. Solaris

Change timezone in Solaris 11

I was trying to change timezone on my new solaris-11 server to US/Pacific, but not successfull. root@tsapp01 # grep TZ /etc/default/init TZ=localtime Can somebody share something on this ? It seems, /etc/TIMEZONE is no longer in use for Solaris 11 (2 Replies)
Discussion started by: solaris_1977
2 Replies

2. Solaris

Change Solaris hostid

Hi, I've searched the UNIX forum looking for a simple procedure how to change\control my Solaris server hostid. I did found few threads but all of them either have broken links to all kinds of scripts or not described simply for some UNIX beginers user like me. Can anyone assist me? I... (21 Replies)
Discussion started by: avisht
21 Replies

3. Solaris

Solaris ip Change

Hi all i changed ip of my sunfire V490 machine by using the ifconfig command i modified following files /etc/hosts /etc/netmasks /etc/defaultrouter /etc/inet/ipnodes still when i rebooted the server ip got change. can nyone tell me reasonwhy it happens....... (7 Replies)
Discussion started by: raynu.sharma
7 Replies

4. Solaris

change disk under solaris 6

hi every one , i want to change the failed disk under solaris 6 i know that it's different than other revisions but i havn't a procedure ,can someone help me plz? (5 Replies)
Discussion started by: lid-j-one
5 Replies

5. UNIX for Dummies Questions & Answers

Change root prompt (Solaris)

Hello all. I was wondering if there is a way to change the root prompt. I am using Solaris 10 and would like to have the root prompt display the current directory along with 'SU' to indicate root status. What I have tried so far: /etc/passwd changed the root shell to korn with... (10 Replies)
Discussion started by: RobertSubnet
10 Replies

6. UNIX for Advanced & Expert Users

change passwd remotely in solaris 10

i'm trying to change passwd remotely in unix (solaris) and tried using "expect" but it is not working. Any ideas to change the passwd remotely using a shell script? (1 Reply)
Discussion started by: pharos467
1 Replies

7. Solaris

Change hostname in Solaris 9

Please anyone guide me how to change the hostname in Solaris 9? The IP of the machie is fetched from a DHCP server. (6 Replies)
Discussion started by: shabu
6 Replies

8. IP Networking

How to change hostname and ip in solaris

Dear all, I am going to change the IP address and hostname in my solaris, but I don't know how to do it. If you have any idea or suggestion, please fell free to let me know. Thanks and Regards (2 Replies)
Discussion started by: PennyLi
2 Replies

9. UNIX for Dummies Questions & Answers

change solaris to 32bit

Hi Any one know how to change solaris 7 from 64 bit, back to 32 bit,, i know its on sunsolve somewhere but i cant see it. thanks:D (2 Replies)
Discussion started by: thangorn
2 Replies
Login or Register to Ask a Question