From owner-freebsd-net@FreeBSD.ORG Wed Feb 11 17:49:53 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 792C6265 for ; Wed, 11 Feb 2015 17:49:53 +0000 (UTC) Received: from smtp-outbound.userve.net (smtp-outbound.userve.net [217.196.1.22]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client CN "*.userve.net", Issuer "Go Daddy Secure Certificate Authority - G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 0B4E413B for ; Wed, 11 Feb 2015 17:49:52 +0000 (UTC) Received: from owa.usd-group.com (owa.usd-group.com [217.196.1.2]) by smtp-outbound.userve.net (8.14.7/8.14.7) with ESMTP id t1BHnaVc032054 (version=TLSv1/SSLv3 cipher=AES128-SHA bits=128 verify=FAIL); Wed, 11 Feb 2015 17:49:36 GMT (envelope-from matt.churchyard@userve.net) Received: from SERVER.ad.usd-group.com (192.168.0.1) by SERVER.ad.usd-group.com (192.168.0.1) with Microsoft SMTP Server (TLS) id 15.0.516.32; Wed, 11 Feb 2015 17:49:36 +0000 Received: from SERVER.ad.usd-group.com ([fe80::b19d:892a:6fc7:1c9]) by SERVER.ad.usd-group.com ([fe80::b19d:892a:6fc7:1c9%12]) with mapi id 15.00.0516.029; Wed, 11 Feb 2015 17:49:35 +0000 From: Matt Churchyard To: Warren Block , "freebsd-net@freebsd.org" Subject: Re: Invalid subnet masks Thread-Topic: Invalid subnet masks Thread-Index: AdBF2FIuD1FE1aNwSWOzQAqD5/KpzwASS8SAAABl7w0= Date: Wed, 11 Feb 2015 17:49:35 +0000 Message-ID: References: <7e069c1946454793b1c7e0be988877c4@SERVER.ad.usd-group.com>, In-Reply-To: Accept-Language: en-GB, en-US Content-Language: en-GB X-MS-Has-Attach: X-MS-TNEF-Correlator: Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 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:49:53 -0000 > On 11 Feb 2015, at 17:38, Warren Block wrote: >=20 >> On Wed, 11 Feb 2015, Matt Churchyard wrote: >>=20 >> Just been helping someone on the forums who appears to have configured t= heir 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. >=20 > As a tangent to that question, ifconfig(8) and the rc.conf settings do ac= cept CIDR notation, which is both shorter and clearer than a dotted quad IP= address and a separate netmask: >=20 > ifconfig em0 inet 192.168.1.1/24 Yeah I've been using that format in rc.conf for years. Quicker to type and = looks tidy.=