[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: how to restart network without rebooting
Do a man on ifconfig.
This will let you "redo" your network settings on the fly.
For example:
If you do: ifconfig xl0 up
If will bring your interface named xl0 up
You can set its ip address and netmask etc.. from ifconfig.
You will probably need to add the gateway back in to.
You set your gateway with the route command.
Do a man on route.
Example route add default gateway xxx.xxx.xxx.xxx
will set your default route.
Do this after you use ifconfig to bring the interface up.
Hope that helps.
--Don
Andrew Falanga wrote:
> Hello everyone,
>
> I'd like to know, how can I tell the system to re-read the network
> config's without doing a shutdown -r now. I've been reading through man
> init, man halt and so forth, but nothings really jumped off the screen.
> I tried a kill -s HUP 1, for restarting init, but that didn't do it.
> So, what must I do?
>
> Andy