Hi,
I am trying to set up a second subnet in my environment and having trouble working out the virtual NIC configuration. I can get virtual NICs working if the IP addresses are a subset of the CIDR of the bridge associated with the physical NIC, but I cannot get it to work if the CIDR is outside that range.
I.e. The physical NIC has a bridge with CIDR 10.0.0.0/16. I want to create VMs in an entirely different subnet of 192.168.0.0/16. But I can only get virtual NICs working as a subset of 10.0.0.0/16. E.g. 10.0.10.0/24
Here is my /etc/network/interfaces. I am not sure how to create the bridges
Thanks in advance.
I am trying to set up a second subnet in my environment and having trouble working out the virtual NIC configuration. I can get virtual NICs working if the IP addresses are a subset of the CIDR of the bridge associated with the physical NIC, but I cannot get it to work if the CIDR is outside that range.
I.e. The physical NIC has a bridge with CIDR 10.0.0.0/16. I want to create VMs in an entirely different subnet of 192.168.0.0/16. But I can only get virtual NICs working as a subset of 10.0.0.0/16. E.g. 10.0.10.0/24
Here is my /etc/network/interfaces. I am not sure how to create the bridges
Code:
auto lo
iface lo inet loopback
iface enp2s0 inet manual
#LAN
# Virtual NIC1 for LAN VMs
iface enp2s0:1 inet manual
#LAN
# Virtual NIC2 for LAN VMs
iface enp2s0:2 inet manual
#LAN
auto vmbr0
iface vmbr0 inet static
address 10.0.0.50
netmask 16
gateway 10.0.0.254
bridge-ports enp2s0
bridge-stp off
bridge-fd 0
bridge-vlan-aware yes
bridge-vids 2-4094
#LAN
Thanks in advance.