The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

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
SCO Gateway LB59 SCO 2 11-02-2007 10:43 AM
gateway big123456 Red Hat 3 11-22-2005 01:12 AM
Aix Add Gateway josramon UNIX for Dummies Questions & Answers 3 03-21-2003 07:40 AM
gateway lmena IP Networking 2 09-06-2002 05:31 PM
Icq Behind a Gateway some_turtle UNIX for Dummies Questions & Answers 1 02-20-2002 02:03 AM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 06-22-2008
magasem magasem is offline
Registered User
  
 

Join Date: Jul 2006
Posts: 50
gateway

Dear folks,
How can delete the gateway from smitty or by command, Because I have 2 gatway in the system and I tried to delete by smitty it gave me failed command
  #2 (permalink)  
Old 06-23-2008
zaxxon's Avatar
zaxxon zaxxon is offline Forum Staff  
Moderator
  
 

Join Date: Sep 2007
Location: Germany
Posts: 2,259
Code:
route delete <dest_ip> <gw_ip>
But check the ODM too (if it's a Def. GW) maybe with
Code:
odmget -q "name=inet0" CuAt
# or
lsattr -El inet0
and delete the unwanted entry with odmdelete.

Since I had problems when I deleted duplicate Def. GW entries even from ODM and having them back again after a reboot, I always write a new boot image now, when doing such changes
Code:
bosboot -ad /dev/ipldevice
  #3 (permalink)  
Old 06-23-2008
magasem magasem is offline
Registered User
  
 

Join Date: Jul 2006
Posts: 50
what do you means by destination address?
  #4 (permalink)  
Old 06-23-2008
zaxxon's Avatar
zaxxon zaxxon is offline Forum Staff  
Moderator
  
 

Join Date: Sep 2007
Location: Germany
Posts: 2,259
Gateways always point to some network or host. So when you do a "netstat -rn" and look at your routing table, you get one column called "Destination".
  #5 (permalink)  
Old 06-23-2008
magasem magasem is offline
Registered User
  
 

Join Date: Jul 2006
Posts: 50
# netstat -rn
Routing tables
Destination Gateway Flags Refs Use If PMTU Exp Groups

Route Tree for Protocol Family 2 (Internet):
default 172.29.2.127 UGcA 0 0 en1 - - - =>
default 172.29.2.126 UGcA 0 0 en1 - - -
10.96.70.81/32 172.29.2.126 UGc 0 0 en1 - - -
10.96.70.222 172.29.2.126 UGHW 2 2318 en1 - - - =>
10.96.70.222/32 172.29.2.126 UGc 0 0 en1 - - -
127/8 127.0.0.1 U 10 8961 lo0 - - -
172.20.239.192/32 255.255.255.254 UGc 0 0 en1 - - -
172.29.2/25 172.29.2.1 U 4 84890 en1 - - -
172.29.2.1 127.0.0.1 UGHS 5 73 lo0 - - - =>
172.29.2.1/32 172.29.2.126 UGc 0 0 en1 - - - =>
172.29.2.1/32 127.0.0.1 UG 0 0 lo0 - - -
172.29.2.126 172.29.2.1 UHSb 5 85182 en1 - - -
172.29.7.192/27 172.29.2.100 UGc 0 0 en1 - - -
172.29.7.197 172.29.2.100 UGHW 0 6 en1 - - - =>
172.29.7.197/32 172.29.2.100 UGc 0 0 en1 - - -
192.168.1.0 192.168.1.2 UHSb 0 0 en0 - - - =>
192.168.1/24 192.168.1.2 U 0 1 en0 - - -
192.168.1.2 127.0.0.1 UGHS 0 1 lo0 - - - =>
192.168.1.2/32 127.0.0.1 UG 0 0 lo0 - - -
192.168.1.255 192.168.1.2 UHSb 0 4 en0 - - -

Route Tree for Protocol Family 24 (Internet v6):
::1 ::1 UH 0 0 lo0 16896 - -


My problem appeared in above specific lines.
I have 2 Def.Gw I tried to delete from smitty but I can't, also I tried to delete by command but I faced problem in destination address. By the result above I need to proper way to delete GW:172.29.2.127.
If possible pls.
  #6 (permalink)  
Old 06-23-2008
zaxxon's Avatar
zaxxon zaxxon is offline Forum Staff  
Moderator
  
 

Join Date: Sep 2007
Location: Germany
Posts: 2,259
I already explained you how to purge it. Where is the problem?
Closed Thread

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 10:37 PM.


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