From marat@zealot.ksu.ru  Tue Mar  6 11:27:19 2007
Return-Path: <marat@zealot.ksu.ru>
Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52])
	by hub.freebsd.org (Postfix) with ESMTP id 57D7516A406
	for <FreeBSD-gnats-submit@freebsd.org>; Tue,  6 Mar 2007 11:27:19 +0000 (UTC)
	(envelope-from marat@zealot.ksu.ru)
Received: from zealot.ksu.ru (zealot.ksu.ru [194.85.245.161])
	by mx1.freebsd.org (Postfix) with ESMTP id AEC8313C4B3
	for <FreeBSD-gnats-submit@freebsd.org>; Tue,  6 Mar 2007 11:27:18 +0000 (UTC)
	(envelope-from marat@zealot.ksu.ru)
Received: from zealot.ksu.ru (localhost.lnet [127.0.0.1])
	by zealot.ksu.ru (8.13.8/8.13.8) with ESMTP id l26AvH0m030864
	for <FreeBSD-gnats-submit@freebsd.org>; Tue, 6 Mar 2007 13:57:17 +0300 (MSK)
	(envelope-from marat@zealot.ksu.ru)
Received: (from marat@localhost)
	by zealot.ksu.ru (8.13.8/8.13.8/Submit) id l26AfKc3029947;
	Tue, 6 Mar 2007 13:41:20 +0300 (MSK)
	(envelope-from marat)
Message-Id: <200703061041.l26AfKc3029947@zealot.ksu.ru>
Date: Tue, 6 Mar 2007 13:41:20 +0300 (MSK)
From: "Marat N.Afanasyev" <marat@zealot.ksu.ru>
Reply-To: "Marat N.Afanasyev" <amarat@ksu.ru>
To: FreeBSD-gnats-submit@freebsd.org
Cc:
Subject: /etc/rc.d/netif restart doesn't destroy cloned_interfaces
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         109980
>Category:       conf
>Synopsis:       /etc/rc.d/netif restart doesn't destroy cloned_interfaces
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    freebsd-rc
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Tue Mar 06 11:30:03 GMT 2007
>Closed-Date:    Tue Oct 30 14:48:00 UTC 2012
>Last-Modified:  Tue Oct 30 14:48:00 UTC 2012
>Originator:     Marat N.Afanasyev
>Release:        FreeBSD 6.2-RELEASE amd64
>Organization:
n/a
>Environment:
System: FreeBSD zealot.ksu.ru 6.2-RELEASE FreeBSD 6.2-RELEASE #0: Sat Jan 13 21:47:07 MSK 2007 root@zealot.ksu.ru:/usr/obj/usr/src/sys/ZEALOT amd64


	
>Description:
	/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:
	cloned_interfaces="vlan2"
	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
	look to:
	ifconfig: SIOCIFCREATE: File exists 
	error string, and look to vlan2 interface.
>Fix:

	n/a


>Release-Note:
>Audit-Trail:

From: Brooks Davis <brooks@freebsd.org>
To: "Marat N.Afanasyev" <amarat@ksu.ru>
Cc: FreeBSD-gnats-submit@freebsd.org
Subject: Re: conf/109980: /etc/rc.d/netif restart doesn't destroy cloned_interfaces
Date: Wed, 7 Mar 2007 14:42:06 -0600

 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
 support restart.
 
 -- Brooks

From: "Marat N.Afanasyev" <amarat@ksu.ru>
To: bug-followup@FreeBSD.org, amarat@ksu.ru
Cc:  
Subject: Re: conf/109980: /etc/rc.d/netif restart doesn't destroy cloned_interfaces
Date: Thu, 08 Mar 2007 09:08:47 +0300

 I think that if we create cloned interfaces at start, we should destroy 
 them when shutting down.
 
 -- 
 SY, Marat
Responsible-Changed-From-To: freebsd-bugs->freebsd-rc 
Responsible-Changed-By: yar 
Responsible-Changed-When: Fri Aug 17 09:02:37 UTC 2007 
Responsible-Changed-Why:  
Over to the rc list for consideration. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=109980 
State-Changed-From-To: open->closed 
State-Changed-By: crees 
State-Changed-When: Tue Oct 30 14:47:58 UTC 2012 
State-Changed-Why:  
From rc.d/netif, you can use clonedown and then cloneup to reset cloned 
interfaces. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=109980 
>Unformatted:
