Discussion Locked

URGENT: Change my Default Gateway

0 helpful
3 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.
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

3 replies

by cpfeiffe

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

by tmiller3

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 cpfeiffe@copper.net with the same question.
Thanks for the help!

This discussion is closed to new replies.