IP Address changes - Quick Help Needed.


 
Thread Tools Search this Thread
Special Forums IP Networking IP Address changes - Quick Help Needed.
# 1  
Old 02-22-2007
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  
Old 02-22-2007
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  
Old 02-22-2007
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  
Old 02-22-2007
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  
Old 02-22-2007
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
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. UNIX for Advanced & Expert Users

C program to detect duplicate ip address if any after assigning ip address to ethernet interface

Hi , Could someone let me know how to detect duplicate ip address after assigning ip address to ethernet interface using c program (3 Replies)
Discussion started by: Gopi Krishna P
3 Replies

2. IP Networking

Tracing a MAC address to IP address: Solaris

Hi there I lost connectivity to one of our remote systems and when I checked the messages log I found the following: Aug 10 23:42:34 host xntpd: time reset (step) 1.681729 s Aug 16 13:20:51 host ip: WARNING: node "mac address" is using our IP address x.x.x.x on aggr1 Aug 16 13:20:51 host... (9 Replies)
Discussion started by: notreallyhere
9 Replies

3. Shell Programming and Scripting

Quick help on 'awk' needed...!!

bash-2.05$ A=`cat /etc/group |awk -F':' '{if ($1$3$4 ==... (3 Replies)
Discussion started by: ak835
3 Replies

4. Shell Programming and Scripting

Quick Favour needed

Hi there, i currently dont have access to my linux machine and need to get these script files sent to someone. Can someone please create .sh files for me with the code that i have displayed below. It would be very very helpfull. There are 3 different scripts and it would be great if someone... (3 Replies)
Discussion started by: aLderzz
3 Replies

5. UNIX for Dummies Questions & Answers

Panic kernal-mode address fault on user address 0x14

:) Firstly Hi all!!, im NEW!! and on here hoping that someone might be able to offer me some help... i have a server that keeps crashing every few days with the error message: PANIC KERNAL-MODE ADDRESS FAULT ON USER ADDRESS 0X14 KERNAL PAGE FAULT FROM (CS:EIP)=(100:EF71B5BD) EAX=EF822000... (10 Replies)
Discussion started by: Twix
10 Replies

6. Shell Programming and Scripting

Notepad help needed easy quick question

TAKE A LOOK AT THE ATTACHED PICTURE. my goal is just to SELECT n DELETE Those lines : Dialogue: Marked=0,0:02:39.49,0:02:40.49,Default,NTP,0000,00 00,0000,!Effect, (without the text) take a look at that picture... the marked line... i just need ALL of these lines removed.. i managed... (3 Replies)
Discussion started by: mr_spidey
3 Replies

7. UNIX for Advanced & Expert Users

Guidance needed for quick script

Hi all, I am trying to get the exception count daily from a log file which is more than 1 GB in size. I am using loops which get the count of the exception and transaction. But i need to take this exception count for a time frame from 5.00 am to 5:00 pm. I Think I can use to exact the... (4 Replies)
Discussion started by: senthilkumar_ak
4 Replies

8. Shell Programming and Scripting

Quick help needed in the Shell Script

Hiii, i have a doubt here-- I have to take backup of all the files inside directory dir(logs,tmp,corefiles) at the location $BackupLocation.i should take the backup of logs,tmp,corefiles inside the $BackupLocation directory and then remove the files and touch the files inside the directory... (1 Reply)
Discussion started by: namishtiwari
1 Replies

9. IP Networking

How to Achive IP address through MAC(Ethernet) address

Hi sir, i want to make such programe which takes MAC(Ethernet) address of any host & give me its IP address....... but i'm nt getting that how i can pass the MAC address to Frame........ Please give me an idea for making such program... Thanks & regards Krishna (3 Replies)
Discussion started by: krishnacins
3 Replies
Login or Register to Ask a Question