Subject: Re: network restart
To: None <reinoud@ibbnet.org>
From: Laine Stump <lainestump@rcn.com>
List: netbsd-help
Date: 03/16/2000 16:56:56
At 10:25 PM 3/16/00 +0100, 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?

resolv.conf: Changes to resolv.conf take effect immediately as soon as you
save the file; no other action is necessary.

mygate: the contents of this file is just used as an argument to a "route
add default" command at boottime. Once you've changed it, it won't be used
until next time you reboot. However, you can do the same operation with
this command:

	route delete default; route add default `cat /etc/mygate`

ifconfig.XXX: Again, these files are just used as data when doing the
initial ifconfigs at boottime. Do performa the equivalent operation by
hand, do this:

	ifconfig XXX `cat /etc/ifconfig.XXX`

Note that the ifconfig may fail if you've already go the interface setup on
the same subnet as the one specified in the ifconfig.XXX file. In this
case, you may need to ifconfig the interface down, then run the command
above again.

In general: just do grep <filename> /etc/* to see how the file in question
is used, and mimic that use at a shell prompt. Unlike comical systems like
MS Windows, you don't have to reboot NetBSD to change *anything* about the
network configuration (unless you're missing a driver in your kernel, and
need to reboot to get a new kernel).