Solved

How change IP address on SunOS

Posted on 1997-11-24
5
1,418 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_
[X]
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
  • 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

Online Training Solution

Drastically shorten your training time with WalkMe's advanced online training solution that Guides your trainees to action. Forget about retraining and skyrocket knowledge retention rates.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
pfsense upgrade from 2.2.6 to 2.3.3 28 86
WSUS Cannot Sync with Microsoft Update 4 78
qbutilities dll could not be found 27 93
Esxi host disconnected in Vcenter 26 132
PRTG Network Monitor lets you monitor your bandwidth usage, so you know who is using up your bandwidth, and what they're using it for.
This article will inform Clients about common and important expectations from the freelancers (Experts) who are looking at your Gig.
After creating this article (http://www.experts-exchange.com/articles/23699/Setup-Mikrotik-routers-with-OSPF.html), I decided to make a video (no audio) to show you how to configure the routers and run some trace routes and pings between the 7 sites…
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…

732 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