Network issues - KVM and external IP - Bridge

iuvari

New Member
Jul 24, 2011
4
0
1
[SOVLED] Network issues - KVM and external IP - Bridge

Hello community,

i have a problem and i cannot figure out how to fix it. Also google couldnt help me (maybe im to stupid :( ).
My goal looks like this:

I have three external IP.
Dedicated server with ip 22.33.44.55 and Proxmox. Then two KVM 22.33.44.66 and 22.33.44.77. One should be the main webserver and the other should be Fallback if the first one couldnt start.
But i cant get the KVM working with an external IP. The first KVM (also debian) didnt get any connection in or out.

Right now im waiting to get rescue mode because i tried to setup bridge on vmbr0 to eth0 and my server is not responding anymore. Therefore i cannot give ifconfig or route right now but that will follow.
My original interfaces looked like this:

Code:
auto eth0
iface eth0 inet static
        address 22.33.44.55
        netmask 255.255.255.0
        network 22.33.44.0
        broadcast 22.33.44.255
        gateway 22.33.44.254
        # dns-* options are implemented by the resolvconf package, if installed
        dns-nameservers xx.xx.xx.xx
        dns-search leaseweb.com

If i activate vmbr0 in Proxmox Web giu anything is fine. If i give it an IP i connect to the main Proxmox server but not to the KVM who has the vmbr. If i puth eth0 in the "bridge" input field i cannot connect to the main server anymore. So what do i wrong?

Maybe anyone has an idea whith this information? ifconfig and rout will follow as soon as my server is back on.

Thank you,
iuvari.
 
Last edited:
I got it now :)

i always set eth0 wrong.

Host config:
Code:
iface eth0 inet manual
auto vmbr0
iface vmbr0 inet static
        address  22.33.44.55
        netmask  255.255.255.0
        gateway  22.33.44.254
        broadcast  22.33.44.255
        network 22.33.44.0
        # dns-* options are implemented by the resolvconf package, if installed
        dns-nameservers 62.212.64.122
        dns-search leaseweb.com
        bridge_ports eth0
        bridge_stp off
        bridge_fd 0

in kvm:

Code:
# The primary network interface
allow-hotplug eth0
iface eth0 inet static
        address 22.33.44.66
        netmask 255.255.255.0
        network 22.33.44.0
        broadcast 22.33.44.255
        gateway 22.33.44.254
        # dns-* options are implemented by the resolvconf package, if installed
        dns-search leaseweb.com
        dns-nameserver 62.212.64.122

Thx,
iuvari