Thread Tools Search this Thread
Operating Systems AIX gateway
# 1  
Old 06-22-2008

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  
Old 06-23-2008
route delete <dest_ip> <gw_ip>

But check the ODM too (if it's a Def. GW) maybe with
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
bosboot -ad /dev/ipldevice

# 3  
Old 06-23-2008
what do you means by destination address?
# 4  
Old 06-23-2008
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  
Old 06-23-2008
# netstat -rn
Routing tables
Destination Gateway Flags Refs Use If PMTU Exp Groups

Route Tree for Protocol Family 2 (Internet):
default UGcA 0 0 en1 - - - =>
default UGcA 0 0 en1 - - - UGc 0 0 en1 - - - UGHW 2 2318 en1 - - - => UGc 0 0 en1 - - -
127/8 U 10 8961 lo0 - - - UGc 0 0 en1 - - -
172.29.2/25 U 4 84890 en1 - - - UGHS 5 73 lo0 - - - => UGc 0 0 en1 - - - => UG 0 0 lo0 - - - UHSb 5 85182 en1 - - - UGc 0 0 en1 - - - UGHW 0 6 en1 - - - => UGc 0 0 en1 - - - UHSb 0 0 en0 - - - =>
192.168.1/24 U 0 1 en0 - - - UGHS 0 1 lo0 - - - => UG 0 0 lo0 - - - 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:
If possible pls.
# 6  
Old 06-23-2008
I already explained you how to purge it. Where is the problem? Smilie
# 7  
Old 06-24-2008
perform this:
route delete -net
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. UNIX for Beginners Questions & Answers

Inconsistency between RedHat 6.5 global gateway and single gateway leads to loss of default gateway

Dear friends I use RedHat 6.5, which sets the gateway in the configuration file / etc / sysconfig / network as GATEWAY =, and the gateway in the configuration file / etc / sysconfig / network-scripts / ifcfg-eth11 as GATEWAY = The two gateways are different.... (6 Replies)
Discussion started by: tanpeng
6 Replies

2. Linux

GNUGK-How to setup static gateway to gateway routing

Dear Sir I am a newbie in the world of IP telephony. I have been working with Asterisk PBX (SIP) and Cisco Call Manager (MGCP) but now I am learning on how to work GNUGK for H.323 Gatekeeper. I am having a problem, configuring static call routing on GNUGK in the section ... (0 Replies)
Discussion started by: mfondoum
0 Replies

3. AIX

Can not Ping Gateway

Hello, I am new to Unix :D and have been trying to configure an AIX server running 5.3. I used smitty or smit to configure interface 0 on the server. I am able to ping the IP I set, however I am still unable to ping the gateway. I configured the IP by navigating to Communications Applications... (6 Replies)
Discussion started by: cdub50
6 Replies

4. Solaris


Hi all, Just now i had change the gateway for a server Go to /etc/defaultrouter, change to route delete default route add default now cannot telnet to the server already.. any idea? (5 Replies)
Discussion started by: SmartAntz
5 Replies

5. AIX

Help with Default Gateway

Hi, I have two interfaces on m AIX 5.3 box. One going to 192.168.1.x and it has a gateway of I configured the other gateway with 192.168.2.x and the default gateway as But I can't get connectivity to the network. Can someone help me out and let me know... (7 Replies)
Discussion started by: bbbngowc
7 Replies

6. SCO

SCO Gateway

Hy everybody ! I'm new on your forum, i'm french and don't speak a good english, so scuse me please for it ! I would to know how modify a gateway on a SCO 5.06 We have a problem, we have multi "beach" adress, one is 192.1.1.x, an other is 192.1.4.x Actually, the computer on 192.1.4.x... (2 Replies)
Discussion started by: LB59
2 Replies

7. Programming

how we can get gateway address

how we can get the gateway address. i know gethostname used for ipaddress how we can get the system gateway address. thank u inadvance, sree (2 Replies)
Discussion started by: phani_sree
2 Replies

8. Red Hat


Hi, in which file and how shuold be decalred a gateway and its IP adresse ? Where and how add a gateway ? Many thanks before. (3 Replies)
Discussion started by: big123456
3 Replies

9. IP Networking


I used "route" to add the default gateway I wrote this: route add default 19x.x.x.x 0 but this is not permanent default gateway. Do I need to use another command? Thank a lot (2 Replies)
Discussion started by: lmena
2 Replies

10. UNIX for Dummies Questions & Answers

gateway address

How can I change the gateway address on my sco Openserver 5.0.6. A cisco firewall is recently installed but the gateway on the system is still pointing at the old one. I want it to use the gateway address of the router. Please help. Thanks (2 Replies)
Discussion started by: sshokunbi
2 Replies
Login or Register to Ask a Question

Featured Tech Videos