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
quick sed help katrvu Shell Programming and Scripting 3 02-21-2008 02:54 AM
Quick help needed in the Shell Script namishtiwari Shell Programming and Scripting 1 02-01-2008 09:44 AM
Need quick help SanjayLinux Shell Programming and Scripting 1 09-25-2007 09:36 AM
How to Achive IP address through MAC(Ethernet) address krishnacins IP Networking 3 08-29-2005 08:45 PM
network address and broadcast address? pnxi UNIX for Dummies Questions & Answers 7 11-10-2003 11:29 PM

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

Join Date: Feb 2007
Posts: 3
IP Address changes - Quick Help Needed.

We are running Solaris 9 and I have changed the IP address, Subnet Mask & Broadcast Address using ifconfig and have also changed the default gateway.

How do I save these changes as I have bounced the box and it reverted back to the old IP Address settings.

I am really new to UNIX and we normally have someone who manages this, but he is off sick at the moment.

Any help would be greatly appreciated.

Thanks

PAUL LEWIS
  #2 (permalink)  
Old 02-22-2007
Perderabo's Avatar
Perderabo Perderabo is offline Forum Staff  
Unix Daemon
  
 

Join Date: Aug 2001
Location: Ashburn, Virginia
Posts: 9,111
IP changed but the hostname is the same, right?

Edit /etc/hosts to change the hostname's ip address. Edit /etc/defaultrouter if that changed.
  #3 (permalink)  
Old 02-22-2007
gingerd2003 gingerd2003 is offline
Registered User
  
 

Join Date: Feb 2007
Posts: 3
Perderabo,

Thanks for this. The host file says the new IP Address of the server (Host name is the same by the way)

I cant seem to find this defaultrouter file / folder under /etc but there is a default folder that contains the following:

-r-xr-xr-x 1 root bin 12 Jun 30 2005 cron
-r--r--r-- 1 root sys 204 Jun 30 2005 devfsadm
-r--r--r-- 1 root sys 3388 Jun 30 2005 dhcpagent
-r--r--r-- 1 root bin 10 Jun 30 2005 fs
-r--r--r-- 1 root sys 719 Jun 30 2005 inetd
-r--r--r-- 1 root sys 1697 Jun 30 2005 inetinit
-r-xr-xr-x 1 root sys 632 Jul 1 2005 init
-rw-r--r-- 1 root root 495 Jun 30 2005 jumpstart
-r--r--r-- 1 root sys 1183 Jun 30 2005 kbd
-r--r--r-- 1 root sys 523 Jun 30 2005 keyserv
-r--r--r-- 1 root sys 2014 Jun 30 2005 login
-r--r--r-- 1 root bin 16511 May 11 2004 lu
-rw-r--r-- 1 root sys 489 Oct 17 2003 metassist.xml
-r--r--r-- 1 root sys 481 Jun 30 2005 mpathd
-rw-r--r-- 1 root sys 1358 Jun 30 2005 nfs
-r--r--r-- 1 root bin 576 Jun 30 2005 nfslogd
-rw-r--r-- 1 root sys 749 Jun 30 2005 nss
-r--r--r-- 1 root sys 74 Jun 30 2005 passwd
-rw-r--r-- 1 root sys 5606 Apr 7 2002 rpc.nisd
-r--r--r-- 1 root sys 703 Jun 30 2005 su
-rw-r--r-- 1 root sys 803 Oct 5 2001 sys-suspend
-r--r--r-- 1 root sys 509 Jun 30 2005 syslogd
-r--r--r-- 1 root sys 526 Jun 30 2005 tar
-r--r--r-- 1 root sys 16 Jun 30 2005 utmpd
-r--r--r-- 1 root sys 509 Jun 30 2005 yppasswdd

Do I have to ammend one of these files under this directory.

Sorry to ask such daft questions it is just that I am really new to all this and dont fully understand the file structure for this OS

Thanks
  #4 (permalink)  
Old 02-22-2007
Perderabo's Avatar
Perderabo Perderabo is offline Forum Staff  
Unix Daemon
  
 

Join Date: Aug 2001
Location: Ashburn, Virginia
Posts: 9,111
You should not need to touch /etc/default/*

/etc/resolv.conf and /etc/netmasks might need a change. Most of these files have links into /etc/inet/* (iirc) and you can look there.

But if /etc/hosts was changed prior to the reboot (and you have no /etc/defaultrouter) then I must suspect that DHCP is being used. That means you have another server somewhere that is telling this server what to use on reboot. You need to track down that other server. If you missed that, you may have missed DNS as well. Your DNS servers (assuming you use them...they would be listed /etc/resolv.conf) need to know the new IP address.
  #5 (permalink)  
Old 02-22-2007
gingerd2003 gingerd2003 is offline
Registered User
  
 

Join Date: Feb 2007
Posts: 3
DHCP Problem it was. We have 2 DHCP servers and we had a reserved address on the first one that I needed to delete. Then the server looked at the 2nd DHCP server and configured itself with the correct IP Address.

Thanks for all your help in this matter perderabo

Cheers
Closed Thread

Bookmarks

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 06:51 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