From owner-freebsd-bugs@FreeBSD.ORG Tue Jun 10 14:48:58 2014 Return-Path: Delivered-To: freebsd-bugs@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id E80C17C3 for ; Tue, 10 Jun 2014 14:48:58 +0000 (UTC) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id B66AA2E0F for ; Tue, 10 Jun 2014 14:48:58 +0000 (UTC) Received: from bugs.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.14.8/8.14.8) with ESMTP id s5AEmwKD075180 for ; Tue, 10 Jun 2014 15:48:58 +0100 (BST) (envelope-from bz-noreply@freebsd.org) From: bz-noreply@freebsd.org To: freebsd-bugs@FreeBSD.org Subject: [Bug 190880] New: netif does not configure aliases for 802.1q interfaces Date: Tue, 10 Jun 2014 14:48:58 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: conf X-Bugzilla-Version: 9.3-BETA2 X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: KOT@MATPOCKuH.Ru X-Bugzilla-Status: Needs Triage X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: freebsd-bugs@FreeBSD.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 10 Jun 2014 14:48:59 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=190880 Bug ID: 190880 Summary: netif does not configure aliases for 802.1q interfaces Product: Base System Version: 9.3-BETA2 Hardware: Any OS: Any Status: Needs Triage Severity: Affects Some People Priority: --- Component: conf Assignee: freebsd-bugs@FreeBSD.org Reporter: KOT@MATPOCKuH.Ru Changes from r264243 broke configuring aliases for 802.1q interfaces. In my rc.conf I have: cloned_interfaces="nfe0.2 nfe0.6 nfe0.19" ifconfig_nfe0="up" ifconfig_nfe0_2="inet 192.168.2.2/24" ifconfig_nfe0_2_alias0="inet 192.168.222.2/24" ifconfig_nfe0_6="inet 192.168.6.2/24" ifconfig_nfe0_19="inet 192.168.19.2/30" After update to 9.3-BETA2 (r267262) I got this message on boot: ifconfig: interface nfe0_2 does not exist Root cause is in replacing "." to "_" for $_if in ifalias_af_common() function in network.subr, and passing incorrect $_if to ifconfig command. To fix a problem I used this patch: --- network.subr.orig 2014-06-10 14:50:39.516897085 +0400 +++ network.subr 2014-06-10 12:59:44.755780832 +0400 @@ -1095,7 +1095,7 @@ # Process the last component case $_tmpargs in ${_af}\ *) - ifalias_af_common_handler $_if $_af $_action $_tmpargs && _ret=0 + ifalias_af_common_handler $1 $_af $_action $_tmpargs && _ret=0 ;; esac But I'm not sure it is correct. Please verify it. -- You are receiving this mail because: You are the assignee for the bug.