Can not remove static route from AIX 5.3

Dear all,

I Try to remove a static route with smitty, but recieve this error:

Method error (/usr/lib/methods/chginet):
0514-009 Cannot delete an object from the device
configuration database.
0821-216 chginet: Cannot delete route (net,192.168.30.101,192.168.30.1) from CuAt.

My routing table looks like this (the route I want to remove is marked red):

biete 11:40:48 root:/u01# netstat -rn
Routing tables
Destination Gateway Flags Refs Use If Exp Groups

Route Tree for Protocol Family 2 (Internet):
default 10.180.1.1 UG 102 35179371 en2 - -
10.180.0.0 10.180.1.81 UHSb 0 0 en2 - - =>
10.180/21 10.180.1.81 U 131 321332968 en2 - -
10.180.1.81 127.0.0.1 UGHS 4 3786348 lo0 - -
10.180.7.255 10.180.1.81 UHSb 0 5 en2 - -
127/8 127.0.0.1 U 15 2409 lo0 - -
192.168.20.10 192.168.30.1 UGHS 5 15967231 en3 - -
192.168.30.0 192.168.30.121 UHSb 0 0 en3 - - =>
192.168.30/24 192.168.30.121 U 2 272 en3 - -
192.168.30.101/32 192.168.30.1 UGS 0 54 en3 - -
192.168.30.121 127.0.0.1 UGHS 0 145 lo0 - -
192.168.30.255 192.168.30.121 UHSb 0 5 en3 - -

The command with smitty looks like this:

Destination TYPE host

  • DESTINATION Address [192.168.30.101]
    (dotted decimal or symbolic name)
  • Default GATEWAY Address [192.168.30.1]

I also tried Destination TYPE net, but error the same.

I tried to delete route with command line, but got some errors:

biete 11:46:02 root:/u01# route delete 192.168.30.101 gw 192.168.30.1
0821-287 gw: bad value
biete 11:46:20 root:/u01# route delete 192.168.30.101
0821-279 writing to routing socket: The process does not exist.
biete 11:46:24 root:/u01#

Can anyone please help me with some tips how to delete unwanted route?

Hi,

try to run

lsattr -El inet0|grep ^route 

than pick from the output the route you don't like exactly as it is there i.e.

route host,-hopcount,0,,,,,,10.62.61.5,10.23.32.1 Route True
route net,-hopcount,0,,0,50.120.183.133 Route True

and remove it:

chdev -l inet0 -a delroute="net,-hopcount,0,,0,50.120.183.133"

or

chdev -l inet0 -a delroute="host,-hopcount,0,,,,,,10.62.61.5,10.23.32.1"

Hope this helps
rgds
zxmaus

Hi!

I have to remove route 192.168.30.101/32 192.168.30.1

biete 09:12:29 root:/u01# netstat -rn
Routing tables
Destination Gateway Flags Refs Use If Exp Groups

Route Tree for Protocol Family 2 (Internet):
default 10.180.1.1 UG 61 35988829 en2 - -
10.180.0.0 10.180.1.81 UHSb 0 0 en2 - - =>
10.180/21 10.180.1.81 U 128 328179753 en2 - -
10.180.1.81 127.0.0.1 UGHS 5 3836686 lo0 - -
10.180.7.255 10.180.1.81 UHSb 0 5 en2 - -
127/8 127.0.0.1 U 15 2476 lo0 - -
192.168.20.10 192.168.30.1 UGHS 5 16290676 en3 - -
192.168.30.0 192.168.30.121 UHSb 0 0 en3 - - =>
192.168.30/24 192.168.30.121 U 2 272 en3 - -
192.168.30.101/32 192.168.30.1 UGS 0 54 en3 - -
192.168.30.121 127.0.0.1 UGHS 0 145 lo0 - -
192.168.30.255 192.168.30.121 UHSb 0 5 en3 - -

But lsattr -El inet0 | grep route shows only two routes, that I need and do not want to delete (one default one static to specific host)!

biete 09:13:20 root:/u01# lsattr -El inet0 | grep route
route host,-hopcount,0,,,,,,-static,192.168.20.10,192.168.30.1 Route True
route net,-hopcount,0,,0,10.180.1.1 Route True

How can I remove route 192.168.30.101/32 192.168.30.1 (please see netstat -rn output above)!?