How to Change IP and Hostname on a Solaris Box


Tags:

                                  

Change in the following files:
-----------------------------

/etc/hosts
/etc/netmasks
/etc/defaultrouter
/etc/hostname.(hme0)     >> type of network card specific
/etc/nodename
/etc/net/*/hosts
/etc/passwd
-----------------------------

**        rename the directory under /var/crash to match your new hostname **

&&        type hostname to view hostname
&&        type hostname <newhostname> to change name without reboot



To bind an IP address to a Network Interface Card   (example - hme0)
-------------------------------------------------

ifconfig -a                                        << to check configuration
ifconfig hme0 plumb                                << to enable the card
ifconfig hme0 <ip address> netmask <subnet> up     << to bind and enable the configuration