Dear,
a) when I have differented IPs from differented Networks and I will use KVM, must I use for every network a separate vmbr* (Bridge)? or can they use all the vmbr1? I need later on every CT a separate IP with MAC.
b) The Server-IP is configured default in the vmbr0 and the Containers with separated IPs from differented Networks over venet function perfectly. Egal what I doe, when I use vmbr1 or vmbr2 for a KVM-CT, I have the same problem that the routing will not work correctly:
I test now many days, I dont know, how I had this problems and I hope somebody
can help me.
Regards
Virtualiserer
a) when I have differented IPs from differented Networks and I will use KVM, must I use for every network a separate vmbr* (Bridge)? or can they use all the vmbr1? I need later on every CT a separate IP with MAC.
b) The Server-IP is configured default in the vmbr0 and the Containers with separated IPs from differented Networks over venet function perfectly. Egal what I doe, when I use vmbr1 or vmbr2 for a KVM-CT, I have the same problem that the routing will not work correctly:
Code:
Host:
uname -a
Linux pm2-host.1awww.com 2.6.32-6-pve #1 SMP Mon Dec 19 06:55:36 CET 2011 x86_64 GNU/Linux
route -n
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
*.31.151.252 0.0.0.0 255.255.255.255 UH 0 0 0 venet0
*.31.151.253 0.0.0.0 255.255.255.255 UH 0 0 0 vmbr1
*.23.87.57 0.0.0.0 255.255.255.255 UH 0 0 0 venet0
*.33.119.40 0.0.0.0 255.255.255.255 UH 0 0 0 venet0
*.98.226.72 0.0.0.0 255.255.255.255 UH 0 0 0 venet0
*.31.103.0 0.0.0.0 255.255.255.0 U 0 0 0 vmbr0
0.0.0.0 176.31.103.254 0.0.0.0 UG 0 0 0 vmbr0
# network interface settings
auto lo
iface lo inet loopback
iface eth0 inet manual
iface eth1 inet manual
auto vmbr0
iface vmbr0 inet static
address *.31.103.69
netmask 255.255.255.0
gateway *.31.103.254
broadcast *.31.103.255
bridge_ports eth0
bridge_stp off
bridge_fd 0
network *.31.103.0
auto vmbr1
iface vmbr1 inet manual
bridge_ports dummy0
bridge_stp off
bridge_fd 0
post-up /etc/pve/kvm-networking.sh
KVM-CT:
ifconfig
eth0 Link encap:Ethernet Hardware Adresse 02:**:**:**:**:56
inet Adresse:*.31.151.253 Bcast:*.31.151.253 Maske:255.255.255.255
inet6-Adresse: fe80::**:****:****/64 Gültigkeitsbereich:Verbindung
UP BROADCAST RUNNING MULTICAST MTU:1500 Metrik:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:6 errors:0 dropped:0 overruns:0 carrier:0
Kollisionen:0 Sendewarteschlangenlänge:1000
RX bytes:0 (0.0B) TX bytes:468 (468.0 B)
lo Link encap:Lokale Schleife
inet Adresse:127.0.0.1 Maske:255.0.0.0
inet6-Adresse: ::1/128 Gültigkeitsbereich:Maschine
UP LOOPBACK RUNNING MTU:16436 Metrik:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
Kollisionen:0 Sendewarteschlangenlänge:0
RX bytes:0 (0.0B) TX bytes:468 (0.0 B)
/etc/interfaces:
auto lo eth0
iface lo inet loopback
iface eth0 inet static
address *.31.151.253
netmask 255.255.255.255
broadcast *.31.151.253
post-up route add *.31.103.254 dev eth0
post-up route add default gw *.31.103.254
post-down route del *.31.103.254 dev eth0
post-dwon route del default gw *.31.103.254
route -n
Kernel-IP-Routentabelle
Ziel Router Genmask Flags Metric Ref Use Iface
*.31.103.254 0.0.0.0 255.255.255.255 UH 0 0 0 eth0
0.0.0.0 *.31.103.254 0.0.0.0 UG 0 0 0 eth0
I test now many days, I dont know, how I had this problems and I hope somebody
can help me.
Regards
Virtualiserer