After Network Setup - Server lost all connections

ueker123

New Member
Sep 11, 2012
5
0
1
Hello,

i'm using proxmox on a debian 6 64 bit root and want to virtualize 4 kvm guests with Debian 6 x64.

I'm able to use 5 native Ethernet Controllers with 5 IP Adresses (eth0, eth0:115,eth0:116,eth0:117.eth0:118)

I read lots of tutorials an FAQ's but I'm not able to setup network Config.

I thought, i easily have to setup vmbr0 device in webif, setting Bridge Ports to the device, I want to use (eth0:115)
Lika that:


Ip Adress, etc. should not be set?

My Problem is that after reboot, the host system is not reachable. (not with ssh, web, etc.)
Seems to be a routing Problem... :-(

Can someboy help me please?
 
Hello,

i'm using proxmox on a debian 6 64 bit root and want to virtualize 4 kvm guests with Debian 6 x64.

I'm able to use 5 native Ethernet Controllers with 5 IP Adresses (eth0, eth0:115,eth0:116,eth0:117.eth0:118)

I read lots of tutorials an FAQ's but I'm not able to setup network Config.

I thought, i easily have to setup vmbr0 device in webif, setting Bridge Ports to the device, I want to use (eth0:115)
Lika that:


Ip Adress, etc. should not be set?

My Problem is that after reboot, the host system is not reachable. (not with ssh, web, etc.)
Seems to be a routing Problem... :-(

Can someboy help me please?
Hi,
vmbr0 is the only bridge, which need an IP. Over this IP your webfrontend is reachable and the clustercommunication is done.

BTW- mixed mode of tagged and untagged traffic on one nic is often problematic - so don't use an IP on eth0 and also no bridge.

Udo
 
Hi,
vmbr0 is the only bridge, which need an IP. Over this IP your webfrontend is reachable and the clustercommunication is done.
Udo

That means I should appropriate a lokal IP Adress?

Here is my /network/interfacs:

# network interface settings
auto lo
iface lo inet loopback

auto eth0
iface eth0 inet static
address 178.xxx.xxx.114
netmask 255.255.255.248
gateway 178.xxx.xxx.113
broadcast 178.17.163.119
network 178.xxx.xxx.112

auto eth0:115
iface eth0:115 inet static
address 178.xxx.xxx.115
netmask 255.255.255.248

iface eth0:116 inet static
address 178.xxx.xxx.116
netmask 255.255.255.248

iface eth0:117 inet static
address 178.xxx.xxx.117
netmask 255.255.255.248

iface eth0:118 inet static
address 178.xxx.xxx.118
netmask 255.255.255.248

It's unchanged, fresh installed system.
I want to host 4 KVM guests and bridge them to the Controller eth0:115-eth0:118
What is the best way to implement this?
 
That means I should appropriate a lokal IP Adress?

Here is my /network/interfacs:



It's unchanged, fresh installed system.
I want to host 4 KVM guests and bridge them to the Controller eth0:115-eth0:118
What is the best way to implement this?
Hi,
I don't understand your network-config right...
You get the IP for the host (.114) untagged on eth0 and the other IPs (115-118) as tagged vlan?? This makes no sense for me for one IP to use an vlan...

And if you use the IP on the host, you can't use the same IP in the VM - e.g. you must do something like NAT...

Have you tried to simple use one IP on vmbr0 and use the other inside the guests?
Perhaps all traffic must arrive from one mac-address (depends on your provider) - in this case iptables is your friend.
Code:
# network interface settings
auto lo
iface lo inet loopback

auto eth0
iface eth0 inet static
        address  0.0.0.0
        netmask  0.0.0.0

auto vmbr0
iface vmbr0 inet manual
        bridge_ports eth0
        address  178.xxx.xxx.114
        netmask  255.255.255.248
        gateway  178.xxx.xxx.113
        broadcast  178.17.163.119
        network 178.xxx.xxx.112
        bridge_stp off
        bridge_fd 0
Udo
 
I asked my hoster if it multiple mac's are possible.
They told me, that it is.

But i also want to use a routing solution, because it's more superior.

I tried like this:

# Loopback device:
auto lo
iface lo inet loopback

# device: eth0
auto eth0
iface eth0 inet manual
address 178.xx.xx.114
netmask 255.255.255.248
gateway 178.xx.xx.113


# fuer Einzel-IPs
auto vmbr0
iface vmbr0 inet manual
address 178.xx.xx.114
netmask 255.255.255.248
gateway 178.xx.xx.113
broadcast 178.xx.xx.119
network 178.xx.xx.112
bridge_ports none
bridge_stp off
bridge_fd 0
up ip route add 178.xx.xx.115 dev vmbr0

Guest:


# Loopback device:
auto lo
iface lo inet loopback

# device: eth0
auto eth0
iface eth0 inet static
address 178.xx.xx.115
netmask 255.255.255.248
gateway 178.xx.xx.114
dns-nameserver 8.8.8.8


Then i added:

iptables -A POSTROUTING -t nat -o eth0 -j MASQUERADE


Guest is pingable from the host
Guest can ping google.de
But Guest is not rechable from outside.


Where is the problem?

Thanks for your fast answers!
 
Last edited:
I asked my hoster if it multiple mac's are possible.
They told me, that it is.

But i also want to use a routing solution, because it's more superior.

I tried like this:



Guest:





Then i added:




Guest is pingable from the host
Guest can ping google.de
But Guest is not rechable from outside.


Where is the problem?

Thanks for your fast answers!
Hi,
I don't understand why you want to use NAT if the guest allready use an official IP?!
Is the guest reachable without NAT-rule?
If not, search the issue with tcpdump.

Why you use the same IP on eth0 and vmbr0? It's enough to use the IP on vmbr0!
A bridge is like an hub - all traffic go to all conected interfaces.

Udo
 
I dont know what you mean....
I can't see any bridge in my config, the vmbr is a seperate network Device in routed Mode.

auto vmbr0
iface vmbr0 inet manual
address 178.xx.xx.114
netmask 255.255.255.248
gateway 178.xx.xx.113
broadcast 178.xx.xx.119
network 178.xx.xx.112
bridge_ports none
bridge_stp off
bridge_fd 0
up ip route add 178.xx.xx.115 dev vmbr0

I've done like written in this faq:

http://wiki.hetzner.de/index.php/Netzkonfiguration_Debian#Root-Server

Also i don't have hostet my root at hetzner that should work?
 
Ahh i know what you mean now!
Config like this:

# network interface settings
auto lo
iface lo inet loopback

auto eth0
iface eth0 inet manual
broadcast 178.xx.xx.119

auto vmbr0
iface vmbr0 inet static
address 178.xx.xx.114
netmask 255.255.255.248
gateway 178.xx.xx.113
bridge_ports eth0
bridge_stp off
bridge_fd 0

And then I've to connect all guests to the vmbr0 Controller?!
IP for the Guestsystem is set in guest /interfaces and that is my Problem!

Is there any possibilty to assign static IP Adresses to the different vm's in Bridge Mode?

If not any guest can change it's own IP!

Thanks...
 
Ahh i know what you mean now!
Config like this:



And then I've to connect all guests to the vmbr0 Controller?!
IP for the Guestsystem is set in guest /interfaces and that is my Problem!

Is there any possibilty to assign static IP Adresses to the different vm's in Bridge Mode?

If not any guest can change it's own IP!

Thanks...
Hi,
I'm not sure, but if I'm right, there was some time ago a thread about this (in pve1.x). Try the search-function or create an new thread.

I don't have experience with that, because i administrate the host and the clients on the pve-server...

Udo
 

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!