eventuell habt Ihr noch eine Idee woran es liegt, ich komme nach etlichen Tagen tüfteln auf keinen grünen Zweig.
Ich bin nach der Anleitung https://wiki.hetzner.de/index.php/KVM_m ... e_easy_way
vorgegangen. Doch der kvm-Gast kann keine Server pingen, bekommt kein Internetzugriff. Der Gast (.xml und .qcow2)
ist importiert von einem anderen Server auf dem das Netzwerk funktionierte.
Server: Debian Stretch
Gast: Debian Jessie
Die IP's des Servers:
Code: Alles auswählen
Haupt-IP: 11.11.11.11
Zweite: 22.22.22.22
Gateway: ga.te.wa.y
Broadcast: 11.11.11.127
Code: Alles auswählen
################## /etc/network/interfaces HOST ##################
auto lo br0
iface lo inet loopback
iface lo inet6 loopback
auto eth0
iface eth0 inet static
address 11.11.11.11
netmask 255.255.255.224
gateway ga.te.wa.y
up route add -net ga.te.wa.y netmask 255.255.255.224 gw ga.te.wa.y dev eth0
auto br0
iface br0 inet static
address 11.11.11.11
netmask 255.255.255.255
bridge_ports none
bridge_stp off
bridge_fd 0
bridge_maxwait 0
up route add -host 22.22.22.22 dev br0
Code: Alles auswählen
################## ifconfig HOST ##################
root@host-system ~ # ifconfig
br0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet 11.11.11.11 netmask 255.255.255.255 broadcast 11.11.11.11
inet6 fe80::xxxx:xxxx:xxxx:3f0d prefixlen 64 scopeid 0x20<link>
ether fe:54:00:f0:da:2f txqueuelen 1000 (Ethernet)
RX packets 1595 bytes 111580 (108.9 KiB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 115 bytes 5022 (4.9 KiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
eth0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet 11.11.11.11 netmask 255.255.255.224 broadcast 11.11.11.127
inet6 fe80::xxxx:xxxx:xxxx:2b25 prefixlen 64 scopeid 0x20<link>
ether d4:3d:7e:32:2b:25 txqueuelen 1000 (Ethernet)
RX packets 771118 bytes 129224833 (123.2 MiB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 964952 bytes 352674297 (336.3 MiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
lo: flags=73<UP,LOOPBACK,RUNNING> mtu 65536
inet 127.0.0.1 netmask 255.0.0.0
inet6 ::1 prefixlen 128 scopeid 0x10<host>
loop txqueuelen 1 (Lokale Schleife)
RX packets 2348041 bytes 254754356 (242.9 MiB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 2348041 bytes 254754356 (242.9 MiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
tun0: flags=4305<UP,POINTOPOINT,RUNNING,NOARP,MULTICAST> mtu 1500
inet 10.8.0.1 netmask 255.255.255.255 destination 10.8.0.2
inet6 fe80::xxxx:xxxx:xxxx:1c67 prefixlen 64 scopeid 0x20<link>
unspec 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00 txqueuelen 100 (UNSPEC)
RX packets 273 bytes 16372 (15.9 KiB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 291 bytes 12052 (11.7 KiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
vnet0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet6 fe80::xxxx:xxxx:xxxx:da2f prefixlen 64 scopeid 0x20<link>
ether fe:54:00:f0:da:2f txqueuelen 1000 (Ethernet)
RX packets 286 bytes 23496 (22.9 KiB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 22 bytes 1116 (1.0 KiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
Code: Alles auswählen
################## route HOST ##################
root@host-system ~ # route -n
Kernel-IP-Routentabelle
Ziel Router Genmask Flags Metric Ref Use Iface
0.0.0.0 ga.te.wa.y 0.0.0.0 UG 0 0 0 eth0
10.8.0.0 10.8.0.2 255.255.255.0 UG 0 0 0 tun0
10.8.0.2 0.0.0.0 255.255.255.255 UH 0 0 0 tun0
11.11.11.96 0.0.0.0 255.255.255.224 U 0 0 0 eth0
22.22.22.22 0.0.0.0 255.255.255.255 UH 0 0 0 br0
root@host-system ~ #
Code: Alles auswählen
################## sysctl HOST ##################
root@host-system ~ # sysctl -a |grep net.ipv4.ip_forward
net.ipv4.ip_forward = 1
[...]
root@host-system ~ # sysctl -a |grep send_redirects
net.ipv4.conf.all.send_redirects = 0
net.ipv4.conf.br0.send_redirects = 0
net.ipv4.conf.default.send_redirects = 0
net.ipv4.conf.eth0.send_redirects = 0
net.ipv4.conf.lo.send_redirects = 1
net.ipv4.conf.tun0.send_redirects = 1
net.ipv4.conf.vnet0.send_redirects = 0
[...]
Code: Alles auswählen
################## /etc/network/interfaces GAST ##################
source /etc/network/interfaces.d/*
auto eth0
iface eth0 inet static
address 22.22.22.22
netmask 255.255.255.255
gateway 11.11.11.11
pointopoint 11.11.11.11
# dns-* options are implemented by the resolvconf package, if installed
dns-nameservers 213.133.98.98 213.133.99.99
Code: Alles auswählen
################## ifconfig GAST ##################
root@gast-vm:~$ ifconfig
eth0 Link encap:Ethernet HWaddr 52:54:00:f0:da:2f
inet addr:22.22.22.22 Bcast:22.22.22.22 Mask:255.255.255.255
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:10 errors:0 dropped:0 overruns:0 frame:0
TX packets:139 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:460 (460.0 B) TX bytes:11432 (11.1 KiB)
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
UP LOOPBACK RUNNING MTU:65536 Metric:1
RX packets:207 errors:0 dropped:0 overruns:0 frame:0
TX packets:207 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:76287 (74.4 KiB) TX bytes:76287 (74.4 KiB)
root@gast-vm:~$
Code: Alles auswählen
################## route GAST ##################
root@gast-vm:~$ route -n
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
0.0.0.0 11.11.11.11 0.0.0.0 UG 0 0 0 eth0
11.11.11.11 0.0.0.0 255.255.255.255 UH 0 0 0 eth0
root@gast-vm:~$
(inkl. 'ip neigh flush all'), es hat nichts geändert. Jetzt nutze ich wieder die original
MAC die von kvm vergeben wurde.
Firewall ist keine angelegt.
Hat jemand eine Idee, wo der Fehler ist?