this seems to be a hard problem. I would therefore be very thankfull for your advice. I spend two days trying to get this running, but with no success. (The Public IP Stuff is working, but not the private network)
Setting up a "second private network" with KVM on debian squeeze
RootServer 1 = Which has multiple VMs
RootServer 2 = Which has multiple VMs
Both Root Servers have a "public" Interface = eth0 (plugged to the internet) and a "private" interface = eth1 (directly plugged into a switch.)
=>I want to communicate in the 10.1.0.0 network only privately with the other boxes...
auto eth0 iface eth0 inet static address 22.214.171.124 broadcast 126.96.36.199 netmask 255.255.255.224 gateway 188.8.131.52 # Private IP Adress of the HOST auto eth1 iface eth1 inet static address 10.1.1.20 broadcast 10.1.255.255 netmask 255.255.0.0 network 10.1.0.0 ## Bridge vor Private Network auto vbr2 iface vbr2 inet static address 10.1.1.21 netmask 255.255.0.0 pre-up brctl addbr vbr2 post-up route add -host 10.1.1.100 vbr2 post-down brctl delbr vbr2
auto eth0 iface eth0 inet static address 184.108.40.206 netmask 255.255.255.255 gateway 220.127.116.11 pointopoint 18.104.22.168 ## Private IP Address of the Guest auto eth1 iface eth1 inet static address 10.1.1.100 netmask 255.255.255.255 gateway 10.1.1.20 pointopoint 10.1.1.20
Problem (starts already here):
If i do a
ping 10.1.1.100 on the Host (10.1.1.20/22.214.171.124) I do not get any response from the (10.1.1.100) guest that even resides on the same server. So any internal routing stuff must be wrong... But I was not able to figer this out?
update: I am just wondering. Maybe I need a "Gateway" for the private net. But on the otherhand if I work with bridges, why do I need a gateway for this private network?
Any Hints why this doesnt work are very very appreciated.
Thanky very very much!