Take the 2-minute tour ×
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems.. It's 100% free, no registration required.

I have been reading over the creation of Jails on FreeBSD, and one stumbling block I have is regarding network interfaces.

Say my local router is 10.0.2.1, and the BSD box is 10.0.2.5. I would like jails on 10.0.2.6-10.

Do I just define them in rc.conf (without any other work), or do I have to set up a bridge or something like that (I see FreeNAS uses a bridge)?

I'm not particularly strong the networking side of things, so any good explanation about how the Jails share and access the network would be valuable.

share|improve this question

1 Answer 1

up vote 2 down vote accepted

Jails get ip aliases on your network interface. If the jails use the same interface as the host and are on the same subnet you don't need to do any additional routing.

If your jails do not use the same interface you would need to bridge the primary interface with the interface the Jails use.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.