Restart network without reboot ?
Vladislav Prodan
universite at ukr.net
Sat Feb 8 13:01:16 UTC 2014
> On 2/7/2014 6:43 PM, Vladislav Prodan wrote:
> >> "Erich Dollansky" <erichsfreebsdlist at alogt.com> wrote:
> >> On Sat, 08 Feb 2014 03:31:08 +0200 Vladislav Prodan
> >> <universite at ukr.net> wrote:
> >>>
> >>> # service netif restart && service routing restart Stopping
> >>> dhclient. Waiting for PIDS: 672.
> >>>
> >>> And disconnect via ssh :(
> >>
> >> as expected.
> >>
> >> What is your problem?
> >
> > What there are other ways to restart the network without breaking the
> > current ssh session?
>
> You can't. The connection state is going to get reset. You can,
> however, run the service commands in a screen or tmux session to prevent
> the connection reset from disrupting the shell running the service commands.
>
> You should also add ";service sshd restart" to the end of the command to
> make sure sshd comes back up if died when networking bounced.
>
Thank you all for your clever ideas and tips.
help:
service netif restart ; dhclient em0 ; dhclient em1
--
Vladislav V. Prodan
System & Network Administrator
http://support.od.ua
+380 67 4584408, +380 99 4060508
VVP88-RIPE
More information about the freebsd-questions
mailing list