Hetzner KVM guest networking

Now, since we’re using bridged routing, we need to adjust the guest. 1 2 3 4 5 6 7 8 9 10 11 12 13 auto eth0 iface eth0 inet static address 78.46.37.114 netmask 255.255.255.255 pointopoint 78.46.37.118 gateway 78.46.37.118 post-up ping -c2 78.46.37.118 &>/dev/null iface eth0 inet6 static address 2a01:4f8:110:3148::5 netmask 64 gateway 2a01:4f8:110:3148::2 post-up ping6 -c2 2a01:4f8:110:3148::2 &>/dev/null This’ll take care of the bridged routing and the ICMPv6 announcement to the host. Without the ping/ping6, guest and host won’t be able to communicate (no clue why).

June 17, 2013 · 1 min · 87 words · christian

Hetzner KVM host bridge configuration

Firstoff, adjust the /etc/network/interfaces file to look like this: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 # device: eth0 auto eth0 iface eth0 inet static address 78.46.37.118 netmask 255.255.255.255 gateway 78.46.37.97 pointopoint 78.46.37.97 iface eth0 inet6 static address 2a01:4f8:110:3148::2 netmask 64 gateway fe80::1 auto vmbr0 iface vmbr0 inet static address 78.46.37.118 netmask 255.255.255.255 bridge_ports none bridge_stp off bridge_fd 0 post-up ip route add 78.46.37.108/32 dev vmbr0 post-up ip route add 78.46.37.110/32 dev vmbr0 post-up ip route add 78.46.37.114/32 dev vmbr0 iface vmbr0 inet6 static address 2a01:4f8:110:3148::2 netmask 64 post-up ip -6 neigh add proxy 2a01:4f8:110:3148::3 dev eth0 post-up ip -6 neigh add proxy 2a01:4f8:110:3148::4 dev eth0 post-up ip -6 neigh add proxy 2a01:4f8:110:3148::5 dev eth0 post-up ip -6 neigh add proxy 2a01:4f8:110:3148::6 dev eth0 post-up ip -6 neigh add proxy 2a01:4f8:110:3148::7 dev eth0 post-up ip -6 neigh add proxy 2a01:4f8:110:3148::8 dev eth0 post-up ip -6 neigh add proxy 2a01:4f8:110:3148::9 dev eth0 Secondly, adjust you KVM guest network config to look like this (similar, you might want to replace the MAC address of the guest): ...

June 17, 2013 · 2 min · 222 words · christian