From owner-freebsd-net@freebsd.org Sun Mar 11 20:57:43 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 A92A8F4E49A for ; Sun, 11 Mar 2018 20:57:43 +0000 (UTC) (envelope-from zarychtam@plan-b.pwste.edu.pl) Received: from plan-b.pwste.edu.pl (plan-b.pwste.edu.pl [89.188.221.64]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "plan-b.pwste.edu.pl", Issuer "plan-b.pwste.edu.pl" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 0D2FE7E791 for ; Sun, 11 Mar 2018 20:57:42 +0000 (UTC) (envelope-from zarychtam@plan-b.pwste.edu.pl) Received: from plan-b.pwste.edu.pl (zarychtam@localhost [127.0.0.1]) by plan-b.pwste.edu.pl (8.15.2/8.15.2) with ESMTPS id w2BKvWND050859 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Sun, 11 Mar 2018 21:57:32 +0100 (CET) (envelope-from zarychtam@plan-b.pwste.edu.pl) Received: (from zarychtam@localhost) by plan-b.pwste.edu.pl (8.15.2/8.15.2/Submit) id w2BKvV7c050843; Sun, 11 Mar 2018 21:57:31 +0100 (CET) (envelope-from zarychtam) Date: Sun, 11 Mar 2018 21:57:31 +0100 From: Marek Zarychta To: Grzegorz Junka Cc: freebsd-net@freebsd.org Subject: Re: Incorrect route interface Message-ID: <20180311205731.GA30079@plan-b.pwste.edu.pl> References: <9dd657bc-ad58-f5cb-327a-572a561f1d6b@gjunka.com> <5AA45F89.7090800@grosbein.net> <21e1b380-4d4a-cd26-5694-fac51cc0dfa2@gjunka.com> <5AA4C6E3.2050909@grosbein.net> <789ff583-7995-75ce-94c8-9e2fe8b17488@gjunka.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="WIyZ46R2i8wDzkSu" Content-Disposition: inline In-Reply-To: <789ff583-7995-75ce-94c8-9e2fe8b17488@gjunka.com> User-Agent: Mutt/1.9.4 (2018-02-28) 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: Sun, 11 Mar 2018 20:57:43 -0000 --WIyZ46R2i8wDzkSu Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Sun, Mar 11, 2018 at 05:46:52PM +0000, Grzegorz Junka wrote: >=20 > 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 differ= ent network interfaces > >>> and you will be fine. Assign them all to right interface: > >>> > >>> ifconfig_em0=3D"inet 10.20.2.14 netmask 255.255.0.0" > >>> ifconfig_em0_alias0=3D"inet 10.20.2.15/32" > >>> ifconfig_igb0_alias0=3D"inet 10.20.2.16/32" > > Interfaces meant to be all equal, last line should be: > > > > ifconfig_em0_alias1=3D"inet 10.20.2.16/32" > > >=20 > OK, I see. So this is in case I want many IPs assigned to the same=20 > interface. What if I want one IP assigned to multiple interfaces (i.e.=20 > so that the additional igb0-3 effectively work as a 4-port switch)? >=20 Please consider bonding all NICs as one bridge(4) interface. Then multiple IPs could be assigned to such interface. --=20 Marek Zarychta --WIyZ46R2i8wDzkSu Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAABCAAdFiEEMOqvKm6wKvS1/ZeCdZ/s//1SjSwFAlqlmDgACgkQdZ/s//1S jSx4mQf/brt3ZhW89bNj+dbbI45aSY2RfqdEvJFuB1SAA0NvKHMwDEJYTVHWNhU3 IZYpwBlCDPSA4z9qoVESRFdFThnQU7uj61zUK9g9QpAsuhwR7sh6GE00ne3J6IYu hK9Gp58N/0Cjf7Ke502mBLXPIwP+t3U2yEx6P/da8ntNOjglDukRUfay129bsOM5 pBOQ0zy4wW5xX4wE0FgNLOcqN1NFDVjRINgCCJyhXHKqac98Hm5VSznPdVZzz3XG 2I6LoZi0AvTe0YtCZEnEXy0YF1mDVibstq5zaCjf4z98xWOj2BzY1smx2GejZE9G U0TSFAwby9GOW9U5ruAvAjZjRfWkXw== =qBf+ -----END PGP SIGNATURE----- --WIyZ46R2i8wDzkSu--