Restart network without reboot ?
Vladislav Prodan
universite at ukr.net
Sat Feb 8 02:43:29 UTC 2014
> "Erich Dollansky" <erichsfreebsdlist at alogt.com> wrote:
>
> Hi,
>
> 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?
>
> >
> > # uname -a
> > FreeBSD vm-10-1.domain.com 10.0-STABLE FreeBSD 10.0-STABLE #0
> > r261419: Mon Feb 3 02:57:25 UTC 2014
> > root at grind.freebsd.org:/usr/obj/usr/src/sys/GENERIC amd64
> >
> >
> > # cat /etc/rc.conf
> > zfs_enable="YES"
> > hostname="vm-10-1.domain.com"
> > ifconfig_em0="DHCP"
> > ifconfig_em1="DHCP"
> > sshd_enable="YES"
> >
> Do you have a procedure in place to know the IP address of the machine
> after the restart?
>
> You should be able to connect to the machine without problems.
>
> I do not know how sshd and inetd behave under this condition.
>
I be able to connect directly to the console.
On network interfaces, I see no ip addresses.
Likely to command "service netif stop" killing all processes dhclient
A command "service netif start" will not start dhclient on network interfaces specified in rc.conf.
As a result, I started in the console "service netif start" and the network appeared.
Later, I will try to repeat the commands on the FreeBSD 9.1
--
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