Re: Gateway reset on reboot (was: xnptd insane after reboot)

From: Robert Miller (rmiller_at_SMUD.ORG)
Date: 05/19/05

  • Next message: JOSEPH KREMBLAS: "AUTOMOUNT PROBLEMS USING NIS"
    Date:         Wed, 18 May 2005 15:00:13 -0700
    To: aix-l@Princeton.EDU
    
    

    Also, if you do a 'smitty tcpip' to set the hostname/primary IP address
    (for en0, for instance), that lets you set the default route/gateway,
    which will persist through a reboot because it gets put in the ODM.

    --rm

    -----Original Message-----
    From: IBM AIX Discussion List [mailto:aix-l@Princeton.EDU]On Behalf Of
    hercom
    Sent: Wednesday, May 18, 2005 2:48 PM
    To: aix-l@Princeton.EDU
    Subject: Re: Gateway reset on reboot (was: xnptd insane after reboot)

    I had a similar issue... I had to flush the table and remove all the
    network
    interfaces (smitty-further configuration), cfgmgr and put the values
    again.

    Also check on the scripts in /etc/rc.d/ for the "routeadd" statement.

    -----Original Message-----
    From: IBM AIX Discussion List [mailto:aix-l@Princeton.EDU] On Behalf Of
    Dave
    Stewart
    Sent: Wednesday, May 18, 2005 3:37 PM
    To: aix-l@Princeton.EDU
    Subject: Gateway reset on reboot (was: xnptd insane after reboot)

    Hi folks!

    Sorry it's been so long for me to respond to this, I was told by the
    senior dude here that this would be fixed and I didn't have to worry
    about it. Apparently it's not fixed yet (I just rebooted this server
    and spent the next 15 minutes getting it back on the network) and the
    senior admin is out of the country for a couple of weeks, so I'm taking
    a crack at it. (I'm trying to set this old machine up as a internal DNS
    server as well as a time server, so I'd like to resolve this issue:).

    Disclaimer: I don't know what I'm doing. OK, that may be a little
    drastic, but I'm not a studied AIX admin yet so please be a little
    patient with me.
    ;-)

    On Apr 7, 2005, at 9:02 PM, Bob Booth - CITES offered this insight:

    >>
    >> Next question, why does this server (IBM E20 running AIX 5.1) keep
    >> resetting it's gateway on a reboot? Where *could* it be caching this
    >> old gateway value?
    >
    > How exactly is the gateway being set through smit? If done correctly,
    > the
    > gateway information is stored in the ODM and set when the machine
    > comes up.

    smitty tcpip
    Minimum Configuration & Startup
    en2 (desired network interface; we also have en1 configured with a
    different address, but with the same issue)
    new default gateway is set in the "Default Gateway" entry and I hit
    <enter> to make it happen.

    Note at this point I usually have to flush the routing tables, as the
    old gateway is often littered throughout it.

    >
    > You can check what value is stored in the ODM to make sure it is
    > correct:
    >
    > odmget -q name="inet0" CuAt

    Gee, this gives me a bunch of stuff. Some of it looks right, but most
    of it looks just wrong. I show 26 entries similar to the following:

    CuAt:
             name = "inet0"
             attribute = "route"
             value = "net,-hopcount,5,,0,192.168.2.253"
             type = "R"
             generic = "DU"
             rep = "s"
             nls_index = 0

    CuAt:
             name = "inet0"
             attribute = "route"
             value = "net,-hopcount,0,,0,192.168.12.2"
             type = "R"
             generic = "DU"
             rep = "s"
             nls_index = 0

    Above, the first example is just wrong (old network value), the second
    example shows the new (correct) gateway value.

    Sorry, I just don't know what this means or how to deal with it. I can
    handle smitty OK and have man-handled the routing tables before, but
    here I feel like I'm drowning here (well over my head). I feel like I
    want to blast all these CuAt entries away and start over, but I don't
    know how to do that or if it would even fix my issue.

    If there is a chapter in the docs I should be reading, please feel free
    to direct me there.

    >
    > If the gateway is correct, I bet someone went into one of the 'rc'
    > files and
    > created a 'route add default' statement somewhere.
    >
    > Let me know if I can assist further.
    >
    > bob

    Please? Some of these CuAt entries look right, but others are just
    pollution that needs to go away. Is there a way to make chdev remove
    these entries for me? I know I can add an entry that way, but how to
    delete one? I tried the following (as a guess) and it claimed to change
    inet0, but didn't find any joy with it (entry is still there!):

    chdev -l inet0 -a routedelete=net,-hopcount,5,,0,192.168.2.253

    Looking forward to enlightenment and learning something new ...

    Dave Stewart
    Aqua~Flo Supply (Goleta CA)
    dstewart at aquaflo dot com

    An ASCII character walks into a bar. Bartender asks, "What'll you
    have?" ASCII character says, "Give me a double." Bartender asks,
    "Having a bad day?" ASCII character says, "Yeah, I have a parity
    error." Bartender says, "Hmmm. I thought you looked a bit off."


  • Next message: JOSEPH KREMBLAS: "AUTOMOUNT PROBLEMS USING NIS"

    Relevant Pages

    • Re: xnptd insane after reboot
      ... On Apr 5, 2005, at 9:01 PM, Bob Booth offered this insight: ... with the old gateway value after each reboot). ... the xntpdc command returns the correct peers and stopping/restarting ...
      (AIX-L)
    • Re: What now?
      ... machine would reboot. ... I sent the computer back to Gateway. ... nor Tiger Direct have offered to help me any ... I'm sure the problem is the mobo. ...
      (alt.comp.hardware.pc-homebuilt)
    • Can not change default gateway(URGENT!!!)
      ... Everytime after reboot my PC, the default gateway is set to 10.64.x.x in the ... TCP/IP properities(correct default gateway should be 10.128.x.1). ... program will overwrite the default gateway every time at Windows startup ...
      (microsoft.public.windowsxp.network_web)
    • Why Does JINETD Hang Sometimes?
      ... The only cure seems a reboot. ... users use almost NS/VT exclusively. ... Gateway to do the lookup, incoming Telnets fails even locally. ...
      (comp.sys.hp.mpe)
    • Gateway reset on reboot (was: xnptd insane after reboot)
      ... senior dude here that this would be fixed and I didn't have to worry ... > How exactly is the gateway being set through smit? ... Some of these CuAt entries look right, ... Bartender asks, "What'll you ...
      (AIX-L)