chdev issue adding route

From: Shawn Bierman (BiermanS_at_METHODISTHEALTH.ORG)
Date: 07/14/03

  • Next message: Colin: "Re: How to diagnose scsi/disk error on M80"
    Date:         Mon, 14 Jul 2003 10:53:29 -0500
    To: aix-l@Princeton.EDU
    
    

    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: Colin: "Re: How to diagnose scsi/disk error on M80"

    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)
    • chdev issue adding route
      ... 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. ...
      (AIX-L)