Rouitng between KVM and CT only one way

mdiehl

Renowned Member
Dec 30, 2011
3
0
66
Hello,
I run a Proxmox server based on Debian Squeeze, updated to the latest version.
I have 4 additional IPs and am using CT and KVM parallel for testing.
With my CT I can ping my KVM, but I Cannot ping the CT from my KVM. The host system is pinging both of them.

Maybe someone has an idea?

host: /etc/network/interfaces
Code:
auto lo
iface lo inet loopback


auto eth0
iface eth0 inet static
        address  xxx.x.70.233
        netmask  255.255.255.224
        gateway  xxx.x.70.225
        broadcast  xxx.x.70.255




auto vmbr0
iface vmbr0 inet static
        address  xxx.x.70.233
        netmask  255.255.255.224
        broadcast  xxx.x.70.255
        bridge_ports none
        bridge_stp off
        bridge_fd 0
        up ip route add xxx.x.70.248/32 dev vmbr0
        up ip route add xxx.x.70.250/32 dev vmbr0

CT /etc/network/interfaces
Code:
auto venet0:0
iface venet0:0 inet static
        address 176.9.70.249
        netmask 255.255.255.255

KVM /etc/network/interfaces
Code:
allow-hotplug eth0
iface eth0 inet static
        address xxx.x.70.250
        netmask 255.255.255.224
        network xxx.x.70.0
        broadcast xxx.x.70.255
        gateway xxx.x.70.233


I use the host DNS settings in both machines, which is working fine.
Any ideas?

Regards
Matthias

Edit:
I just set up another CT with IP xxx.x.70.251, which is pinging the other CT .249, but not KVM .250

Strange....
 
Last edited:
I finally found it out and just to let you know if you have similar problems, here is the solution:

The correct KVM /etc/Network/interfaces has to look like this:
Code:
auto eth0
iface eth0 inet static
    address xxx.xxx.70.250
    netmask 255.255.255.255
    pointopoint xxx.xxx.70.233
    gateway xxx.xxx.70.233
the lines for network and broadcast were removed, the netmask changed and the line pointopoint was added.
It is working now.
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!