How to attribute VLAN/sub Net for machine in a pool

VinceAuTravail

New Member
Mar 1, 2023
3
0
1
Hi everyone,
I'm currently working on a project and I'd like to know if there is any way to attribute a subnetwork or a VLAN to every machine in the same pool.
Or maybe another way so that VMs can't ping each other when they are in differents pool, but they can when they are in the same one.

Thanks you
 
I'm currently working on a project and I'd like to know if there is any way to attribute a subnetwork or a VLAN to every machine in the same pool.
Or maybe another way so that VMs can't ping each other when they are in differents pool, but they can when they are in the same one.
Nothing directly. You need to apply the VLAN to each VM individually. You can however write a script that does that via the API.
 
  • Like
Reactions: VinceAuTravail
I'm trying using the API,
So i'm making a script using the python wrapper of the api Proxmoxer.

But I can't find how I can listen on the proxmox event so that when a VM is create it return me something