Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 12 Jun 2024 17:29:36 +0200
From:      Michael Gmelin <grembo@freebsd.org>
To:        "Bjoern A. Zeeb" <bzeeb-lists@lists.zabbadoz.net>
Cc:        Poul-Henning Kamp <phk@phk.freebsd.dk>, current@freebsd.org
Subject:   Re: 14.1-R rc.conf/ifconfig netmask issue was really hard to figure out
Message-ID:  <20240612172936.52cf62f0.grembo@freebsd.org>
In-Reply-To: <404q3127-9p57-1oqq-qqoo-3479q27830ss@yvfgf.mnoonqbm.arg>
References:  <202406120747.45C7lRGZ009491@critter.freebsd.dk> <5ss109s8-1086-700s-p199-rpr429on41p9@yvfgf.mnoonqbm.arg> <202406121436.45CEaZ0o011207@critter.freebsd.dk> <20240612165722.5ec89d11.grembo@freebsd.org> <05ors010-q60q-s261-no16-1577rq1p1610@yvfgf.mnoonqbm.arg> <404q3127-9p57-1oqq-qqoo-3479q27830ss@yvfgf.mnoonqbm.arg>

next in thread | previous in thread | raw e-mail | index | archive | help


On Wed, 12 Jun 2024 15:11:14 +0000 (UTC)
"Bjoern A. Zeeb" <bzeeb-lists@lists.zabbadoz.net> wrote:

> On Wed, 12 Jun 2024, Bjoern A. Zeeb wrote:
> 
> > On Wed, 12 Jun 2024, Michael Gmelin wrote:
> >  
> >> 
> >> 
> >> On Wed, 12 Jun 2024 14:36:35 +0000
> >> "Poul-Henning Kamp" <phk@phk.freebsd.dk> wrote:
> >>   
> >>> --------
> >>> Bjoern A. Zeeb writes:
> >>>   
> >>>>> I had a machine with this line in /etc/rc.conf:
> >>>>>
> >>>>> 	ifconfig_bla0="192.168.87.11"
> >>>>> 
> >>>>> I found out the hard way, that this defaults to /8 now.  
> >>>> 
> >>>> Did you track it down to a specific change?  I.e. is this
> >>>> ifconfig/netlink or the old kernel change from like two years(?)
> >>>> ago?
> >>>> 
> >>>> Do you have a time window when this broke as that'll help people
> >>>> to bisect?  
> >>> 
> >>> I have no idea, sorry, I just freebsd-updated this one box...
> >>>   
> >> 
> >> I just tried on 14.0-p6, same there:
> >>
> >>  # ifconfig vtnet0 192.168.87.11
> >>  ifconfig: WARNING: setting interface address without mask is
> >>  deprecated, default mask may not be correct.
> >> 
> >> Interestingly, `ifconfig vtnet0 10.0.0.1` uses "/24" whereas
> >> 192.168.87.11 uses "/8".
> >> 
> >> This dates back to:
> >> https://cgit.freebsd.org/src/commit/?id=4bf44dd73bc0a  
> >
> > No it pre-dates that chnage.
> >
> > It goes back to d8237b95552807e937fc389c7e2237679ef0c984 and related
> > changes.  
> 
> Sorry I hit send too early
> 
> And I think it came out of
> 
> commit 2f35e7d9fa03f27543f347cd6277af5bfc6a7e95
> commit 20d59403961d531467cfab22163f49c131cc8b55
> 

Hm, the deprecation warning was introduced in 2021 and was already part
of 13.1 it seems:
https://cgit.freebsd.org/src/commit/?id=4dbba5ab609c9

Going through these various commits, default behavior changed. Just
tried on 13.2, where 10.x.x.x gave me /8 and 192.168.x.x gave me /24.

@phk From which version did you upgrade?

Best

-- 
Michael Gmelin



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20240612172936.52cf62f0.grembo>