Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 2 Jan 2016 21:20:04 +0300
From:      Artem Kuchin <artem@artem.ru>
To:        freebsd-questions@freebsd.org
Subject:   Re: Internal local ip address for host only
Message-ID:  <568814D4.2060904@artem.ru>
In-Reply-To: <5687E01D.1080008@qeng-ho.org>
References:  <56879844.1030901@artem.ru> <5687E01D.1080008@qeng-ho.org>

next in thread | previous in thread | raw e-mail | index | archive | help
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.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?568814D4.2060904>