remove default gateway on ODM


 
Thread Tools Search this Thread
Operating Systems AIX remove default gateway on ODM
# 1  
Old 06-29-2009
remove default gateway on ODM

Hi All,

I remove the default gateway by using a command line but I need also to remove it from ODM so that reboot will not trigger it back.

How do I remove it from ODM of AIX 5.3?

Thanks for any comment you may add.
# 2  
Old 06-29-2009
From man ifconfig :

Tip: Parameters that you set using the ifconfig command are lost the next time you restart your system. Use the chdev command to change the ODM database for each interface to make parameter changes permanent. Use the lsdev -E -l [interface] command to view the interface attributes and use the chdev -l [interface] -a [attribute=value] command to change the attribute. For example:
lsattr -E -l en0
chdev -l en0 -a tcp_sendspace=65536


so :

lsattr -El inet0
chdev -l inet0 -a delroute=[]


btw, the easiest way is smitty route
# 3  
Old 06-29-2009
yes, the fastest and easiest way to remove default gateway from ODM is
smitty route

or do the following steps

1) Check the default gateway
# netstat -Crn

2) go to smitty tcpip
--> further configuration --> static routes --> Flush route (last option)
there are four options: make all the options yes yes and hit enter

3) go back and check if it has been flushed or not
netstat -Crn
# 4  
Old 06-29-2009
Is that safe to do online? I mean, is there going to be some kind of interruption to the OS and application?
# 5  
Old 06-30-2009
it depends on the application. O/S doesn't have any relation with network Gateway.

Gateway is for routing packets from one segment ( Subnet ) to another.

for example:

if my AIX IP Address is configured 172.16.100.169 and I want to reach 10.10.10.10

then my gateway (whatever IP address given by network admin) should know how to reach 10.10.10.10

that's all.
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 = 192.168.1.26, and the gateway in the configuration file / etc / sysconfig / network-scripts / ifcfg-eth11 as GATEWAY = 192.168.1.256. The two gateways are different.... (6 Replies)
Discussion started by: tanpeng
6 Replies

2. AIX

How to add the attribute to odm if it contains negative value?

Hi All, I am trying to add odm_wait attribute to CuAt programatically using putattr(&pCuAt). I was able to add when the odm_wait has positive value . But, I am facing issues when the odm_wait has negative value As per IBM, these are the odm_wait possible values #define ODM_WAIT -1 /*... (3 Replies)
Discussion started by: Sachin1987
3 Replies

3. AIX

Removing object from ODM base

Hello! I did a big mistake and now I have to change the ODM base manually :wall: I had a server of test with 2 VG (rootvg and datavg). I had to test something on it with an other AIX version. So, to be sure to restore it, i did a mksysb before but I had completly forgotten the second vg and... (1 Reply)
Discussion started by: Castelior
1 Replies

4. AIX

Problem with the ODM base

Hi, I gonna try to explain my problem. When I list my tty I have something like that: sa3 is the RAN where the tty are connected. Yesterday I tried to delete every tty from the RAN I had a problem with a tty which was not possible to delete with rmdev -dl, so I had to : - delete it... (0 Replies)
Discussion started by: Castelior
0 Replies

5. 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

6. 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 192.168.1.1. I configured the other gateway with 192.168.2.x and the default gateway as 192.168.2.1. But I can't get connectivity to the 192.168.2.1 network. Can someone help me out and let me know... (7 Replies)
Discussion started by: bbbngowc
7 Replies

7. AIX

Odm & Lvm

Can i have BIG help on ODM and LVM??? I m new to AIX..... Devang (2 Replies)
Discussion started by: 10aix
2 Replies

8. AIX

Script for Comparing VGDA and ODM

Hi there guys, if you have already this script as this will help us in determining of the two are consistent, and if it is not, which is the one correct. Hope you also have for this one.:) (1 Reply)
Discussion started by: sky_lark02
1 Replies

9. AIX

Removing devices from ODM

I have replace a couple of hdisks in and old AIX 4 system. I have them assigned to the hdisk numbers previously in the system. When I don an lsvg -p vgname, i see them old devices by device number still come up as missing. I think they are still in the ODM,, how can I remove them? Thanks Mike (5 Replies)
Discussion started by: mhenryj
5 Replies

10. UNIX for Advanced & Expert Users

Clean an LV out of the ODM

I recently had a disk crash and was not able to clean the dump lv off the disk. Now trying to create new lvdump I am running into errors. My question is how do I remove the old lv out of the ODM? I have tried going through smit and also just rmlv and it cannot find the lv. Yet when I run lslv on... (0 Replies)
Discussion started by: Wamland
0 Replies
Login or Register to Ask a Question