From owner-freebsd-net@freebsd.org Sat May 28 15:48:46 2016 Return-Path: Delivered-To: freebsd-net@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 542EBB4E926 for ; Sat, 28 May 2016 15:48:46 +0000 (UTC) (envelope-from ddesimone@verio.net) Received: from mailman.ysv.freebsd.org (mailman.ysv.freebsd.org [IPv6:2001:1900:2254:206a::50:5]) by mx1.freebsd.org (Postfix) with ESMTP id 2B1021E64 for ; Sat, 28 May 2016 15:48:46 +0000 (UTC) (envelope-from ddesimone@verio.net) Received: by mailman.ysv.freebsd.org (Postfix) id 26B7FB4E925; Sat, 28 May 2016 15:48:46 +0000 (UTC) Delivered-To: net@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 26611B4E924 for ; Sat, 28 May 2016 15:48:46 +0000 (UTC) (envelope-from ddesimone@verio.net) Received: from na01-bl2-obe.outbound.protection.outlook.com (mail-bl2on0062.outbound.protection.outlook.com [65.55.169.62]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA384 (256/256 bits)) (Client CN "mail.protection.outlook.com", Issuer "Microsoft IT SSL SHA2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id C64951E63 for ; Sat, 28 May 2016 15:48:45 +0000 (UTC) (envelope-from ddesimone@verio.net) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=verioit.onmicrosoft.com; s=selector1-verio-net; h=From:To:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=RCbfWg7n4R5NksBfO6JsrFMIyqMei21v2hLZm7ztH2o=; b=g144ERRHZo5LykXTBv3fV7uRZHDEll4Gohgd9Pu2kyuEDWHdWHkJMp4EURDLnm0pP9SbybPjJKHVVQmDQ1ggH64sf/T6yMxkhvJV8SSSe4ZLDqjJKM5lIFequ4cU3tbANrQqJAtoRW3dkzCADNTdZk83mqwcyZnUMH30+LBaSEc= Received: from SN1PR08MB1821.namprd08.prod.outlook.com (10.162.134.27) by SN1PR08MB1822.namprd08.prod.outlook.com (10.162.134.28) with Microsoft SMTP Server (TLS) id 15.1.506.2; Sat, 28 May 2016 15:48:34 +0000 Received: from SN1PR08MB1821.namprd08.prod.outlook.com ([10.162.134.27]) by SN1PR08MB1821.namprd08.prod.outlook.com ([10.162.134.27]) with mapi id 15.01.0506.011; Sat, 28 May 2016 15:48:34 +0000 From: David DeSimone To: Bruce Evans CC: "net@freebsd.org" Subject: RE: ifconfig creates a bogus(?) route Thread-Topic: ifconfig creates a bogus(?) route Thread-Index: AQHRuLFMF5We0vuhzUGy08H3Fj8zKJ/OfgJQ Date: Sat, 28 May 2016 15:48:34 +0000 Message-ID: References: <20160528154122.C1843@besplex.bde.org> In-Reply-To: <20160528154122.C1843@besplex.bde.org> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: optusnet.com.au; dkim=none (message not signed) header.d=none;optusnet.com.au; dmarc=none action=none header.from=verio.net; x-originating-ip: [173.71.11.10] x-ms-office365-filtering-correlation-id: 4cd68d7e-8664-470a-b574-08d3870f8703 x-microsoft-exchange-diagnostics: 1; SN1PR08MB1822; 5:k9TypqJM62TlvZJFL+U8siilc+Ft90Evm9nP8QGohoel1nw0y9E9SwcJnLCz6XAws5xbhTviVnrfOhK/+Y0Fuog93nRxDO/LBS8ePeKBSqm+jBHeypGU/clsoPzLMXGbuVIxBIG6bG3Td1ZN1Zo9tw==; 24:WnTbNW5cc2tQPB/hiS/Avnt4o/98FBlt2SxdgWVKPXM/QaILX+8SjZKggwlmika4H54ocjGNp1K7GUlU8soXVRbdKnmdbVsBXD2cX7j9bek=; 7:9FilAJggZlsE9e4wSf52FlEetPgZoKgVet0SY51Fe2GREAvyZqundWIeBSp7n/MMF86Z0+xEkaYg42UAMfpapXu9w9Hc3psmH2VAd5AVYnE59XvFfg2Zo0E7LbxCoMf2S+e9L72jS/cUIQtVs2ykhdpzrzSASRkS7qV7Qvo8OLYWLuRiXkYSQWpMDOupCPKf x-microsoft-antispam: UriScan:;BCL:0;PCL:0;RULEID:;SRVR:SN1PR08MB1822; x-microsoft-antispam-prvs: x-exchange-antispam-report-test: UriScan:(242903309895634)(104828721160424); x-exchange-antispam-report-cfa-test: BCL:0; PCL:0; RULEID:(601004)(2401047)(5005006)(8121501046)(10201501046)(3002001); SRVR:SN1PR08MB1822; BCL:0; PCL:0; RULEID:; SRVR:SN1PR08MB1822; x-forefront-prvs: 09565527D6 x-forefront-antispam-report: SFV:NSPM; SFS:(10009020)(6009001)(24454002)(3846002)(6116002)(102836003)(1220700001)(586003)(2950100001)(77096005)(5008740100001)(81166006)(106116001)(74316001)(8936002)(8676002)(87936001)(189998001)(92566002)(33656002)(110136002)(76176999)(50986999)(2906002)(66066001)(11100500001)(99286002)(9686002)(86362001)(5002640100001)(4326007)(54356999)(122556002)(19580395003)(10400500002)(5890100001)(19580405001)(5003600100002)(3660700001)(3280700002)(5004730100002); DIR:OUT; SFP:1101; SCL:1; SRVR:SN1PR08MB1822; H:SN1PR08MB1821.namprd08.prod.outlook.com; FPR:; SPF:None; MLV:sfv; LANG:en; spamdiagnosticoutput: 1:23 spamdiagnosticmetadata: NSPM Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: verio.net X-MS-Exchange-CrossTenant-originalarrivaltime: 28 May 2016 15:48:34.3954 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 281c3918-264a-4db4-ab20-2dafa1dca324 X-MS-Exchange-Transport-CrossTenantHeadersStamped: SN1PR08MB1822 X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 28 May 2016 15:48:46 -0000 Bruce Evans wrote: > Sometime between r191220 and r201220, ifconfig started creating a bogus(?= ) static route. > The following is under r248255 with "ifconfig em0 inet 192.168.2.8" (wher= e 192.168.2.8 is > for the local host and I don't bother typing the netmsk) done before brin= ging up lo0: > > Routing tables > > Internet: > Destination Gateway Flags Refs Use Netif Expir= e > 192.168.2.0/24 link#1 U 0 0 em0 > 192.168.2.8 link#1 UHS 0 0 lo0 Why do you feel the route is bogus? Is it because it has a netmask? If you don't supply a netmask, ifconfig will assume one based on the "class= " (A, B, C) of the IP you've supplied. 192.168.2.8 is a Class C address an= d gets a /24 netmask by default. > The bogus(?) route points to itself (route get shows this more clearly), = and doesn't work. > I know little about routiing, but can > fix things like this manually. S= imply "route delete" > on the bogus(?) route works in this case. An alias for lo0 also works. In router parlance, the route would be called a "connected" route, showing = that not only do you have an IP on the subnet, but by virtue of the netmask= , you are "connected" to every other IP in the same subnet range, through t= hat interface. It will cause your system to send ARP requests through that= interface for any other IP in the range, in order to communicate with them= . -- David DeSimone Professional Services Design Engineer at NTT America ________________________________ This email message is intended for the use of the person to whom it has bee= n sent, and may contain information that is confidential or legally protect= ed. If you are not the intended recipient or have received this message in = error, you are not authorized to copy, distribute, or otherwise use this me= ssage or its attachments. Please notify the sender immediately by return e-= mail and permanently delete this message and any attachments. makes no warr= anty that this email is error or virus free. Thank you. ________________________________ This email message is intended for the use of the person to whom it has bee= n sent, and may contain information that is confidential or legally protect= ed. If you are not the intended recipient or have received this message in = error, you are not authorized to copy, distribute, or otherwise use this me= ssage or its attachments. Please notify the sender immediately by return e-= mail and permanently delete this message and any attachments. NTT America m= akes no warranty that this email is error or virus free. Thank you. ________________________________