Originally posted by: SystemAdmin
Does anyone know how to maintain a changed GW on reboot? I need to permanently remove the .254 GW but it returns every reboot despite all my efforts to remove it.
e.g.
bash-2.05# netstat -rn
Routing tables
Destination Gateway Flags Refs Use If PMTU Exp Groups
Route Tree for Protocol Family 2 (Internet):
default 10.130.12.254 UGc 0 0 en0 - - =>
default 10.130.12.1 UGc 0 0 en0 - -
<snip>
bash-2.05# route delete 0 10.130.12.254
10.130.12.254 net 0: gateway 10.130.12.254
Now it looks good:
bash-2.05# netstat -rn
Routing tables
Destination Gateway Flags Refs Use If PMTU Exp Groups
Route Tree for Protocol Family 2 (Internet):
default 10.130.12.1 UGc 0 0 en0 - -
10.130.11.10 10.130.12.1 UGHW 0 480 en0 - 1
<snip>
bash-2.05# route change 0 10.130.12.1 -active_dgd
-active_dgd net 0: gateway 10.130.12.1
Looking even better:
bash-2.05# netstat -rn
Routing tables
Destination Gateway Flags Refs Use If PMTU Exp Groups
Route Tree for Protocol Family 2 (Internet):
default 10.130.12.1 UGcA 0 0 en0 - -
10.130.11.10 10.130.12.1 UGHWA 0 45 en0 - 1
Reboot and go get a coffee:
Now the machine does not return a ping except to machines on the same subnet and it is back to the original netstat:
bash-2.05# netstat -rn
Routing tables
Destination Gateway Flags Refs Use If PMTU Exp Groups
Route Tree for Protocol Family 2 (Internet):
default 10.130.12.254 UGc 0 0 en0 - - =>
default 10.130.12.1 UGc 0 0 en0 - -
<snip>
Previously it was returning pings from machines on various different subnets.
There must be something simple that I am missing, Can anyone help?
Thanks
#AIX-Forum