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.

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

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

Is that safe to do online? I mean, is there going to be some kind of interruption to the OS and application?

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.