misc/186841: rc.conf ifconfig syntax for binding ip-ranges broken

Daniel Ylitalo daniel at 203webgroup.se
Mon Feb 17 14:00:01 UTC 2014


>Number:         186841
>Category:       misc
>Synopsis:       rc.conf ifconfig syntax for binding ip-ranges broken
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-bugs
>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:
>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 at 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:
>Unformatted:


More information about the freebsd-bugs mailing list