From owner-freebsd-net@freebsd.org Wed Apr 20 09:58:31 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 6EC3CB15198 for ; Wed, 20 Apr 2016 09:58:31 +0000 (UTC) (envelope-from bored_to_death85@yahoo.com) Received: from nm21.bullet.mail.bf1.yahoo.com (nm21.bullet.mail.bf1.yahoo.com [98.139.212.180]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 36E9C1C90 for ; Wed, 20 Apr 2016 09:58:30 +0000 (UTC) (envelope-from bored_to_death85@yahoo.com) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1461146304; bh=dG7964ibvm3kFraO1U6HRzSXlqZQpc5G/aLd9SdMD2w=; h=Date:From:Reply-To:To:Subject:References:From:Subject; b=Qu1oAB5AWISY2T8VdF4EGCVe5nAnx0KKoH1hTP68VkIcJi+2zWb6xqKg/nRygOkQTYN3i7UWmOXD1VgT6XswjEc7XGQDAyz64yC6WsDByU2OH22H3+Pk6U0WCDPlSmbzmy4B0GWUW9utTW8+llydZwpwTJ6BFkxHjZat/bcabt+z9i7lH9OanywitWMDBlyF7LNKNZr6VNbE2okrdjpcdUsNCfTEQ3+1Oxn2RPk+62eVP19QopXGxeUPz34KQ2YclNmj83FxUW1LDAqoj5keEoFZH99W0eSUjWxLz50FfO5ag19ILpjZsLBMCtAKzgdo0NEwN4wZ1XG7lACCTbW/ng== Received: from [66.196.81.174] by nm21.bullet.mail.bf1.yahoo.com with NNFMP; 20 Apr 2016 09:58:24 -0000 Received: from [98.139.212.227] by tm20.bullet.mail.bf1.yahoo.com with NNFMP; 20 Apr 2016 09:58:24 -0000 Received: from [127.0.0.1] by omp1036.mail.bf1.yahoo.com with NNFMP; 20 Apr 2016 09:58:24 -0000 X-Yahoo-Newman-Property: ymail-3 X-Yahoo-Newman-Id: 683556.54474.bm@omp1036.mail.bf1.yahoo.com X-YMail-OSG: mq3UyagVM1kywJzGUXk3mfzZVFggiNaGByZUElex_g_08633egLTX3oVMJTa53M bAgbf9CSTd9WOkaLUT5sKiJxMEoI9CgDHN.uyZfAbT..lT.H8B618nlwmmDr3ZsUuWA_ZEhXF.AK bxlCefKR6diaofvFB9DmNfzE5BiOStLi4tLdYICni7PUcFVXAgkq6c3JJrb90F5Hlq12hD4bYDWJ 7ywxL0aSGUWmdpsk2zzfJAsnwnsLOxoKskx3QWQazVlwEEoU4K18lVVxl3z3f3hPSQOMiOIdiyFq Z4AAmAt0gVDWvZW8g7wBJHl07jojDNv5VgMNI40cQNYDcxpFCwSv7_3kMbib0FYY08YVnoLMGh5R AzFrUiPko7i6fqnzlbeQpT11Iuf9IYYrmyOAWfpW9QYjbTnjZBHAcvLPskuE8ZCDDsp9wD6x43Rw 8Ab5BGti6LDwwVSicaydt4TKfc4plKC9NdLXzP20DcR1H6Q1y1WY_LtmwpEKn5wlubaWsowbYgn7 2lGapkng.zQaZx2ly.kIQ Received: by 66.196.80.151; Wed, 20 Apr 2016 09:58:24 +0000 Date: Wed, 20 Apr 2016 09:58:23 +0000 (UTC) From: "M. V." Reply-To: "M. V." To: FreeBSD Net Message-ID: <118390227.3958522.1461146303528.JavaMail.yahoo@mail.yahoo.com> Subject: Assigning same ip address to different interfaces with different FIBs MIME-Version: 1.0 References: <118390227.3958522.1461146303528.JavaMail.yahoo.ref@mail.yahoo.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Content-Filtered-By: Mailman/MimeDel 2.1.21 X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.21 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, 20 Apr 2016 09:58:31 -0000 Hello guys, I have a problem with having multiple FIBs in FreeBSD-9.2. I've already setup 4 FIBs in kernel, and everything is OK. I assigned each interface to one FIB and I can add routes to any of FIBs I want, and everything works fine.But my problem is, I want to assign same IP address to multiple interfaces. for example: interface em1 (in FIB-1) : 100.100.100.1/24interface em2 (in FIB-2) : 100.100.100.1/24 this should work, bacause I want each FIB's interfaces and routes to be completely separate from other FIBs' interfaces and routes. for this I do:# sysctl net.add_addr_allfibs = 0 # ifconfig em1 fib 1# ifconfig em2 fib 2# setfib 1 ifconfig em1 100.100.100.1/24# setfib 2 ifconfig em2 100.100.100.1/24 but this doesn't work as expected, and 100.100.100.0/24 route is only being added to FIB-1 (second IP assignment command doesn't work, though it returns no error).# setfib 1 netstat -rn ==> this fib has 100.100.100.0/24 entry added in it# setfib 2 netstat -rn ==> nothing is added here. Is there any way I can do this in FreeBSD? Thank you.