Another way to change the hostname is by using sys-unconfig command. This restores the system to an unconfigured state and should only be used when you are not concerned about preserving the current setup of the system. I suggest looking at the man pages for further information (man sys-unconfig) or edit the following files above.
Note: rename the directory under /var/crash to match your new hostname.
Sun Solaris Servers Network Configuration Guide (SPARC Platform Only)
To bind an IP address to a Network Interface Card #ifconfig -a --- to check the configuration #ifconfig qfe0 plumb --- to enable the first Network Interface Card #ifconfig qfe0 <ip address> netmask <subnet> up --- to bind IP address, subnet, and enable the configuration
Create a file on /etc directory - hostname.qfe0 with hostname entry Add entry on /etc/netmasks if IP address is on different subnet Add entry on /etc/inet/hosts file with IP address and hostname
Example: #ifconfig -a hme0: flags=863<UP,BROADCAST,NOTRAILERS,RUNNING,MULTICAST> mtu 1500 inet 126.96.36.199 netmask ffffff00 broadcast 188.8.131.52 ether 8:0:20:9f:51:fe
#ifconfig qfe0 plumb #ifconfig qfe0 184.108.40.206 netmask 255.255.255.0 up #ifconfig -a
To change IP Address #ifconfig qfe0 down --- to disable the first Network Interface Card
To remove Network Interface Card #ifconfig qfe0 unplumb --- to remove the first Network Interface Card
To bind a virtual IP address to Network Interface Card #ifconfig qfe0:1 plumb --- in some cases this is not needed if qfe0 has been plumb #ifconfig qfe0:1 220.127.116.11 netmask 255.255.255.0 up
Create a file on /etc directory - hostname.qfe0:1 with hostname entry Add entry on /etc/netmasks if IP address is on different subnet Add entry on /etc/inet/hosts file with IP address and hostname
NOTE: -If adding a quad
Network Interface Card, the naming convention will be qfe0, qfe1, qfe2, qfe3. -If adding a single port Network Interface Card, the naming convention will be hme1, hme2, hme3. -The onboard Network Interface Card is hme0 -If adding a virtual IP address, the naming convention will be hme0:1, hme0:2, up to hme0:3 only for hme0, or qfe0:1, qfe0:2, up to qfe0:3 only for qfe0, depending on the number of hme and qfe port used.
To hardcode the speed of the Network Interface Card Example: You want to hardcode 100Full Duplex for hme0 #ndd -set /dev/hme instance 0 #ndd -set /dev/hme adv_100fdx_cap 1 #ndd -set /dev/hme adv_100hdx_cap 0 #ndd -set /dev/hme adv_10fdx_cap 0 #ndd -set /dev/hme adv_10hdx_cap 0 #ndd -set /dev/hme adv_autoneg_cap 0
Create an input on the file /etc/system so that when your system rebooted it will run the NIC in 100Full Duplex automatically. set hme:hme_adv_100fdx_cap=1 set hme:hme_adv_100hdx_cap=0 set hme:hme_adv_10fdx_cap=0 set hme:hme_adv_10hdx_cap=0 set hme:hme_adv_autoneg_cap=0
To check the status #ndd /dev/hme \? --- displays all command options for ndd #ndd /dev/hme link_status --- displays the hme0 link status
The above configurations should be followed in order.