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
»
- Add new comment
- 9907 reads

Solaris 10 : /etc/inet/ipnodes and /etc/inet/hosts
to change defaultrouter without reboot use:
route default delete
route default add
Also, don't forget to update the contents of the sshd_config (ssh config files) otherwise you'll be locked out of the server after the IP changes.
~
E
if you could explain the location of the sshd-config files; it would be more useful
the location is : /etc/ssh/sshd_config