Visit Our UNIX and Linux User Community

Can not remove static route from AIX 5.3

Thread Tools Search this Thread
Operating Systems AIX Can not remove static route from AIX 5.3
# 1  
Old 09-15-2009
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,, 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 UG 102 35179371 en2 - - UHSb 0 0 en2 - - =>
10.180/21 U 131 321332968 en2 - - UGHS 4 3786348 lo0 - - UHSb 0 5 en2 - -
127/8 U 15 2409 lo0 - - UGHS 5 15967231 en3 - - UHSb 0 0 en3 - - =>
192.168.30/24 U 2 272 en3 - - UGS 0 54 en3 - - UGHS 0 145 lo0 - - UHSb 0 5 en3 - -

The command with smitty looks like this:

Destination TYPE host
* DESTINATION Address []
(dotted decimal or symbolic name)
* Default GATEWAY Address []

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 gw
0821-287 gw: bad value
biete 11:46:20 root:/u01# route delete
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?
# 2  
Old 09-15-2009

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,,,,,,, Route True
route net,-hopcount,0,,0, Route True

and remove it:
chdev -l inet0 -a delroute="net,-hopcount,0,,0,"

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

Hope this helps
# 3  
Old 09-16-2009

I have to remove route

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 UG 61 35988829 en2 - - UHSb 0 0 en2 - - =>
10.180/21 U 128 328179753 en2 - - UGHS 5 3836686 lo0 - - UHSb 0 5 en2 - -
127/8 U 15 2476 lo0 - - UGHS 5 16290676 en3 - - UHSb 0 0 en3 - - =>
192.168.30/24 U 2 272 en3 - - UGS 0 54 en3 - - UGHS 0 145 lo0 - - 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,, Route True
route net,-hopcount,0,,0, Route True

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

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Pls. help remove the static route

Hi, I am on Linux Redhat 5.3. I added this static route but now I can't seem to take it out. Can you help? netstat -rn Kernel IP routing table Destination Gateway Genmask Flags MSS Window irtt Iface UGH 0 0... (1 Reply)
Discussion started by: samnyc
1 Replies

2. IP Networking

Static route on router

Hi all, This may be the basic question of Routing but I am a sort of new to networking so I am asking. Do I need to put route for my router's LAN port ip to WAN (serial) port ip Or the router itself can communicate between its ports without routes. lan ( ... (3 Replies)
Discussion started by: dextergenious
3 Replies

3. Red Hat

Static route not added

Hello Guys.. I am facing this weird problem of static route not added after reboot!! Following is my route-<interface> file.. # cat /etc/sysconfig/network-scripts/route-eth0 ADDRESS0= NETMASK0= GATEWAY0= ADDRESS1= (3 Replies)
Discussion started by: parth_buch
3 Replies

4. AIX

Edit Static Route

Anyone know how to edit a static route in AIX? I find myself deleting and then recreating the route with the new information. Would be nice to know how to edit the route. (3 Replies)
Discussion started by: bbbngowc
3 Replies

5. Red Hat

static route not working on startup

Hi, Using Centos, under /etc/rc5.d, I wrote a quick script to add my static route when the server gets rebooted. The script doesn't get executed. I did set the permission to 777. After I reboot the server, if I execute, it works manually. I do this all the time on Solaris and never had... (5 Replies)
Discussion started by: samnyc
5 Replies

6. IP Networking

When to use static route on server?

Hi guys, sorry for asking noob question. When do we really need to add a static route on the server? I encounter this situation whereby a client trigger a network packet to the destination but the destination does not know how to return the traffic back to the client (source). The issue was... (4 Replies)
Discussion started by: DrivesMeCrazy
4 Replies

7. AIX

removing static route

#netstat -nr (shows the following with more static routes) UGH 0 29 en0 - - and i just want to remove the above one i tried #smitty rmroute destination type= net dest add = default gateway= net... (1 Reply)
Discussion started by: pchangba1
1 Replies

8. UNIX for Dummies Questions & Answers

Static Route

Hi, Request you to please tell me the command or the process to add the static route in redhat linux. Thanks in Advance. Regards Arun (2 Replies)
Discussion started by: Arun.Kakarla
2 Replies

9. HP-UX

Static route for hpux 11.22

I want to make static route how would I proceed? I'm using "route add DestinationIP gatewayIP hop to 1 I would like to make this permanent, so when it reboots I don't want to loose it, would I do this in netconf file? If so where? I did a search got this site, it didn't help much. ... (2 Replies)
Discussion started by: catwomen
2 Replies

10. IP Networking

static route ?

Hi, I have a machine that sits on 10.2 network. I need to ssh from this to another box that is on both 10.125 & 10.140 VLANs what should I need to do? Thanks! (3 Replies)
Discussion started by: chaandana
3 Replies

Featured Tech Videos