Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Route add problem 1

Status
Not open for further replies.

pauljt

Technical User
Feb 26, 2003
31
GB
Hi, this is my first post on tek-tips.
We have a portable 'Tadpole' machine running 5.8.

When the machine is on the network in London, we could not
access the machine from Birmingham - so I added a default
route using the following syntax:

route add default 255.255.255.255

Checked ok with 'netstat -r' on the routing table.

Machine was now accesible from Birmingham. Great!


But, every time the Tadpole is removed from the network
and rebooted - the default route is lost.
I have to add it again for it to be accesible from
our Birmingham site.


Any ideas how you can "permanentely" add the route so it
is not lost?

or maybe I will have to add it to the startup scripts?


 
The route will have to be added every time you reboot your server, we have found that the best idea is to set up a startup script so that it is done automatically onboot up.

Ray
 
You can also add the default gateway as a single dotted IP entry in the file /etc/defaultrouter
#echo 'nnn.nnn.nnn.nnn' >/etc/defaultrouter
and the machine will automatically use this on boot up.
 
I have also done as alray suggested. Mainly because in our environment there is a need for several routes to be added at boot time. I have a simple script in /etc/rc3.d that handles the route additions there, but if you have an application that is dependent on the route being there before this run level then you might want to set it up in rc2.d.

HTH
-bp
 
Thanks for your help.

I used the solution:

"You can also add the default gateway as a single dotted IP entry in the file /etc/defaultrouter
#echo 'nnn.nnn.nnn.nnn' >/etc/defaultrouter
and the machine will automatically use this on boot up."

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top