From owner-freebsd-net@freebsd.org Mon Mar 12 19:56:23 2018 Return-Path: Delivered-To: freebsd-net@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 63567F3F1A5 for ; Mon, 12 Mar 2018 19:56:23 +0000 (UTC) (envelope-from list1@gjunka.com) Received: from msa1.earth.yoonka.com (yoonka.com [88.98.225.149]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "msa1.earth.yoonka.com", Issuer "msa1.earth.yoonka.com" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id DF8026E101 for ; Mon, 12 Mar 2018 19:56:22 +0000 (UTC) (envelope-from list1@gjunka.com) Received: from crayon2.yoonka.com (crayon2.yoonka.com [10.70.7.20]) (authenticated bits=0) by msa1.earth.yoonka.com (8.15.2/8.15.2) with ESMTPSA id w2CJuEXj076678 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128 verify=NO) for ; Mon, 12 Mar 2018 19:56:15 GMT (envelope-from list1@gjunka.com) Subject: Re: Incorrect route interface To: freebsd-net@freebsd.org References: <201803121804.w2CI4SPD079782@pdx.rh.CN85.dnsmgr.net> From: Grzegorz Junka Message-ID: <24596951-6fe8-b308-344d-636fecabe36b@gjunka.com> Date: Mon, 12 Mar 2018 19:56:14 +0000 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:52.0) Gecko/20100101 Thunderbird/52.3.0 MIME-Version: 1.0 In-Reply-To: <201803121804.w2CI4SPD079782@pdx.rh.CN85.dnsmgr.net> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Content-Language: en-GB-large X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 12 Mar 2018 19:56:23 -0000 On 12/03/2018 18:04, Rodney W. Grimes wrote: >> On 11/03/2018 20:57, Marek Zarychta wrote: >>> On Sun, Mar 11, 2018 at 05:46:52PM +0000, Grzegorz Junka wrote: >>>> On 11/03/2018 06:04, Eugene Grosbein wrote: >>>>> 11.03.2018 7:01, Grzegorz Junka wrote: >>>>> >>>>>>> Just do not assign addresses from same network 10.20.0.0/16 to different network interfaces >>>>>>> and you will be fine. Assign them all to right interface: >>>>>>> >>>>>>> ifconfig_em0="inet 10.20.2.14 netmask 255.255.0.0" >>>>>>> ifconfig_em0_alias0="inet 10.20.2.15/32" >>>>>>> ifconfig_igb0_alias0="inet 10.20.2.16/32" >>>>> Interfaces meant to be all equal, last line should be: >>>>> >>>>> ifconfig_em0_alias1="inet 10.20.2.16/32" >>>>> >>>> OK, I see. So this is in case I want many IPs assigned to the same >>>> interface. What if I want one IP assigned to multiple interfaces (i.e. >>>> so that the additional igb0-3 effectively work as a 4-port switch)? >>>> >>> Please consider bonding all NICs as one bridge(4) interface. Then >>> multiple IPs could be assigned to such interface. >>> >> Many thanks Eugene and Marek for your suggestions. I will now need to >> decide if I want to fragment the network into subnets or bridge the >> interfaces. >> GregJ > I believe some of the problem you are experincing is addressed > in this differential: > https://reviews.freebsd.org/D14547 > > Your original configuration was(is) valid, just not common, > and I have not seen this done in more than a decade, but it > seems as if rstone@ also has someone doing this "multiple IP's > into same subnet on seperate interfaces". > Thanks for the link. That's interesting. According to this post that configuration shouldn't be valid: https://forums.freenas.org/index.php?threads/multiple-network-interfaces-on-a-single-subnet.20204/