Simple(?) network config Q: how can I create a private network for a set of interfaces?

starkruzr

Well-Known Member
So, the usual network interface reserved to get bridged onto the "real" LAN to which your hosts are connected is working fine. What I'd like to do, for the sake of setting up an HPC environment, is have a separate, private network space accessible by another set of virtual adapters that can act as the dedicated HPC network. I'd prefer it if it were possible to have this network shared between both my hosts, but if it has to be on just one host that's fine too.

Does anyone know how to set this up?
 
for just one host this is easy: create a new bridge (e.g. vmbr1) with no attached network adapters

bridges act like a switch so in that case it is a virtual switch inside your host, every vm you attach can only communicate with vms attached to the same switch
 
  • Like
Reactions: starkruzr
Thanks for this. What if I wanted it to span hosts?
that is a different story, you would need to have a tunnel between the two bridges over the physical lan
if you have a free nic, you could use that to create an isolated physical network between your hosts and connect the bridges to it
or if you have managed switches, you could do this with vlans