Hello guys, I decided to open this thread because I'm not finding a good solution to my problem.
First of all, I had a proxmox server on ovh, where for every additional IP address (subnet included) they provided me a static mac address to use in the network configuration of every container (lxc in this case).
Now I had to migrate my server to Hetzner, they provide subnets without the static mac address...
What is my problem? Every time I restart the network interface of my root server, the containers begins to be unreachable and to fix this, I have to regenerate a new mac address from the "network" panel of every container.
On my Dedicated the configuration is the following:
This is the configuration of one container (others have the same configuration) :
As said before, every time I restart the network interface of the dedicated, after that, the containers stops to work and I Have to generate a new mac address from the panel in the screenshot above.
What did I wrong?
[UPDATE]:
Not necessarily I have to change mac address, to "resume" the machine, I can for example tick and untick the firewall option, something that make some changes to the network
First of all, I had a proxmox server on ovh, where for every additional IP address (subnet included) they provided me a static mac address to use in the network configuration of every container (lxc in this case).
Now I had to migrate my server to Hetzner, they provide subnets without the static mac address...
What is my problem? Every time I restart the network interface of my root server, the containers begins to be unreachable and to fix this, I have to regenerate a new mac address from the "network" panel of every container.
On my Dedicated the configuration is the following:
Bash:
### Hetzner Online GmbH installimage
source /etc/network/interfaces.d/*
auto lo
iface lo inet loopback
iface lo inet6 loopback
auto enp35s0
iface enp35s0 inet static
address MAIN_IP
netmask 255.255.255.192
gateway GATEWAY_MAIN_IP
up route add -net XXX.XXX.XXX.XXX netmask 255.255.255.192 gw XXX.XXX.XXX.XXX dev enp35s0
#To use virtual machine , I did this:
auto vmbr0
iface vmbr0 inet static
address MAIN_IP
netmask 255.255.255.192
bridge_ports none
bridge_stp off
bridge_fd 0
bridge_maxwait 0
up ip route add SUBNET_IP/32 dev vmbr0
up ip route add SUBNET_IP_2/32 dev vmbr0
up ip route add SUBNET_IP_3/32 dev vmbr0
up ip route add SUBNET_IP_4/32 dev vmbr0
This is the configuration of one container (others have the same configuration) :
As said before, every time I restart the network interface of the dedicated, after that, the containers stops to work and I Have to generate a new mac address from the panel in the screenshot above.
What did I wrong?
[UPDATE]:
Not necessarily I have to change mac address, to "resume" the machine, I can for example tick and untick the firewall option, something that make some changes to the network
Last edited: