Subject: Re: network restart
To: Mipam <reinoud@ibbnet.org>
From: Jon Lindgren <jlindgren@espus.com>
List: netbsd-help
Date: 03/16/2000 16:37:46
On Thu, 16 Mar 2000, Mipam wrote:

> Hi,
> When i makes changes to for example resolv.conf in /etc or in hosts, or in mygate or in ifconfig.ne0 for example...
> After that i got to restat the network so the changes will work.
> How can i do that?
> I DONT want to reboot to make this happen, i believe it can be done by hand, any suggestions?
> Bye,
> 
> Mipam.

You shouldn't need to restart when making changes in /etc/hosts or
/etc/resolv.conf - these files are consulted pretty much every time the
information is used.

If you make a change to mygate, you'd need to remove the old entry
from the routing table (by using the "route" command, do a "man
route" for help on that), and add the new route in (again, with the
"route" command).

If you make a change to /etc/ifconfig.xxx, you'd need to reset the IP
address on the interface via the ifconfig command (potentially adding
routes back via "route" again).

You may have to restart/kill -hup some daemons which are running (or they 
may die themselves) depending on what you're doing on the system.

-Jon
 --------------------------------------------------------------------
 "Can you count my penny?" | NetBSD on i386, Alpha, VAX, NeXT, SPARC,
 "One!"                    | Mac68k, and hopefully more...