AIX

AIX

Connect with fellow AIX users and experts to gain knowledge, share insights, and solve problems.


#Power
 View Only
Expand all | Collapse all

AIX gateway lost on LPAR !

  • 1.  AIX gateway lost on LPAR !

    Posted Tue May 15, 2012 03:55 AM

    Originally posted by: ilyes


    Hello,
    I'm using AIX 6.1 over vios 2.2, the problem is that when I've created LPARs with 2 networks cards, it seem to be good initially, but when I reboot the LPAR(shutdown -Fr) a strange problem appear ,so the partition is not reachable over the LAN . I'm using the management module to enable networking each time I restart the system.
    I've found that /etc/rc.net can be a work around, I set the default gateway there.
    I've verified the ODM and I found that the config is normal.
    I'm using this plateforme for oracle 11g rac and the dba team stress me to give them a solution!

    Please help
    Best regards
    #AIX-Forum


  • 2.  Re: AIX gateway lost on LPAR !

    Posted Tue May 15, 2012 05:03 AM

    Originally posted by: SystemAdmin


    Hi,

    How do you define your gateway ?
    If you are using route command, it's not persistent across reboot.
    An easy way to define persistent route is to use : smitty route
    #AIX-Forum


  • 3.  Re: AIX gateway lost on LPAR !

    Posted Tue May 15, 2012 05:41 AM

    Originally posted by: ilyes


    Hi,
    thx for your reply ,
    I've used smitty tcpip,smitty chinet and smitty route but the problem still exist , but when I added: /usr/sbin/route add 0 mygateway in the /etc/rc.net , the problem is less recurrent but it still exist indeed
    when I type :odmget -q 'attribute=route' CuAt ,the route doesn't appear usually
    It seem to be that the ODM loose it's gateway ,please a help

    Best regards
    #AIX-Forum


  • 4.  Re: AIX gateway lost on LPAR !

    Posted Tue May 15, 2012 06:11 AM

    Originally posted by: ilyes


    even the command:chdev -l inet0 -a route=net,-hopcount,0,-netmask,255.255.255.0,-if,en4,,my_gateway faild with errors:
    Method error (/usr/lib/methods/chginet):
    0514-068 Cause not known.
    writing to routing socket: File exists
    0821-103 ....
    #AIX-Forum


  • 5.  Re: AIX gateway lost on LPAR !

    Posted Tue May 15, 2012 06:11 AM

    Originally posted by: ilyes


    even the command:chdev -l inet0 -a route=net,-hopcount,0,-netmask,255.255.255.0,-if,en4,,my_gateway faild with errors:
    Method error (/usr/lib/methods/chginet):
    0514-068 Cause not known.
    writing to routing socket: File exists
    0821-103 ....
    #AIX-Forum


  • 6.  Re: AIX gateway lost on LPAR !

    Posted Tue May 15, 2012 06:30 AM

    Originally posted by: SystemAdmin


    Provide me the outputs of next command :

    netstat -rn
    lsattr -El inet0
    #AIX-Forum


  • 7.  Re: AIX gateway lost on LPAR !

    Posted Tue May 15, 2012 06:38 AM

    Originally posted by: ilyes


    root/>netstat -rn
    Routing tables
    Destination Gateway Flags Refs Use If Exp Groups

    Route tree for Protocol Family 2 (Internet):
    default my_gateway_address UG 11 106707 en4 - -
    ....
    root/>lsattr -El inet0
    authm 65536 Authentication Methods True
    bootup_option no Use BSD-style Network Configuration True
    gateway Gateway True
    hostname rac02 Host Name True
    rout6 IPv6 Route True
    route Route True
    ...
    #AIX-Forum


  • 8.  Re: AIX gateway lost on LPAR !

    Posted Tue May 15, 2012 07:32 AM

    Originally posted by: SystemAdmin


    Why do you hide IP adresses ? Do you use public network ?
    I asked you the outputs to look at your values....

    Try setting a default gateway like this :

    
    root# chdev -l inet0 -a route=net,,0,your_gateway
    

    #AIX-Forum


  • 9.  Re: AIX gateway lost on LPAR !

    Posted Tue May 15, 2012 09:09 AM

    Originally posted by: ilyes


    I'm not using public adress,
    root/>chdev -l inet0 -a route=net,,0,10.3.4.254
    inet0 changed

    but the ODM doesn't contain route attribute
    thx
    #AIX-Forum


  • 10.  Re: AIX gateway lost on LPAR !

    Posted Tue May 15, 2012 09:09 AM

    Originally posted by: ilyes


    I'm not using public adress,
    root/>chdev -l inet0 -a route=net,,0,10.3.4.254
    inet0 changed

    but the ODM doesn't contain route attribute
    thx
    #AIX-Forum


  • 11.  Re: AIX gateway lost on LPAR !

    Posted Tue May 15, 2012 09:33 AM

    Originally posted by: SystemAdmin


    Please provide some readable outputs (you could use code syntax '{code}')

    netstat -rn
    lsattr -El inet0
    odmget -q 'name=inet0' CuAt
    #AIX-Forum


  • 12.  Re: AIX gateway lost on LPAR !

    Posted Tue May 15, 2012 09:45 AM

    Originally posted by: ilyes


    root/>netstat -rn
    Routing tables
    Destination Gateway Flags Refs Use If Exp Groups

    Route tree for Protocol Family 2 (Internet):
    default 10.6.8.254 UG 9 119252 en4 - -
    10.6.8.0 10.6.8.200 UHSb 0 0 en4 - - = >
    10.3.4/24 10.3.4.200 U 13 171660 en4 - -
    10.6.8.200 127.0.0.1 UGHS 7 8443 lo0 - -
    10.6.8.210 127.0.0.1 UGHS 2 5567 lo0 - -
    10.6.8.211 127.0.0.1 UGHS 1 5197 lo0 - -
    10.6.8.212 127.0.0.1 UGHS 1 5196 lo0 - -
    10.6.8.255 10.6.8.200 UHSb 0 4 en4 - -
    127/8 127.0.0.1 U 62 269119 lo0 - -
    169.254/16 169.254.161.178 U 51 2124726 en2 - -
    169.254.161.178 127.0.0.1 UGHS 37 103033 lo0 - -
    169.254.255.255 169.254.161.178 UHSb 0 0 en2 - -
    192.168.1.0 192.168.1.21 UHSb 0 0 en2 - - = >
    192.168.1/24 192.168.1.21 U 7 832932 en2 - -
    192.168.1.21 127.0.0.1 UGHS 0 226 lo0 - -
    192.168.1.255 192.168.1.21 UHSb 4 524 en2 - -

    Route tree for Protocol Family 24 (Internet v6):
    ::1%1 ::1%1 UH 45 283193 lo0 - -
    ########################################################################################
    root/>lsattr -El inet0
    authm 65536 Authentication Methods True
    bootup_option no Use BSD-style Network Configuration True
    gateway Gateway True
    hostname rac02 Host Name True
    rout6 IPv6 Route True
    route Route True
    ############################################################################################

    root/>odmget -q 'name=inet0' CuAt

    CuAt:
    name = "inet0"
    attribute = "hostname"
    value = "rac02"
    type = "R"
    generic = "DU"
    rep = "s"
    nls_index = 24
    #AIX-Forum


  • 13.  Re: AIX gateway lost on LPAR !

    Posted Tue May 15, 2012 10:06 AM

    Originally posted by: ilyes


    I've backed up a config of route attribute from the ODM of another aix node and I've restored it and saved the final ODM .

    odmget -q "attribute=route" CuAt > aa
    odmadd aa
    savebase -v
    ...
    Checking boot image size:
    new save base byte cnt = 0x360a
    Wrote 13834 bytes
    Successful completion
    ######
    But this config was defined before and has been changed , so the system cannot be reliable as it is.
    Is this behavior an OS bug ? or in the virtualisation technology ...
    #AIX-Forum


  • 14.  Re: AIX gateway lost on LPAR !

    Posted Tue May 15, 2012 02:26 PM

    Originally posted by: alethad


    I've never seen this issue unless my configs were off because I did something like typos...etc
    I didn't see if you tried removing the NIC entirely and re-config it.
    But here's something I found that looked like what you are experiencing. Wouldn't hurt to give it a look.
    http://unix.ittoolbox.com/groups/technical-functional/ibm-aix-l/default-gateway-issue-on-aix-52-system-803162

    Good Luck.

    You've got to continue to grow, or you're just like last night's cornbread -- stale & dry Loretta Lynn alethad
    #AIX-Forum


  • 15.  Re: AIX gateway lost on LPAR !

    Posted Thu May 17, 2012 03:12 AM

    Originally posted by: ilyes


    By removing the default route from ODM and re-config by chdev the problem is solved ,
    #AIX-Forum