Change IP or Hostname inSolaris

by
Share this Article: Facebook0Google+0Twitter0LinkedIn0Reddit0StumbleUpon0

 

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/


Share this Article: Facebook0Google+0Twitter0LinkedIn0Reddit0StumbleUpon0