1847805 Members
2659 Online
104021 Solutions
New Discussion

Re: route delete HELP!!

 
SOLVED
Go to solution
Tim Medford
Valued Contributor

route delete HELP!!

I've accidentally issued a route -f delete command which removed the default gateway from our dev server. It has dropped off the network and I can only get to it from the console.

Am I correct in assuming any route add or route delete command is temporary until the system is rebooted?

I'm hoping I can just boot it and it will re-read all the original config files and come up fine.

Please advise.

Thanks, Tim
5 REPLIES 5
John Poff
Honored Contributor
Solution

Re: route delete HELP!!

Hi Tim,

Your default route is configured in the /etc/rc.config.d/netconf file, so you should be able to look in there and see what parameters you'll need to re-establish your default route. You can look in that file and issue the 'route add' command to get it back without rebooting.

Something like this:

route add default 10.x.x.x 1

Where 10.x.x.x is the IP address for your default gateway from the netconf file.

Or you can just reboot, but that is a big hammer for a little problem. :)

JP
A. Clay Stephenson
Acclaimed Contributor

Re: route delete HELP!!

You are correct. The routes in /etc/rc.config.d/netconf will be read upon reboot. You could issue a route add command now without a reboot.
If it ain't broke, I can fix that.
Kellogg Unix Team
Trusted Contributor

Re: route delete HELP!!

JP is fast also; Question posted 19:23, JP answered 10:22 !
:-)
work is fun ! (my manager is standing behind me!!)
Kellogg Unix Team
Trusted Contributor

Re: route delete HELP!!

JP is correct. Also, after looking at /etc/rc.config.d/netconf file, issue the following command -

/sbin/init.d/net start

This 'should' bring back your routes back (unless some were defined manually)

HTH
...Manjeet
work is fun ! (my manager is standing behind me!!)
Tim Medford
Valued Contributor

Re: route delete HELP!!

Thanks for the advice everyone. Part of the problem is that I'm 50 miles away from the server and trying to talk someone else through the process.

I had them reboot and we're fine now.