I am running Solaris 8 and when I type hostname if returns "unknown", when I was installing Solaris 8 I put UNIX as the host. Can I change this with out having to reinstall Solaris 8?
do you have a file called hostname.hme0 or similar in your /etc directory?
try removing anything in that file and write only UNIX in it. Take a look at your hosts file in /etc as well.
Can you telnet to the ip-adress of the machine?
If yes, look in your hosts file and try telnet to the name after the machine´s ip-adress.
I´m new to solaris... This could be totally wrong but a qualified quess is better then none at all. /Sören
I'm not shur about solaris 8 but in previous version all you need to do is run :
/usr/sbin/sys-inconfig
sys-unconfig will take you through the first part of you installation ( system indentifcation ) and allow you to configure your hosts indentity again without reinstalling!
ALSO:
you can but the IP address of you machine in the /etc/hostname.hme0 instead of the machine name.
or
If you put the machine name (unix) in the /etc/hostname.hme0 then this is dependant on the /etc/hosts file to know the Ip Address.
eg.
/etc/hostname.hme0 -> unix
/etc/hosts ( must have ) 10.0.0.1 unix
if you're using a proper DHCP server, i.e. the one that comes with solaris for a start, then the server will provide you with a proper name from it's/NIS/DNS hosts file. It's really only the PC variants of DHCP that skimp on the job.
I have a mounted NFS filesystem in solaris machine from AS400 when I try to list directory in this fs I cannot find files which exist in the same directory in AS400, when I list with the complet name of the file I got the file.
I have found that sys-unconfig also disturbed other parts of my configuration and I was not happy with the result. It seemed too invasive. It actually disturbed the operation of some applications.
I am still looking for the way to change the identity of a solaris-8 machine (hostname and IP address) with the least amount of disruption to the rest of the existing configuration. I also need to change the IP address so it hme0 is set to the new address on the next reboot. Does someone know how to do this?
I'm interested in this particular problem for my own needs. Thanks for all the responses. I'll be watching this thread for more info.
if you want to change Ip address, first you have check>
# ifconfig -a
then
# ifconfig le0 or le1 xxx.xxx.xxx.x up
where is xxx.xxx.xxx.x is IP address.
try changing the host name
vi /etc/hosts
insert a new host name.
or in command line # set hostname < new name> then enter
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.