From owner-freebsd-questions@freebsd.org Sat Jan 2 14:37:16 2016 Return-Path: Delivered-To: freebsd-questions@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 99D84A5F5EC for ; Sat, 2 Jan 2016 14:37:16 +0000 (UTC) (envelope-from freebsd@qeng-ho.org) Received: from bede.qeng-ho.org (bede.qeng-ho.org [217.155.128.241]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "fileserver.home.qeng-ho.org", Issuer "fileserver.home.qeng-ho.org" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 3F6BC1EF1 for ; Sat, 2 Jan 2016 14:37:15 +0000 (UTC) (envelope-from freebsd@qeng-ho.org) Received: from arthur.home.qeng-ho.org (arthur.home.qeng-ho.org [172.23.1.2]) by bede.home.qeng-ho.org (8.15.2/8.15.2) with ESMTP id u02EZ9AS066364; Sat, 2 Jan 2016 14:35:10 GMT (envelope-from freebsd@qeng-ho.org) Subject: Re: Internal local ip address for host only To: Artem Kuchin , freebsd-questions@freebsd.org References: <56879844.1030901@artem.ru> From: Arthur Chance Message-ID: <5687E01D.1080008@qeng-ho.org> Date: Sat, 2 Jan 2016 14:35:09 +0000 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:38.0) Gecko/20100101 Thunderbird/38.4.0 MIME-Version: 1.0 In-Reply-To: <56879844.1030901@artem.ru> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 02 Jan 2016 14:37:16 -0000 On 02/01/2016 09:28, Artem Kuchin wrote: > I have a didicated server inside provider's network. > I have igb0 interface > Now, i need some 10.0.0.x ups for jails, so i configure aliases on igb0 > interface > > inet 10.0.0.1 netmask 0xffffffff broadcast 10.0.0.1 > inet 10.0.0.2 netmask 0xffffffff broadcast 10.0.0.2 > inet 10.0.0.3 netmask 0xffffffff broadcast 10.0.0.3 > > But this is wrong, because there can be another server with the same ips > in the local network and > in fact during boot i get > > Jan 1 16:37:41 omni kernel: arp: 00:25:90:47:4f:9c is using my IP > address 10.0.0.1 on igb0! > > So, how i can i make perfectly virtual nic visible only inside my host? Create a new loopback device: ifconfig lo1 create or to make it happen at boot time, add cloned_interfaces="lo1" to /etc/rc.conf -- Moore's Law of Mad Science: Every eighteen months, the minimum IQ necessary to destroy the world drops by one point.