From owner-freebsd-questions@freebsd.org Sat Jan 2 18:19:26 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 170E6A5F607 for ; Sat, 2 Jan 2016 18:19:26 +0000 (UTC) (envelope-from artem@artem.ru) Received: from fallback7.mail.ru (fallback7.mail.ru [94.100.181.128]) by mx1.freebsd.org (Postfix) with ESMTP id B1190122A for ; Sat, 2 Jan 2016 18:19:25 +0000 (UTC) (envelope-from artem@artem.ru) Received: from smtp12.mail.ru (smtp12.mail.ru [94.100.181.93]) by fallback7.mail.ru (mPOP.Fallback_MX) with ESMTP id 689F615047BF0 for ; Sat, 2 Jan 2016 21:19:17 +0300 (MSK) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=mail.ru; s=mail2; h=Content-Transfer-Encoding:Content-Type:In-Reply-To:MIME-Version:Date:Message-ID:From:References:To:Subject; bh=80p2CHicyotAgsKbQzPs+exksR6JgT2Xa6XgCYBcy/U=; b=suTtHTQOPJsu+RjAP7XxZVHDTnqYnvwGPLtWuYRPpZfKLirw5r0N/EPTdQg014oYupf7/DEPaxFDkKBqcAEV3WXFI3K7YMSrMALbaNGUgHR6+Ows+0forrFkREMgdJoWwlzUibVNLFPCF6GTQk534y8v5itj+2D+iT13AKj7bHc=; Received: from [109.188.125.25] (port=33051 helo=[192.168.0.12]) by smtp12.mail.ru with esmtpa (envelope-from ) id 1aFQlf-0008IQ-1L for freebsd-questions@freebsd.org; Sat, 02 Jan 2016 21:19:07 +0300 Subject: Re: Internal local ip address for host only To: freebsd-questions@freebsd.org References: <56879844.1030901@artem.ru> <5687E01D.1080008@qeng-ho.org> From: Artem Kuchin Message-ID: <568814D4.2060904@artem.ru> Date: Sat, 2 Jan 2016 21:20:04 +0300 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:38.0) Gecko/20100101 Thunderbird/38.5.0 MIME-Version: 1.0 In-Reply-To: <5687E01D.1080008@qeng-ho.org> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Mras: Ok 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 18:19:26 -0000 02.01.2016 17:35, Arthur Chance пишет: > 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 > > Thank you. Done it this way. Works fine.