Static IP getting changed after 24 hours

Hi All,

We have an AIX 5.3 server where I have set static IP but after every 24 hrs it is setting some other IP to this machine (I believe some DHCP process is running in the background every 24 hrs).

I want to set the Static IP permanent to this machine, can some one help me where the problem is and how can i set the static IP permanently.

Thanks,
Balaji

Usually this doesn't happen on it's own. Is the box rebooted every 24h so that it asks for IP via DHCP or is there a mysterious cron job running every 24h ?

Hi,

We are not restarting the machine, even if login from remote console after 24 hrs (time starts after i activate static IP) it is logging out and changing the IP.

Here is my CRONTAB looks like

bash-3.00# crontab -l
# @(#)08 1.15.1.3 src/bos/usr/sbin/cron/root, cmdcntl, bos530 2/11/94 17:19:47
# IBM_PROLOG_BEGIN_TAG
# This is an automatically generated prolog.
#
# bos530 src/bos/usr/sbin/cron/root 1.15.1.3
#
# Licensed Materials - Property of IBM
#
# (C) COPYRIGHT International Business Machines Corp. 1989,1994
# All Rights Reserved
#
# US Government Users Restricted Rights - Use, duplication or
# disclosure restricted by GSA ADP Schedule Contract with IBM Corp.
#
# IBM_PROLOG_END_TAG
#
# COMPONENT_NAME: (CMDCNTL) commands needed for basic system needs
#
# FUNCTIONS:
#
# ORIGINS: 27
#
# (C) COPYRIGHT International Business Machines Corp. 1989,1994
# All Rights Reserved
# Licensed Materials - Property of IBM
#
# US Government Users Restricted Rights - Use, duplication or
# disclosure restricted by GSA ADP Schedule Contract with IBM Corp.
#
#0 3 * * * /usr/sbin/skulker
#45 2 * * 0 /usr/lib/spell/compress
#45 23 * * * ulimit 5000; /usr/lib/smdemon.cleanu > /dev/null
0 11 * * * /usr/bin/errclear -d S,O 30
0 12 * * * /usr/bin/errclear -d H 90
0 15 * * * /usr/lib/ras/dumpcheck >/dev/null 2>&1
# SSA warning : Deleting the next two lines may cause errors in redundant
# SSA warning : hardware to go undetected.
01 5 * * * /usr/lpp/diagnostics/bin/run_ssa_ela 1>/dev/null 2>/dev/null
0 * * * * /usr/lpp/diagnostics/bin/run_ssa_healthcheck 1>/dev/null 2>/dev/null
# SSA warning : Deleting the next line may allow enclosure hardware errors to go undetected
30 * * * * /usr/lpp/diagnostics/bin/run_ssa_encl_healthcheck 1>/dev/null 2>/dev/null
# SSA warning : Deleting the next line may allow link speed exceptions to go undetected
30 4 * * * /usr/lpp/diagnostics/bin/run_ssa_link_speed 1>/dev/null 2>/dev/null
00 02 * * 1 /usr/ibm/common/acsi/bin/collectbatch.sh > fsout.log 2>&1

And also while i am setting the static IP using "smitty tcpip" i am giving start TCP/IP Yes as shown bellow, is there anything because of this?

START TCP/IP daemons Now yes

Hm, then I currently have no further idea, sounds mysterious...

What does (insert your interface where I have en0)

odmget -q "name = en0" CuAt

show?

Also you can check if any dhcp related stuff is running:

lssrc -a| grep -i dhcp

TBH, I never configured dhcp on any server since I think that's nonsense and never had to but nevertheless, let see if you can find anything.

bash-3.00# odmget -q "name = en0" CuAt

CuAt:
name = "en0"
attribute = "state"
value = "up"
type = "R"
generic = "DU"
rep = "sl"
nls_index = 5

CuAt:
name = "en0"
attribute = "netaddr"
value = "155.35.12.19"
type = "R"
generic = "DU"
rep = "s"
nls_index = 4

CuAt:
name = "en0"
attribute = "netmask"
value = "255.255.255.0"
type = "R"
generic = "DU"
rep = "s"
nls_index = 8
bash-3.00#

I don't recognize anything that could point to DHCP... Please check for the other command I added to my previous post (lssrc ...), ty.

Hi,

i got this when i execute "lssrc -a| grep -i dhcp"

bash-3.00# lssrc -a| grep -i dhcp
dhcpcd tcpip 106646 active
dhcpcd6 tcpip inoperative
dhcpsd tcpip inoperative
dhcpsdv6 tcpip inoperative
dhcprd tcpip inoperative

Make sure this one is stopped with

stopsrc -s dhcpcd

Here is what it does:
pSeries and AIX Information Center

So this one could be the reason. It is is inoperative on all our servers.

To not start it at boot, check your /etc/rc.tcpip:

The bold line could be uncommented in your case. If that's the case, comment it. Stop it and reboot the box when you get a chance to see if it worked. Else just stop the dhcpcd and wait if it's still changing the IP address.

It works, i have restarted the machine and it is fine now.

Thanks a lot for your Help.

Np :slight_smile: