The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Special Forums > IP Networking
.
google unix.com



IP Networking Learn TCP/IP, Internet Protocol, Routing, Routers, Network protocols in this UNIX and Linux forum.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
unable to setup network,urgent help needed!! wrapster SUN Solaris 23 04-15-2008 03:46 AM
AIX virtualization: IVM initial network setup apsaix AIX 0 12-07-2007 12:48 PM
solaris 10 wireless network setup stakes20 UNIX for Dummies Questions & Answers 0 10-28-2005 07:58 AM
network setup??? arash05 IP Networking 3 06-20-2005 07:03 PM
network setup S26+ SUN Solaris 2 03-13-2005 11:58 PM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Bulgarian Greek Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 05-01-2002
pkappaz pkappaz is offline
Registered User
  
 

Join Date: Sep 2001
Location: Dallas, TX
Posts: 14
Question Network Setup

I am moving a SUN 250 server from one location to another. The IP address has to change in order to make the server visible in the new building. The system administrator has given me the new IP address for the server, the DNS server IP and the default gateway IP. First question, is this all the information I will need to setup the server on a new network. Second question is, where do I make the changes to the IP addresses?

I know about the etc/hosts file, and added the IP of the server there. I tried to update the etc/defaultrouter file but the OS says I can't edit it, nor can I change permissions to allow me to edit it. This means the etc/defaultrouter file points to an IP for another location.
  #2 (permalink)  
Old 05-01-2002
thehoghunter
Guest
  
 

Posts: n/a
Bits: 0 [Banking]
You should be able to edit /etc/defaultrouter - it should have rw-r--r-- on it as permissions.

The following copied from SUNSolve Doc ID 21252 free info doc on changing IP dated 19 Dec 2000 -

Normally to change the hostname for a machine the sys-unconfig command is used.
sys-unconfig affects the six files detailed below.

Note #1: This procedure should not be used for NIS+ masters/replicas or NIS masters.
This is only for client machines.

Note #2: This only changes the information locally. If the system is running NIS/NIS+
and/or DNS, the changes need to be made in these databases as well.


To change the hostname without having running sys-unconfig, edit the following
files:

1) /etc/hosts (change file entry to the new hostname)

2) /etc/nodename (change file entry to the new hostname)

3) /etc/hostname.<interface> (where <interface> is the name of the primary
interface for this system, i.e hostname.hme0 or hostname.le0. Change file entry to the new hostname.)

4) /etc/net/ticlts/hosts (change both columns to the new hostname)

5) /etc/net/ticots/hosts (change both coluums to the new hostname)

6) /etc/net/ticotsord/hosts (change both columns to the new hostname)

To change the IP address for a machine without running sys-unconfig, edit the following files:

1) /etc/hosts (change the IP address)

2) /etc/netmasks (if subnetting is used)

3) /etc/defaultrouter (to specify the new gateway for this subnet)


As always, check the man pages as your system may (and seems to be) different from the norm.
  #3 (permalink)  
Old 05-01-2002
hassan2 hassan2 is offline Forum Advisor  
Registered User
  
 

Join Date: Mar 2002
Location: London, England
Posts: 262
Wink Network Setup

the above procedure by hoghunter is right

To configure the DNS
edit /etc/resolv.conf

you might need to update the default domain if the domain is different from the previous one, this is needed for NIS/NIS+

To update defaultdomain
edit /etc/defaultdomain

default route could be updated by using this command

route add 0 [next hop/gateway]

next hop/gateway being your local router's ip address
Closed Thread

Bookmarks

« duplex | Sendmail »
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 11:40 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0