KVM Network Conflicting

SYSTEM INFORMATION
OS type and version Debian 11
Webmin version Latest Release
Cloudmin version Latest Release

Hello,

I have my setup with 1 Main IP on the Host Machine and then 2 VM on it with both an additional ip each.

This is my config for my main host

Main Host Config

auto lo br0 eth0
iface lo inet loopback

iface eth0 inet manual

iface br0 inet static
        address 148.72.158.151
        netmask 255.255.254.0
        network 192.168.1.0
        bridge_ports eth0
        up ip addr add 192.168.1.1/24 dev br0
        gateway 148.72.158.1
        up ip route add 173.224.121.82/32 dev br0
        up ip route add 50.30.36.18/32 dev br0
        up ip route add 192.168.1.3/24 dev br0
        up ip route add 192.168.1.4/24 dev br0

VM 1 Config

auto eth0 lo

iface lo inet loopback

iface eth0 inet static
        address 173.224.121.82
        netmask 255.255.255.255
        gateway 148.72.158.151
        up ip addr add 192.168.1.3/24 dev eth0

VM 2 Config

auto eth0 lo

iface lo inet loopback

iface eth0 inet static
        address 50.30.36.18
        netmask 255.255.255.255
        gateway 148.72.158.151
        up ip addr add 192.168.1.4/24 dev eth0

Now what is happening is when 1 VM is turned on the other network goes down and vice versa.

I tried to use the host ip gateway but it doesnt work, any idea on how to setup. If I change the gateway to anything else other than the main host ip, the network only accepts incoming connections and not outgoing connections.

Please help me with this.

I doubt this is your problem, but these are reduntant.
up ip route add 192.168.1.0/24 dev br0
This is for everything on the 192.1.0/24 segment

Admittedly I don’t know much about bridge networks but generally things need common networks to connect. I don’t see how a gateway that isn’t on the same network will connect. How does the 173 network know about the 148 network?

I assume you are asking eth0 to listen to 2 network addresses?

The server I have is by server4you and their network is similar to hetzner network where the additional ip is routed through the main ip in this case the 148 ip.

Is Cloudmin automatically assigning the IP addresses to the VMs?

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.