Solaris ip Change


 
Thread Tools Search this Thread
Operating Systems Solaris Solaris ip Change
# 1  
Old 06-15-2009
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.......
# 2  
Old 06-15-2009
have a look at "/etc/hostname.interfacename"
# 3  
Old 06-15-2009
Hi,

you must edit /etc/hostname.<your_interface>;
there is your hostname, for this hostname the system
will take at boot the ip-number from /etc/inet/hosts.

cu
lowbyte
# 4  
Old 06-15-2009
Thanks for replying

i checked this file also after assigning ip. it was ok
# 5  
Old 06-15-2009
double check "/etc/hosts" for more then one entry with the name in /etc/hostname.interfacename
# 6  
Old 06-15-2009
i didnt check /etc/inet/hosts file....will try with that too....
# 7  
Old 06-15-2009
Quote:
Originally Posted by raynu.sharma
i didnt check /etc/inet/hosts file....will try with that too....
/etc/hosts is a link to /etc/inet/hosts...
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

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... (5 Replies)
Discussion started by: newsol
5 Replies

3. 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

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