To Change Hostname in Solaris 10
1. To temporarily Change Hostname in Solaris10.
bash-3.00# hostname linuxtutors
Note: This command will change your server’s hostname temporarily. But, if the server reboots, this “<hostname>” will not stay.
2. To change your hostname permanently i.e, even if the server reboots <hostname> should same.
bash-3.00# echo linuxtutors > /etc/nodename
bash-3.00# echo linuxtutors > /etc/hosts
bash-3.00# echo linuxtutors > /etc/hostname.e1000g0
Reboot the system
bash-3.00# init 5
Check the hostname
bash-3.00# hostame
linuxtutors
Saturday, April 20, 2013
Solaris: Change hostname in Solaris
Labels:
Solaris
Subscribe to:
Post Comments (Atom)
0 comments:
Post a Comment