Hi guys,
I spent 2 days struggling with simple configuration on hetzner dedicated server. I've read many articles, docs, search here on forum but still additional IP is not working.
It should be something really easy and straight forward but I see many people are having same issue over and over again. And now me too
Going into details, i have dedicated server with standard IPv4 and IPv6 subnet. Additionally i bought another IP address and now i want to have second IPv4 working with container.
PVE HOST (/etc/network/interfaces):
HOST routes (route -n):
Guest (/etc/network/interfaces):
Guest routes (route -n):
Additionally in guest container I added mac address in gui. Currenlty I cannot even ping main gateway - XX.XX.76.193 from guest.
Can you advise what I'm doing here wrong or where is the problem ?
Thanks
I spent 2 days struggling with simple configuration on hetzner dedicated server. I've read many articles, docs, search here on forum but still additional IP is not working.
It should be something really easy and straight forward but I see many people are having same issue over and over again. And now me too
Going into details, i have dedicated server with standard IPv4 and IPv6 subnet. Additionally i bought another IP address and now i want to have second IPv4 working with container.
PVE HOST (/etc/network/interfaces):
Code:
#Main IPv4
auto eno1
iface eno1 inet static
address XX.XX.76.215 [MAIN IP]
netmask 255.255.255.192 [MAIN SUBNET]
gateway XX.XX.76.193 [MAIN GATEWAY]
up route add -net XX.XX.76.192 netmask 255.255.255.192 gw XX.XX.76.193 dev eno1
#pointopoint XX.XX.76.193
Code:
#VM routed
auto vmbr0
iface vmbr0 inet static
address XX.XX.76.215 [MAIN IP]
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 XX.XX.76.213/32 dev vmbr0 [ADDITIONAL IP]
HOST routes (route -n):
Code:
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
0.0.0.0 XX.XX.76.193 0.0.0.0 UG 0 0 0 eno1
10.10.10.0 0.0.0.0 255.255.255.0 U 0 0 0 vmbr1
XX.XX.76.192 XX.XX.76.193 255.255.255.192 UG 0 0 0 eno1
XX.XX.76.192 0.0.0.0 255.255.255.192 U 0 0 0 eno1
XX.XX.76.213 0.0.0.0 255.255.255.255 UH 0 0 0 vmbr0
Guest (/etc/network/interfaces):
Code:
auto eth0
iface eth0 inet static
address XX.XX.76.213/32 [ADDITIONAL IP]
# --- BEGIN PVE ---
post-up ip route add XX.XX.76.215 dev eth0 [MAIN IP]
post-up ip route add default via XX.XX.76.215 dev eth0 [MAIN IP]
pre-down ip route del default via XX.XX.76.215 dev eth0 [MAIN IP]
pre-down ip route del XX.XX.76.215 dev eth0 [MAIN IP]
# --- END PVE ---
dns-nameservers 1.1.1.1 8.8.8.8
Guest routes (route -n):
Code:
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
0.0.0.0 XX.XX.76.215 0.0.0.0 UG 0 0 0 eth0
XX.XX.76.215 0.0.0.0 255.255.255.255 UH 0 0 0 eth0
Additionally in guest container I added mac address in gui. Currenlty I cannot even ping main gateway - XX.XX.76.193 from guest.
Can you advise what I'm doing here wrong or where is the problem ?
Thanks