General discussion


URGENT: Change my Default Gateway

By Tmiller3 ·
I have to change my default gateway "or I'm learning maybe it's called Default Route" in my 1 Unix server. I don't know how and I need to do it urgently!! Please help

This conversation is currently closed to new comments.

Thread display: Collapse - | Expand +

All Comments

Collapse -

by cpfeiffe In reply to URGENT: Change my Defaul ...

Different versions of Unix have different ways to make the change permanent. Please give me your version of Unix (i.e. Solaris, HP-UX, AIX, etc.). You can email my alias.

To make the immediate change
netstat -rn will show your default route. It is identified either by the word default or by depending on your version of Unix. To change it.

route delete default $destination_ip
route add default $new_destination_ip

This changes it for now, but on the next reboot it will go back to the previous configuration.

If you are running Solaris you would modify /etc/defaultrouter to make the change permanent. If you are running another OS please let me know and I'll tell you how to make the change permanent there.

Collapse -

by Tmiller3 In reply to

Thanks... this saved me yesterday. And I appreciate the quick response!

I'm not sure what version of Unix I have. I'm limping along with this old system until I can replace it. Anyway, I thought the answer was "SCO", but I'm thinking maybe not. Can you tell me how I can check? I can say that the default route was shown by the word "default" when I did a netstat -rn. If you have the time to answer, I e-mailed you at with the same question.
Thanks for the help!

Collapse -

by Tmiller3 In reply to URGENT: Change my Defaul ...

This question was closed by the author

Related Discussions

Related Forums