Hi,
i´m running a dedicated root server from Hetzner and i want to run proxmox for installing virtual machines.
At the moment Proxmox is installed successfully and running. My problem is the network configuration.
I just followed a lot of guides and manuals - for example:
This This This and This... For me not one of them is working and i already reinstalled my server uncoutable times.
Im running:
Debian 8 Minimal
Proxmox 4.4-13
My current network configuration:
Proxmox Node /etc/network/interfaces
The following settings have been made on the node:
I also edited the file " /etc/sysctl.conf" and "/etc/sysctl.d/99-hetzner.conf" for saving this configuration.
Debian VM on Proxmox Node /etc/network/interfaces:
With this configuration i´m able to ping my VM from the Proxmox Node:
And i´m able to ping my Proxmox Node from the VM:
But i´m not able to ping to the internet from the VM:
Can anyone help and tell me what i´m doing wrong?
i´m running a dedicated root server from Hetzner and i want to run proxmox for installing virtual machines.
At the moment Proxmox is installed successfully and running. My problem is the network configuration.
I just followed a lot of guides and manuals - for example:
This This This and This... For me not one of them is working and i already reinstalled my server uncoutable times.
Im running:
Debian 8 Minimal
Proxmox 4.4-13
My current network configuration:
Proxmox Node /etc/network/interfaces
Code:
source /etc/network/interfaces.d/*
auto lo
iface lo inet loopback
iface lo inet6 loopback
auto eth0
iface eth0 inet static
address 176.xx.xx.219
netmask 255.255.255.224
pointopoint 176.xx.xx.193
gateway 176.xx.xx.193
up route add -net 176.xx.xx.192 netmask 255.255.255.224 gw 176.xx.xx.193 dev eth0
# route 176.xx.xx.192/27 via 176.xx.xx.193
iface eth0 inet6 static
address 2a01:xx.xx708f::2
netmask 64
gateway fe80::1
auto vmbr0
iface vmbr0 inet static
address 176.xx.xx.219
netmask 255.255.255.255
bridge_ports none
bridge_stp off
bridge_fd 0
bridge_maxwait 0
pre-up brctl addbr vmbr0
up ip route add 176.xx.xx.158/32 dev vmbr0
iface vmbr0 inet6 static
address 2a01:XX:XX:708f::2
netmask 64
auto vmbr1
iface vmbr1 inet static
address 10.20.30.1
netmask 255.255.255.0
bridge_ports none
bridge_stp off
bridge_fd 0
post-up iptables -t nat -A POSTROUTING -s '10.20.30.0/24' -o eth0 -j MASQUERADE
post-down iptables -t nat -D POSTROUTING -s '10.20.30.0/24' -o eth0 -j MASQUERADE
The following settings have been made on the node:
Code:
sysctl -w net.ipv4.ip_forward=1
sysctl -w net.ipv6.conf.all.forwarding=1
I also edited the file " /etc/sysctl.conf" and "/etc/sysctl.d/99-hetzner.conf" for saving this configuration.
Debian VM on Proxmox Node /etc/network/interfaces:
Code:
source /etc/network/interfaces.d/*
auto lo
iface lo inet loopback
allow hotplug eth0
iface eth0 inet static
address 176.xx.xx.158
netmask 255.255.255.255
pointopoint 176.xx.xx.219
gateway 176.xx.xx.219
dns-nameservers 213.133.100.100 213.133.98.98
With this configuration i´m able to ping my VM from the Proxmox Node:
Code:
root@PROXMOX ~ # ping 176.xx.xx.158
PING 176.xx.xx.158 (176.xx.xx.158) 56(84) bytes of data.
64 bytes from 176.xx.xx.158: icmp_seq=1 ttl=64 time=0.154 ms
64 bytes from 176.xx.xx.158: icmp_seq=2 ttl=64 time=0.183 ms
64 bytes from 176.xx.xx.158: icmp_seq=3 ttl=64 time=0.205 ms
64 bytes from 176.xx.xx.158: icmp_seq=4 ttl=64 time=0.220 ms
64 bytes from 176.xx.xx.158: icmp_seq=5 ttl=64 time=0.235 ms
64 bytes from 176.xx.xx.158: icmp_seq=6 ttl=64 time=0.198 ms
And i´m able to ping my Proxmox Node from the VM:
Code:
root@VM01 ~ # ping 176.xx.xx.219
PING 176.xx.xx.219 (176.xx.xx.219) 56(84) bytes of data.
64 bytes from 176.xx.xx.219: icmp_seq=1 ttl=64 time=0.133 ms
64 bytes from 176.xx.xx.219: icmp_seq=2 ttl=64 time=0.127 ms
64 bytes from 176.xx.xx.219: icmp_seq=3 ttl=64 time=0.143 ms
64 bytes from 176.xx.xx.219: icmp_seq=4 ttl=64 time=0.167 ms
64 bytes from 176.xx.xx.219: icmp_seq=5 ttl=64 time=0.166 ms
64 bytes from 176.xx.xx.219: icmp_seq=6 ttl=64 time=0.144 ms
But i´m not able to ping to the internet from the VM:
Code:
root@VM01 ~ # ping 8.8.8.8
PING 8.8.8.8 (8.8.8.8) 56(84) bytes of data.
Can anyone help and tell me what i´m doing wrong?
Last edited: