Solved

changing the IP address,Subnet mask for SunOS 5.7 after installation

Posted on 2002-04-10
3
2,648 Views
Last Modified: 2011-10-03
I have server Sun solaris v. 5.7,
I want to change the Subnet mask for the server.
what is the files that need change ?

if i want to change the IP address for the server ,
what is the files that need change ?

Thank you very mush
0
Comment
Question by:rami_tawfiq
[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
3 Comments
 
LVL 14

Expert Comment

by:chris_calabrese
ID: 6931055
/etc/inet/netmasks
0
 
LVL 3

Expert Comment

by:UkWizard
ID: 6931903
Masks are in /etc/networks


To change ip address for interface hme0, check /etc/hostname.hme0, then edit /etc/hosts for the entry stated in the first file.

reboot to make changes, check it works.

Enjoy, oh, Chris is also right about the mask
0
 
LVL 38

Accepted Solution

by:
yuzh earned 75 total points
ID: 6932776
Hi rami_tawfiq,

   The easy to change a server IP or system name, is to use /usr/sbin/sys-unconfig , command to undo your systems configuration, and then reboot your system.

   When system boot up, just following the screen to fill in all the new information about you system configuration.

   if you want to do it manually, backup the following files and then use vi to make the changes:

       /etc/nodename    #if you need to change the name of the machine
   /etc/hostname.interface    (eg hostname.hme0 )
   /etc/hosts                 # Update to reflect new name
   /etc/nsswitch.conf         # Update if your name resolution
   /etc/resolv.conf      
#Update if your name servers/domain changed (DNS only)
   /etc/defaultdomain   # set you default domain
  /etc/defaultrouter      # Set the default router's IP

  /etc/inet/networks             # Set your network name
  /etc/inet/netmasks             # Set your network number
  /etc/n/etc/net/ticots/hosts    # For the streams-level loopback
  /etc/ticlts/hosts       # For the streams-level loopback
  /etc/net/ticotsord/hosts  # For the streams-level loopback

  If you have no experience about this files, please make a backup before making the change. after

you edit all the file, reboot your system.

 =====
yuzh

   
0

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

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

Let's say you need to move the data of a file system from one partition to another. This generally involves dismounting the file system, backing it up to tapes, and restoring it to a new partition. You may also copy the file system from one place to…
Java performance on Solaris - Managing CPUs There are various resource controls in operating system which directly/indirectly influence the performance of application. one of the most important resource controls is "CPU".   In a multithreaded…
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:
Suggested Courses

738 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