FreeBSD-11.2 routing and networks

James B. Byrne byrnejb at
Mon Jan 7 20:56:27 UTC 2019

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 Limited
9 Brockley Drive              vox: +1 905 561 1241
Hamilton, Ontario             fax: +1 905 561 0757
Canada  L8E 3C3

More information about the freebsd-questions mailing list