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 IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

default route

Status
Not open for further replies.

unixkid

IS-IT--Management
May 22, 2001
105
US
I found my defualt route from "netstat -rn" is wrong. How do I change it & do I have to reboot?
 
That should be /etc/defaultrouter on a sun box

or you could just

route add default xxx.xxx.xxx.xxx
(However the next you boot you would loose the route)

-Danny






 
I did the following:

>route change default 10.131.9.1 0

and also added a entry /etc/defaultrouter Do I need a reboot or anything else I might be missing.
 
netstat -nr #will show you the current routes

As long as the routes are good no need to reboot. (Reboot is only needed to test if the default route gets configured at boot time)

I have had occasions where it did not work, In which case I created my own routing script.

-Danny






 
If you want to do it without rebooting do the following.

run #netstat -nr and notedown default routes.

then
#route delete default xxx.xxx.xx.xxx for all default routes and afterdeleting just run

#route add default xxx.xxx.xxx.xxx ( the only default router which u need to have.

 
What is the Routing table destination and Gateway addresses stand for.
Is the routing destination the same as the router or is it the hub??
Is the default gateway the IP address of the hub??
 
Hello Teser,
Routing destination is the ip address range (a net or a single network device) to which you want to be able to talk to. The default gateway is a routing device to which packets for newtwork devices residing in other nets are sent provided their is no other explicit routing device for this net/device (hence the name "default").

Michael.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top