Network Problems

PHPChris

New Member
Jul 14, 2012
7
0
1
Hello together,
I have got a new server and I want to setup the network on it.
The main-ip address of the host is 84.200.193.130.

The rest of the /26 Subnet (131-190) should be available for the virtual machines.

If I setup a OpenVZ machine - the network works perfect.
But if I try to use KVM, the machine seems to not get any network connectivity!

/etc/network/interfaces on host:
Code:
# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).

# The loopback network interface
auto lo
iface lo inet loopback

# The primary network interface
auto eth0
iface eth0 inet static
    address 84.200.193.130
    gateway 84.200.193.129
    netmask 255.255.255.192
    
auto vmbr0
iface vmbr0 inet static
    address 84.200.193.130
    netmask 255.255.255.192
    bridge_ports none
    bridge_fd 0
    bridge_stp off
    route add -host 84.200.193.128/26 dev vmbr0

And on my Windows- or Linux-Guest in KVM I setted up:
Code:
IP-Address: 84.200.193.131
Netmask: 255.255.255.192
Gateway: 84.200.193.130

But on both - Windows and Linux - the VM isn't able to get any connection!

What did I do wrong?

Thanks for your help! :D
 
Yes, it's a dedicated Server running on Debian Squeeze 6.
We host it in a local DataCenter here in Germany. www.accelerated.de
Since your issue only happen on KVM, it was usually caused by allowed MAC. Try to:
  1. use MAC address provides by your hosting (known as Virtual MAC), or
  2. some hosting allow us to assign MAC address generated by KVM to their router
 
Ok, thanks for your help!
I just changed the /etc/network/Interface as follows:

auto vmbr0
iface vmbr0 inet static
address 84.200.193.130
netmask 255.255.255.192
gateway 84.200.193.129
bridge_ports eth0
bridge_fd 0
bridge_stp none

Ans then I setted up a dhcp server on the host telling the VM to use
address 84.200.193.xxx
netmask 255.255.255.192
gateway 84.200.193.129


This fixes my problem!
 

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!