Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
Solved

How change IP address on SunOS

Posted on 1997-11-24
5
1,415 Views
Last Modified: 2013-12-23
I have:
   SunOs 4.1.3
   /etc/hosts:
ššš127.0.0.1šš hostname localhost

How can I connect this host to my LAN (need change IP address to 192.0.0.1) and start on one nfsd.

I attempt:
    /etc/hosts:
ššš 127.0.0.1šš localhost
ššš 192.0.0.1šš hostname
but do not work, many errors:
    ššš rpc.lockd: Cannot contact status monitor

Thanks
Alex Pas
alex@vidar.ru
0
Comment
Question by:_alex_
  • 2
  • 2
5 Comments
 
LVL 2

Expert Comment

by:df020797
ID: 1583021
To chnage IP you must change in /etc/hosts file and in the /etc/rc.d/rc.something file that contains all network info. Then reboot and its done...
(I assumed ya meant SunOS 4.1.X when ya said SunOS)

If ya meant SunOS 5.x, Solaris 2.X you need to this to change IP
Change in the /etc/hosts. Make sure ya change /etc/defaultrouter also so the kernelrouting table is correct. DOnt forget to change in your DNS if you run one and NIS server if you run one.
0
 

Author Comment

by:_alex_
ID: 1583022
>> /etc/rc.d/rc.something
where detaile?
0
 
LVL 2

Expert Comment

by:df020797
ID: 1583023
Gawd... :)
Was ages since I went through /etc/rc.d/rc*  files on a SunOS 4.1.X :-)

Ok.. to make it simple... prompt> grep IP /etc/rc.d/rc.*
Then you ll get a list of in which files the word IP is used...
I think it is rc.nework... but thats to simple... they prolly hided it better... but with this grep you at least ar able to make eductaed guesses :)

0
 

Author Comment

by:_alex_
ID: 1583024
I have only one line in /etc/hosts:
  127.0.0.1 hostname localhost
How can I assigned IP address to host??
If I add second line in /etc/hosts:
  192.0.0.1 hostname
this do't work.
In rc* I can't find IP.


0
 
LVL 1

Accepted Solution

by:
dhughes111797 earned 50 total points
ID: 1583025
You're on the right track, you need to add that second line to /etc/hosts.
However, the 'status monitor not responding message' has nothing
to do with your IP address. You also need to create a file called /etc/hostname.le0
containing the name of the host (same as in /etc/hosts).  And,
rm -rf /etc/sm*/* to get rid of the statd messages.
nfsd's are controlled in /etc/rc.local. You need to add a line
like this:
/export -access=host1,host2,host3
0

Featured Post

Netscaler Common Configuration How To guides

If you use NetScaler you will want to see these guides. The NetScaler How To Guides show administrators how to get NetScaler up and configured by providing instructions for common scenarios and some not so common ones.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

This is an article about my experiences with remote access to my clients (so that I may serve them) and eventually to my home office system via Radmin Remote Control. I have been using remote access for over 10 years and have been improving my metho…
Most of the applications these days are on Cloud. Cloud is ubiquitous with many service providers in the market. Since it has many benefits such as cost reduction, software updates, remote access, disaster recovery and much more.
Internet Business Fax to Email Made Easy - With  eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, f…
Here's a very brief overview of the methods PRTG Network Monitor (https://www.paessler.com/prtg) offers for monitoring bandwidth, to help you decide which methods you´d like to investigate in more detail.  The methods are covered in more detail in o…

791 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question