From nobody@FreeBSD.org  Mon Feb 17 13:51:26 2014
Return-Path: <nobody@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 020D8FD0
	for <freebsd-gnats-submit@FreeBSD.org>; Mon, 17 Feb 2014 13:51:26 +0000 (UTC)
Received: from newred.freebsd.org (cgiserv.freebsd.org [IPv6:2001:1900:2254:206a::50:4])
	(using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits))
	(No client certificate requested)
	by mx1.freebsd.org (Postfix) with ESMTPS id DFDF413CE
	for <freebsd-gnats-submit@FreeBSD.org>; Mon, 17 Feb 2014 13:51:25 +0000 (UTC)
Received: from cgiserv.freebsd.org ([127.0.1.6])
	by newred.freebsd.org (8.14.7/8.14.7) with ESMTP id s1HDpPit068993
	for <freebsd-gnats-submit@FreeBSD.org>; Mon, 17 Feb 2014 13:51:25 GMT
	(envelope-from nobody@cgiserv.freebsd.org)
Received: (from nobody@localhost)
	by cgiserv.freebsd.org (8.14.7/8.14.7/Submit) id s1HDpP39068984;
	Mon, 17 Feb 2014 13:51:25 GMT
	(envelope-from nobody)
Message-Id: <201402171351.s1HDpP39068984@cgiserv.freebsd.org>
Date: Mon, 17 Feb 2014 13:51:25 GMT
From: Daniel Ylitalo <daniel@203webgroup.se>
To: freebsd-gnats-submit@FreeBSD.org
Subject: rc.conf ifconfig syntax for binding ip-ranges broken
X-Send-Pr-Version: www-3.1
X-GNATS-Notify:

>Number:         186841
>Category:       conf
>Synopsis:       rc.conf ifconfig syntax for binding ip-ranges broken [regression]
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-rc
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Mon Feb 17 14:00:00 UTC 2014
>Closed-Date:    
>Last-Modified:  Mon Feb 24 07:00:57 UTC 2014
>Originator:     Daniel Ylitalo
>Release:        10.0-RELEASE
>Organization:
203 Webgroup AB
>Environment:
FreeBSD 10.0-RELEASE FreeBSD 10.0-RELEASE #0 r260789: Thu Jan 16 22:34:59 UTC 2014     root@snap.freebsd.org:/usr/obj/usr/src/sys/GENERIC  amd64
>Description:
According to the manual binding ip ranges has been merged into the default ifconfig_<iface>_alias<n> line, however, if you try to bind a /24 it stops at ip 35.

Ie:
ifconfig_bce0_alias0="inet 10.0.68.3-254/24"

Binds ip's 10.0.68.3-10.0.68.35 and not the full 254

Using the old and deprecated syntax is also broken:
ipv4_addrs_bce0="10.0.68.3-254/24"


However, using the old syntax in FreeBSD 9.1 works fine and binds all 252 ip's to the nic.
>How-To-Repeat:
Add this line to your /etc/rc.conf

ifconfig_bce0_alias0="inet 10.0.68.3-254/24"

reload or reboot

IP's 10.0.68.3 through 10.0.68.35 will be binded and not the full 252 ip's.
>Fix:
Worked fine in 9.1-RELEASE so one should only have to check what's changed.

>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-bugs->freebsd-rc 
Responsible-Changed-By: linimon 
Responsible-Changed-When: Mon Feb 24 07:00:37 UTC 2014 
Responsible-Changed-Why:  
reclassify. 

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