The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Operating Systems > AIX
.
google unix.com



AIX AIX is IBM's industry-leading UNIX operating system that meets the demands of applications that businesses rely upon in today's marketplace.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
When to use static route on server? DrivesMeCrazy IP Networking 4 07-08-2009 08:32 AM
permanently add static route beaker457 Red Hat 1 04-17-2009 03:16 PM
Static Route Arun.Kakarla UNIX for Dummies Questions & Answers 2 07-17-2008 09:07 AM
Static route for hpux 11.22 catwomen HP-UX 2 10-10-2006 09:55 AM
static route ? chaandana IP Networking 3 07-05-2005 03:05 AM

Reply
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Bulgarian Greek Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 09-15-2009
hrkama hrkama is offline
Registered User
  
 

Join Date: Sep 2009
Posts: 3
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?
  #2 (permalink)  
Old 09-15-2009
zxmaus's Avatar
zxmaus zxmaus is offline Forum Staff  
Moderator
  
 

Join Date: May 2008
Location: /etc/objrepos
Posts: 309
Hi,

try to run

Code:
lsattr -El inet0|grep ^route

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

Code:
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:

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

or

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

Hope this helps
rgds
zxmaus
  #3 (permalink)  
Old 09-16-2009
hrkama hrkama is offline
Registered User
  
 

Join Date: Sep 2009
Posts: 3
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)!?
Reply

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 09:34 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0