Solved

How change IP address on SunOS

Posted on 1997-11-24
5
1,417 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

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Telepresence on backup 3 54
decoding the error message TEI_ASSIGNED 8 80
SBS2011 VPN users no longer connecting 4 22
GPS For Commercial Vehicles 10 20
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…
I had an issue with InstallShield not being able to use Computer Browser service on Windows Server 2012. Here is the solution I found.
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…
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…

685 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