Re: chdev issue adding route

From: Bill Verzal (BVerzal_at_KOMATSUNA.COM)
Date: 07/28/03

  • Next message: Adams Kevin J: "Re: [Q] rootvg mirror question?"
    Date:         Mon, 28 Jul 2003 10:54:08 -0500
    To: aix-l@Princeton.EDU
    
    

    Do it with "smitty tcpip | Further Configuration | Static Routes"

    BV
    --------------------------------------------------------

    Bill Verzal
    AIX Administrator, Komatsu America
    (847) 970-3726 - direct
    (847) 970-4184 - fax

    |---------+------------------------------>
    | | Shawn Bierman |
    | | <BiermanS@METHODIST|
    | | HEALTH.ORG> |
    | | Sent by: IBM AIX |
    | | Discussion List |
    | | <aix-l@Princeton.ED|
    | | U> |
    | | |
    | | |
    | | 07/28/2003 10:42 AM|
    | | Please respond to |
    | | IBM AIX Discussion |
    | | List |
    | | |
    |---------+------------------------------>
    >-------------------------------------------------------------------------------------------------------------------------------|
      | |
      | To: aix-l@Princeton.EDU |
      | cc: |
      | Subject: chdev issue adding route |
    >-------------------------------------------------------------------------------------------------------------------------------|

    Greetings,

    Working with AIX 5.1 ML3 on a P/690.

    I'm trying to add a route to the inet0 device so that it comes up with it
    on boot. It doesn't appear to take for some reason or I am doing something
    wrong.

    ( a look at inet0 before the change )

    root@nf1n03en1:/ > lsattr -El inet0
    hostname nf1n03en1 Host Name
    True
    gateway Gateway
    True
    route net,-hopcount,1,,-if,en0,,0,10.15.44.254 Route
    True
    bootup_option no Serial Optical
    Network Interface True
    rout6 FDDI Network
    Interface True
    authm 131073,65536 Authentication
    Methods True

    ( I make the change here )

    root@nf1n03en1:/ > chdev -l inet0 -a route='net,-hopcount,0,,
    -if,en1,,0,198.254.18.1'
    inet0 changed

    ( and the change does not show up here )

    root@nf1n03en1:/ > lsattr -El inet0
    hostname nf1n03en1 Host Name
    True
    gateway Gateway
    True
    route net,-hopcount,1,,-if,en0,,0,10.15.44.254 Route
    True
    bootup_option no Serial Optical
    Network Interface True
    rout6 FDDI Network
    Interface True
    authm 131073,65536 Authentication
    Methods True

    ( I should see, or would expect to see, two 'route' lines as I do on my
    other nodes. for example: )

    root@nf1n03en1:/ > rsh nf1n01 lsattr -El inet0
    hostname nf1n01en1 Host Name
    True
    gateway Gateway
    True
    route net,-hopcount,0,,-if,en1,,0,198.254.18.1 Route
    True
    route net,-hopcount,1,,-if,en0,,0,10.15.44.254
    bootup_option no Serial Optical
    Network Interface True
    rout6 FDDI Network
    Interface True
    authm 131073,65536 Authentication
    Methods True
    root@nf1n03en1:/ >

    Am I doing this wrong?

    -shawn


  • Next message: Adams Kevin J: "Re: [Q] rootvg mirror question?"

    Relevant Pages

    • duplicate "default route" entries reported by netstat
      ... # netstat -nr|grep def ... the "route" command won't let you add duplicate ... My "inet0" device appears to be set correctly (I checked it against ...
      (comp.unix.aix)
    • Re: duplicate "default route" entries reported by netstat
      ... # netstat -nr|grep def ... the "route" command won't let you add duplicate ... 0821-279 writing to routing socket: Do not specify an existing file. ... My "inet0" device appears to be set correctly (I checked it against ...
      (comp.unix.aix)
    • Re: Phantom default gateway
      ... Nothing special, just use smitty. ... The static routes are stored in inet0, ... If you don't see the route in netstat, ... After I reboot, netstat -r, shows: ...
      (comp.unix.aix)
    • Re: Phantom default gateway
      ... mentioned for route which is understandable). ... These were historic/legacy default gateways used from the time the box ... we would just go in with smit tcpip and ... So apparently it doesn't overwrite this info in inet0, ...
      (comp.unix.aix)
    • Re: Removing static routes
      ... but with no success. ... Can anyone suggest any other locations that this static route may ... Are routes in 4.2 already attribues of inet0? ... # lsattr -EHOl inet0 ...
      (comp.unix.aix)