While setting up multiple jails on a FreeBSD machine, I also (naturally) need to set up the networking for each jail. It seems to me there are two ways of achieving the same goal

  • setting up multiple cloned interfaces


  • setting up multiple aliases of one clone.

Under the first approach, I do (in /etc/rc.conf)

cloned_interfaces="lo1 lo2 ..."

ifconfig_lo1="inet netmask"  
ifconfig_lo2="inet netmask"

In the second approach, I can do something like



I currently use the first and it works, and I have it on some authority that (something similar to) the second also does.

The question is what's the fundamental difference between using cloned interfaces and aliases, particularly in this scenario, and which is a better approach?

  • 1
    I'm guessing that using separate interfaces allows for easier management of more advanced networking, as opposed to having to use setfib(1) Nov 5 '18 at 1:17
  • Yeah, that sounds right. I did decide to use cloned interfaces, not aliases, as you suggest..
    – Yogesch
    Nov 25 '18 at 4:53

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.