From owner-freebsd-net@FreeBSD.ORG Wed Feb 11 17:38:13 2015 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 6BB5CBE8 for ; Wed, 11 Feb 2015 17:38:13 +0000 (UTC) Received: from wonkity.com (wonkity.com [67.158.26.137]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "wonkity.com", Issuer "wonkity.com" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 17CEEFB9 for ; Wed, 11 Feb 2015 17:38:12 +0000 (UTC) Received: from wonkity.com (localhost [127.0.0.1]) by wonkity.com (8.14.9/8.14.9) with ESMTP id t1BHcBYY013091 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Wed, 11 Feb 2015 10:38:11 -0700 (MST) (envelope-from wblock@wonkity.com) Received: from localhost (wblock@localhost) by wonkity.com (8.14.9/8.14.9/Submit) with ESMTP id t1BHcBYa013088; Wed, 11 Feb 2015 10:38:11 -0700 (MST) (envelope-from wblock@wonkity.com) Date: Wed, 11 Feb 2015 10:38:11 -0700 (MST) From: Warren Block To: Matt Churchyard Subject: Re: Invalid subnet masks In-Reply-To: <7e069c1946454793b1c7e0be988877c4@SERVER.ad.usd-group.com> Message-ID: References: <7e069c1946454793b1c7e0be988877c4@SERVER.ad.usd-group.com> User-Agent: Alpine 2.11 (BSF 23 2013-08-11) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.4.3 (wonkity.com [127.0.0.1]); Wed, 11 Feb 2015 10:38:11 -0700 (MST) Cc: "freebsd-net@freebsd.org" X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 11 Feb 2015 17:38:13 -0000 On Wed, 11 Feb 2015, Matt Churchyard wrote: > Just been helping someone on the forums who appears to have configured their network interface incorrectly. It looks like they've assigned 250.250.250.0 as the netmask. > I've tried assigning this netmask on a 10.1 machine and ifconfig happily accepts it. As a tangent to that question, ifconfig(8) and the rc.conf settings do accept CIDR notation, which is both shorter and clearer than a dotted quad IP address and a separate netmask: ifconfig em0 inet 192.168.1.1/24