Internal local ip address for host only

Arthur Chance freebsd at qeng-ho.org
Sat Jan 2 14:37:16 UTC 2016


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.


More information about the freebsd-questions mailing list