FreeBSD-11.2 routing and networks
Kurt Buff - GSEC, GCIH
kurt.buff at gmail.com
Mon Jan 7 23:37:42 UTC 2019
How about setting a cron job before making the changes? Set it for 10
minutes into the future, perhaps.
On Mon, Jan 7, 2019 at 12:58 PM James B. Byrne via freebsd-questions
<freebsd-questions at freebsd.org> wrote:
> On Mon, January 7, 2019 15:11, John Johnstone wrote:
> > I haven't used service netif restart remotely but I would expect that
> > you would loose your connection if it was going through the default
> > gateway just as if you issued the ifconfig command manually. It has
> > the advantage though of taking the IP and gateway simultaneously from
> > rc.conf which allows you to re-establish your connection to the box
> > again after the changes are in effect.
> This advantage is what I am trying to achieve. But, my experience has
> been that it is impossible to re-establish a remote connection with
> the host until after it has been rebooted.
> Issuing the commands:
> 'service netif restart && service routing restart &'
> has worked for me in the past on CentOS Linux hosts. But I cannot
> seem t get this combination to work on FreeBSd.
> *** e-Mail is NOT a SECURE channel ***
> Do NOT transmit sensitive data via e-Mail
> Do NOT open attachments nor follow links sent by e-Mail
> James B. Byrne mailto:ByrneJB at Harte-Lyne.ca
> Harte & Lyne Limited http://www.harte-lyne.ca
> 9 Brockley Drive vox: +1 905 561 1241
> Hamilton, Ontario fax: +1 905 561 0757
> Canada L8E 3C3
> freebsd-questions at freebsd.org mailing list
> To unsubscribe, send any mail to "freebsd-questions-unsubscribe at freebsd.org"
More information about the freebsd-questions