From owner-freebsd-net@freebsd.org Fri Jun 16 16:00:44 2017 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 3E71DC772E5 for ; Fri, 16 Jun 2017 16:00:44 +0000 (UTC) (envelope-from Steven@stream-technologies.com) Received: from EUR03-VE1-obe.outbound.protection.outlook.com (mail-eopbgr50044.outbound.protection.outlook.com [40.107.5.44]) (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 747BDB56 for ; Fri, 16 Jun 2017 16:00:42 +0000 (UTC) (envelope-from Steven@stream-technologies.com) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=streamtechnologiesuk.onmicrosoft.com; s=selector1-streamtechnologies-com01e; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=qHx/NTW8td0ljuIOdeJ5ojQN04jpZkl0JEBl1pLkLkQ=; b=MbgeC4ZUVNG4ke6uMC6+IVj8PXkylmMbH8qZ4uGSMRlaeLz0xbI98dddvxc+cIqxeke0lJzUSaayTRqockeUVddsoSVn9bXnWZuXs/HHwnF3U9bzAlCvdT9ktzcExNTTDjJLgFLKzPRBy8PflO7H5UmjgbiLjp/MSPT7aYoroe8= Received: from DB6PR07MB3111.eurprd07.prod.outlook.com (10.170.223.158) by DB6PR07MB3461.eurprd07.prod.outlook.com (10.175.234.28) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1199.6; Fri, 16 Jun 2017 16:00:38 +0000 Received: from DB6PR07MB3111.eurprd07.prod.outlook.com ([fe80::d90d:3874:163d:ca76]) by DB6PR07MB3111.eurprd07.prod.outlook.com ([fe80::d90d:3874:163d:ca76%13]) with mapi id 15.01.1199.007; Fri, 16 Jun 2017 16:00:38 +0000 From: Steven Crangle To: FreeBSD Net Subject: Possible bug in ifconfig regarding ip addresses and fibs Thread-Topic: Possible bug in ifconfig regarding ip addresses and fibs Thread-Index: AQHS5rmyqfU3WxD1JU2qp4KbhtfsEw== Date: Fri, 16 Jun 2017 16:00:38 +0000 Message-ID: Accept-Language: en-GB, en-US Content-Language: en-GB X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: freebsd.org; dkim=none (message not signed) header.d=none;freebsd.org; dmarc=none action=none header.from=stream-technologies.com; x-originating-ip: [2603:10a6:4:55:cafe::60] x-ms-publictraffictype: Email x-microsoft-exchange-diagnostics: 1; DB6PR07MB3461; 7:hILGdIPh3WL7fkBlxJaGlV2sgcqqAbLh2oPm1MRe530Sdl9VHRvY2h2z4kfMVwgpNezg9vmllU2W8pCchF5KQtiOFIl/iB+3X/pW9A0l34I4/AgxnVKWeO48ByEEz/tet7VsOaS/xIGhV6UlrMDsjmznbuGaZb55uNL2qx+Nzt2xYOzgqSid/MYVYJPcFWYdcFS6uWU8crRAM8PTffTAlT+VkD/sX3CbjIEbIISc4yb1uaKt8SdFRZvzqZiusq8bsjSw5xLKpOkumxhMRbOl9ckFXtf7L33D8OwWAgm5iKWxyd3o+vzRO8m0QrDzjtsyLqrKZF2RKDlUsTT/0D55P4VYHwNp3Ti5mIf70cstHDZX41C/P3vnEKrOLf9Ky66e7sOYjsCSLpAfDEIrZVZ8C2idgNzK0pI5wnM2+KmvDy1SPMp5jzprJHC8pkqrwGFpQMf01tHUInl0L9jQacAzrYwErW1cu5zBGcILxdrrA0L1jp12vZXRr2olrQQPdbIRTAgNJHp8FKfOZZCbDKXtApCMtP6Snvt3Yn4NEP85QJ3zTumS0MW+tpWbAEhGUmC78ZcYEC1ZNH6IO02RFjwL6zakrBgKebZiHUVUIvyixLWTi3GeDKu4XSvqF9wiYnWy5BM9fy/7jktcBNjNPddxl+z5OegrUamfzEgMJ2N7mmlcn7JbFIFRFIPBDYbVRXER9NBlYU6N3nwPXVsTtriIXzc6galpKHu1r44h9HCEfiafPEzdM50OvvFQFylpq10/qRmMQDZbV3GqKMPWnQUlV5FLar8cp8JAiY77nF0x+40= x-ms-office365-filtering-correlation-id: 40cdac6d-39b0-480d-19e9-08d4b4d0d4f5 x-microsoft-antispam: UriScan:; BCL:0; PCL:0; RULEID:(300000500041)(300135000095)(300000501041)(300135300095)(22001)(300000502041)(300135100095)(2017030254075)(300000503041)(300135400095)(201703131423075)(201703031133081)(201702281549075)(300000504041)(300135200095)(300000505041)(300135600095)(300000506037)(300135500095); SRVR:DB6PR07MB3461; x-ms-traffictypediagnostic: DB6PR07MB3461: x-microsoft-antispam-prvs: x-exchange-antispam-report-test: UriScan:(203790808753936)(266611908612381); x-exchange-antispam-report-cfa-test: BCL:0; PCL:0; RULEID:(100000700101)(100105000095)(100000701101)(100105300095)(100000702101)(100105100095)(6040450)(601004)(2401047)(8121501046)(5005006)(3002001)(10201501046)(100000703101)(100105400095)(93006095)(93001095)(6041248)(20161123564025)(201703131423075)(201702281528075)(201703061421075)(201703061406153)(20161123562025)(20161123560025)(20161123558100)(20161123555025)(6072148)(100000704101)(100105200095)(100000705101)(100105500095); SRVR:DB6PR07MB3461; BCL:0; PCL:0; RULEID:(100000800101)(100110000095)(100000801101)(100110300095)(100000802101)(100110100095)(100000803101)(100110400095)(100000804101)(100110200095)(100000805101)(100110500095); SRVR:DB6PR07MB3461; x-forefront-prvs: 0340850FCD x-forefront-antispam-report: SFV:NSPM; SFS:(10009020)(39830400002)(39400400002)(39410400002)(39450400003)(8936002)(6506006)(3280700002)(72206003)(33656002)(86362001)(14454004)(733005)(19627405001)(2900100001)(102836003)(6436002)(6116002)(7696004)(38730400002)(606005)(110136004)(25786009)(50986999)(53936002)(236005)(5660300001)(54896002)(99286003)(55016002)(9686003)(7736002)(6306002)(19273905006)(478600001)(3660700001)(5250100002)(74316002)(189998001)(2906002)(80792005)(6606003)(8676002)(861006)(81166006)(6916009)(7906003)(54356999)(16866105001); DIR:OUT; SFP:1101; SCL:1; SRVR:DB6PR07MB3461; H:DB6PR07MB3111.eurprd07.prod.outlook.com; FPR:; SPF:None; MLV:ovrnspm; PTR:InfoNoRecords; LANG:en; spamdiagnosticoutput: 1:99 spamdiagnosticmetadata: NSPM MIME-Version: 1.0 X-OriginatorOrg: stream-technologies.com X-MS-Exchange-CrossTenant-originalarrivaltime: 16 Jun 2017 16:00:38.3081 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 720fa073-5781-43bf-bc14-7bef2603ed21 X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB6PR07MB3461 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.23 X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 16 Jun 2017 16:00:44 -0000 Hi, I've been configuring a device with the following rc.conf lines: ifconfig_le6_name=3D"manee" ifconfig_manee=3D"fib 5 up" ifconfig_manee_alias0=3D"inet 185.100.174.221 netmask 255.255.255.0" ifconfig_manee_alias1=3D"inet 172.31.4.216 netmask 255.255.255.128" ifconfig_manee_alias2=3D"inet 192.168.124.216 netmask 255.255.255.128" The result I would have expected is as follows: manee: flags=3D8843 metric 0 mtu 15= 00 options=3D8 ether 08:00:27:d3:83:da inet 185.100.174.221 netmask 0xffffff00 broadcast 185.100.174.255 inet 172.31.4.216 netmask 0xffffffc0 broadcast 172.31.4.255 inet 192.168.124.216 netmask 0xffffff80 broadcast 192.168.124.255 nd6 options=3D29 media: Ethernet autoselect status: active fib: 5 Instead I get the following on boot of the box: manee: flags=3D8843 metric 0 mtu 15= 00 options=3D8 ether 08:00:27:d3:83:da inet 185.100.174.221 netmask 0xffffff00 broadcast 185.100.174.255 inet 172.31.4.216 netmask 0xffffffc0 broadcast 172.31.4.255 nd6 options=3D29 media: Ethernet autoselect status: active fib: 5 I then tried to run the following command: ifconfig manee alias 185.100.174.221 netmask 255.255.255.0 ifconfig manee alias 172.31.4.216 netmask 255.255.255.128 ifconfig manee alias 192.168.124.216 netmask 255.255.255.128 Which resulted in the following output: ifconfig: ioctl (SIOCAIFADDR): File exists After this I tried: ifconfig manee -alias Which seemed to wipe all addresses fro mthe device as expected. I then started again using ifconfig lines to assign the aliases to the devi= ce, they all succeed apart from when I get to the 192.168.124.216 one. Whic= h again outputs the following: ifconfig: ioctl (SIOCAIFADDR): File exists Even though running ifconfig only shows the first two addresses configured. Note: I also have a mgmt interface on fib 0 configured with the ip : 192.16= 8.124.250 >From investigation it seems to somehow be clashing with this, as I am able = to add a 3rd alias with the following line: ifconfig manee alias 192.168.125.216 netmask 255.255.255.128 Is it not possible to have two IP Addresses on the same range, but differen= t addresses on seperate fibs? Thanks for any help! Steven ________________________________ [Stream Logo] Steven Crangle Systems Developer | Stream Technologies | Glasgow, UK [http://www.stream-technologies.com/img/phone.png] +44 (0)844 800 8520 | [http://www.stream-technologies.com/img/mouse.png] www.stream-technologies.com ________________________________ [Stream Logo] Steven Crangle Systems Developer | Stream Technologies | Glasgow, UK [http://www.stream-technologies.com/img/phone.png] +44 (0)844 800 8520 | [http://www.stream-technologies.com/img/mouse.png] www.stream-technologies.com