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