Solved Questions about networking on CBSD

First of all, hello and sorry if I'm posting in the wrong place. Secondly, I will tell you the situation that generates my questions.

I installed CBSD so I could manage both VMs and Jails from a single location. Using the default configurations, I created a Jail and a VM. The Jail received the IP address 10.0.0.2, and the VM received the IP address 192.168.25.83 (this corresponds to the IP addresses provided by my physical router).
The ifconfig output showed the following interfaces: lo0, re0 (the network card), cbsdbridge0 (or something similar), bridge0, and tap0. cbsdbridge0 shows the Jail's IP address.

The question is: can I make both VMs and jails obtain IP addresses within the same network (i.e., 10.0.0.0)? Or subnets that I can manage (something like 10.1.0.0, 10.2.0.0, etc.)? And can both, VMs and Jails, have internet access? How can I achieve this?

I hope someone can answer these questions and guide me in achieving what I want to do. And most importantly understand how it's done.

PS: Sorry for the bad English, it's a Google translation since I'm not a native English speaker.
 
Last edited by a moderator:
I would just give it a try. Stop your VM. Change the VM's IP to what you want within the network of your jail (i.e., 10.0.0.3). You can do that with sudo cbsd bconfig jname=name_of_vnm (make a note of the old setting). Restart the VM and see if you have access in the VM. Make sure the resolv.conf and interfaces of the VM are set correctly — I guess re0. If it does not work, you can revert to the old setting
 
You might get a quicker response by creating an issue on the CBSD GitHub page.
Ole is extremely quick & helpful.
Thanks. I'll ask there.

I would just give it a try. Stop your VM. Change the VM's IP to what you want within the network of your jail (i.e., 10.0.0.3). You can do that with sudo cbsd bconfig jname=name_of_vnm (make a note of the old setting). Restart the VM and see if you have access in the VM. Make sure the resolv.conf and interfaces of the VM are set correctly — I guess re0. If it does not work, you can revert to the old setting
I think I try it and didin't work but gonna make sure the weekend.

Thanks both for answering.
 
Hi, I got news on this. Searching on the web I found this series of post, FreeBSD Virtualization Series, and reading it I tried to use a "cloud image" for the VM an it gets a network configuration similar to what I want. So now I'm studing the configuration of this images to replicate and adjust to my needs.

P.D.: This post can be marked as solved
 
Back
Top