Dear all,
I am trying to setup 02 different isolated networks to basically simulate 2 different locations and create VMs in these separate networks.
My problem
Although in theory these VMs should be in different subnets hence should not be able to communicate with each other. But in my case VMs can ping each other. I am still trying to figure why this is happening and what did I do wrong. Your kind help would be highly valuable Below are the steps I followed so far. I have only 1 node in proxmox.
Networking part
I referred to https://pve.proxmox.com/pve-docs/chapter-pvesdn.html
Create 02 Zones of type simple inside Datacenter > SDN > Zones (eg; zone1, zone2)
Create 02 VNets (eg; net1, net2) 01 in each zone
create 1 subnet in each network.
auto lo
iface lo inet loopback
iface eno1 inet manual
iface eno2 inet manual
iface eno3 inet manual
iface eno4 inet manual
auto vmbr0
iface vmbr0 inet static
address 172.22.xx.xx/20
gateway 172.22.xx.x
bridge-ports eno1
bridge-stp off
bridge-fd 0
proxmox management
iface idrac inet manual
source /etc/network/interfaces.d/*
VM Part
While creating the VM I assigned 1 VM to net1 and other device to net2. When I check the VM hardware is correctly shows it (eg; bridge=net1, firewall=1, bridge=net2, firewall=1).
Then I created VMs without setting up IPs initially because it kept saying whatever IP I gave is not belongs to the /24 subnet. After booting up the VM, I manuallt edited the /etc/netplan default configuration file as below (config for the VM attached to net1). OtherVM also same except for the IP being 10.0.2.10/24.
network:
ethernets:
ens18:
dhcp4: false
addresses: [10.0.1.10/24]
gateway4: 10.0.1.1
nameservers:
addresses: [8.8.8.8]
version: 2
Then I ran sudo netplan apply. The IP is correctly configured when checked with IP a command.
Thank you!
I am trying to setup 02 different isolated networks to basically simulate 2 different locations and create VMs in these separate networks.
My problem
Although in theory these VMs should be in different subnets hence should not be able to communicate with each other. But in my case VMs can ping each other. I am still trying to figure why this is happening and what did I do wrong. Your kind help would be highly valuable Below are the steps I followed so far. I have only 1 node in proxmox.
Networking part
I referred to https://pve.proxmox.com/pve-docs/chapter-pvesdn.html
Create 02 Zones of type simple inside Datacenter > SDN > Zones (eg; zone1, zone2)
Create 02 VNets (eg; net1, net2) 01 in each zone
create 1 subnet in each network.
- net1 > subnet = 10.0.1.0/24. Gateway = 10.0.1.1 SNAT=yes
- net2 > subnet = 10.0.2.0/24. gateway = 10.0.2.1 SNAT = yes
auto lo
iface lo inet loopback
iface eno1 inet manual
iface eno2 inet manual
iface eno3 inet manual
iface eno4 inet manual
auto vmbr0
iface vmbr0 inet static
address 172.22.xx.xx/20
gateway 172.22.xx.x
bridge-ports eno1
bridge-stp off
bridge-fd 0
proxmox management
iface idrac inet manual
source /etc/network/interfaces.d/*
VM Part
While creating the VM I assigned 1 VM to net1 and other device to net2. When I check the VM hardware is correctly shows it (eg; bridge=net1, firewall=1, bridge=net2, firewall=1).
Then I created VMs without setting up IPs initially because it kept saying whatever IP I gave is not belongs to the /24 subnet. After booting up the VM, I manuallt edited the /etc/netplan default configuration file as below (config for the VM attached to net1). OtherVM also same except for the IP being 10.0.2.10/24.
network:
ethernets:
ens18:
dhcp4: false
addresses: [10.0.1.10/24]
gateway4: 10.0.1.1
nameservers:
addresses: [8.8.8.8]
version: 2
Then I ran sudo netplan apply. The IP is correctly configured when checked with IP a command.
Thank you!