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

Defaultrouter 1

Status
Not open for further replies.

BIS

Technical User
Joined
Jun 1, 2001
Messages
1,897
Location
NL
Hallo All,

Here is a very silly question probably.

If I make changes to the defaultroute as configured in /etc/hosts, does this take effect immediately, or would I need to restart the network services?
 
/etc/hosts? Did you mean /etc/defaultrourter, as per the subject line?

No, it won't take effect immediately. The simplest thing would be to route delete default and then route add default `cat /etc/defaultrouter`.

Annihilannic.
 
Thanks,

/etc/defaultrouter contains an entry 'defaultroute' which is defined in /etc/hosts - don't ask me why, that's how this box was set up.

I guess I can just delete it, then route add default x.x.x.x ?

but this would not survive a reboot.
 
Ah, I see. Correct, so just update /etc/hosts with the new IP address, then use the commands I mentioned and the change should be permanent.

Annihilannic.
 
Thanks Annihilannic, sometimes it's the simplest of things that get you confused. Your help is very much appreciated.
 
to change the default you can also do:

route change default <IP>
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top