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.