/etc/rc.d/netif script doesn't destroy cloned interfaces,
e.g. vlanXX, when called with restart parameter. This leads to
impossibility to reconfigure cloned devices, because of
error produced by ifconfig. Before restart interfaces
one should destroy all cloned interfaces manually
How-To-Repeat: add cloned_interfaces to /etc/rc.conf:
add ifconfig_vlan2 to /etc/rc.conf:
ifconfig_vlan2="vlan 2 vlandev ifXX 192.168.0.1 255.255.255.0"
try to restart netifs two times
ifconfig: SIOCIFCREATE: File exists
error string, and look to vlan2 interface.
The most realistinc solution to this problem is probably do simply
disable the restart case. I don't think it's going to be practical to
I think that if we create cloned interfaces at start, we should destroy
them when shutting down.
Over to the rc list for consideration.
From rc.d/netif, you can use clonedown and then cloneup to reset cloned
This is not fixed. See PR/158734 for the patch.
This is a DUP of PR/158734. Closing this PR in lieu of PR/158734. See 158734 for the proposed patch.
*** This bug has been marked as a duplicate of bug 158734 ***
A commit references this bug:
Date: Mon Oct 19 20:37:39 UTC 2020
New revision: 366857
Destroy cloned interfaces at netif stop, netif restart and shutdown.
This is especially important during shutdown because a child interface
of lagg with WOL enabled will not enable WOL at interface shutdown and
thus no WOL to wake up the device (and machine).
PR: 158734, 109980
Reported by: Antonio Huete Jimenez <tuxillo at quantumachine.net>
Marat N.Afanasyev <marat at zealot.ksu.ru>
reviewed by: kp
MFC after: 1 week
Differential Revision: https://reviews.freebsd.org/D26797