Google Plus

Change IP or Hostname inSolaris

Written by Mel Kham on . Posted in Unix Tutorials

 

How  to change  IP  in  Solaris  10:  (reboot is  not  needed)

 

1. Edit ->
Code:

#/etc/hosts and  /etc/inet/ipnodes files

2. Restart network :
Code:

# svcadm restart network/physical

 

3. To ensure that IP address has been changed,
Code:
/etc/netmasks

 

Change  Hostname  in   Solaris  10  (reboot  needed)

Change the hostname in the following files:

/etc/nodename

/etc/hostname.*interface

/etc/inet/hosts

/etc/inet/ipnodes

and rename directory under /var/crash

# cd /var/crash

# mv oldname newname

 

 

How  to change   IP  and  Hostname   in Solaris 8/9?

Use  this  Command   :  /usr/sbin/sys-unconfig and  answer  some  questions to reconfigure  your  system

 

or  

 edit   

/etc/defaultdomain     Set the default NIS domain name, if any, if it changed.



/etc/defaultrouter   Set the default router’s IP address, if it changed.



/etc/hostname.le0 (or .hme0 or ?) Update if the hostname changed.



/etc/hostname6.le0 (or .hme0 ;bge0;or ?) Ditto, if you use IPv6.



/etc/hostname6.ip.tun0 Update if you use a IPv4/IPv6 tunnel (e.g., 6bone)



/etc/nodename Update if the hostname changed.



/etc/nsswitch.conf Update if your name resolution method/order changed.



/etc/resolv.conf Update if your name servers/domain changed (DNS only).



/etc/inet/hosts Make sure your IP address is updated or added here.



List your FQDN is first, before the short hostname.


E.g., "192.168.1.102 user.unixmen.net user"


/etc/inet/ipnodes IPv6 version of hosts file (Solaris 8+).



/etc/inet/netmasks Set your network number & netmask, if it changed.



/etc/inet/networks Set your network name, if it changed.



/etc/net/ticlts/hosts For the streams-level loopback interface.



/etc/net/ticots/hosts For the streams-level loopback interface.



/etc/net/ticotsord/hosts For the streams-level loopback interface.



Now  reboot  the  syhstem to  activate  the  new  ip adress 
 

 

For questions please refer to our Q/A forum at : http://ask.unixmen.com

Mel Kham

Founder of Unixmen, Living in Amsterdam. Am working in my free time to help people to understand the Opensource and to explain them in easy way how to make the fist steps to the the light. Working day and night with my Co-founder Zinovsky to keep this website live even with less resources.

Like us on Facebook

This week Top Posts

Write for us

Recent Comments

piCool

|

Great ! we have another another master trick :-)

Yilmaz Ulugtekin

|

Just delete the space after the slash (/) it will work.

Pat L

|

I tried it and it works with a regular zip file, but if you password-protect the .zip file it does NOT work.

SK

|

Yes we can. What kind of help you need? We are doing outsourcing and technical support for Linux and Open source worldwide. To know more about the details visit here.

ClintB

|

After install as above, run shell script /opt/Citrix/ICAClient/wfica.sh manually and note lib errors still occur. I had the x64 motif loaded but had to manually install the x86 too. Got that from http://rpmfind.net/linux/rpm2html/search.php?query=libXm.so.4 Even after that, I still had to do a “yum install alsa-lib.i686 alsa-lib.x86_64″ to resolve any additional libasound.so.2 errors. Once those two lib issues were resolved, Citix Web Interface launched apps fine by telling browser to open launch.ica using /opt/Citrix/ICAClient/wfica.sh. Good luck Ernesto!

 
IDG Tech Network
Copyright © 2008-2013 Unixmen.com .
Maintained by Anblik .