Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Two default gateway

271 views
Skip to first unread message

bob123

unread,
Jun 30, 2009, 3:35:46 PM6/30/09
to
Hi,

AIX 6.1
I changed my AIX box from a VLAN to another VLAN.
Seems OK, but after there are two default gateway, weird ?
I did:
# route delete default xxx.xxx.xxx.xxx
and it is ok but lost after a reboot

How can I get rid off the first default gateway
permanently ?

Thanks in advance


Jerry

unread,
Jun 30, 2009, 4:20:11 PM6/30/09
to
The extra gateway is probably stuck in your ODM.

This method works for me:
Run: odmget -q "name=inet0" CuAt

This should return 3 stanzas for you, "hostname" and the 2 "route"s.

If you see the the "stuck" route then run (changing "192.168.1.254" to
whichever route you wanted deleted):
odmdelete -o CuAt -q "name=inet0 AND attribute=route AND value='net,-
hopcount,0,,0,192.168.1.254'"

Then restart your tcp/ip services *before* you reboot

Josef Walzer

unread,
Jun 30, 2009, 5:02:00 PM6/30/09
to
Jerry wrote:

It's the same way, but IMHO these commands are easyer to type:
Checking by "lsattr -El inet0"
Removing by "chdev -l inet0 -a delroute=<route entry from lsattr-cmd>

should be ok without rebooting

Thomas Braunbeck

unread,
Jul 4, 2009, 8:20:49 AM7/4/09
to
Jerry schrieb:

> The extra gateway is probably stuck in your ODM.
>
> This method works for me:
> Run: odmget -q "name=inet0" CuAt
>
> This should return 3 stanzas for you, "hostname" and the 2 "route"s.
>
> If you see the the "stuck" route then run (changing "192.168.1.254" to
> whichever route you wanted deleted):
> odmdelete -o CuAt -q "name=inet0 AND attribute=route AND value='net,-
> hopcount,0,,0,192.168.1.254'"
>
> Then restart your tcp/ip services *before* you reboot
>
and savebase before you reboot
0 new messages