Hi,
I am trying to setup a LXC with a public IP on a node hosted at Hetzner. The network config is somewhat different from the standard way.
My setup is done following this link: Proxmox on Debian at Hetzner with multiple IP addresses – blog.no-panic.at (no-panic.at)
It works fine for a KVM VM, but for a LXC I don't know how to apply the following config to a CT:
Any hint please?
I am trying to setup a LXC with a public IP on a node hosted at Hetzner. The network config is somewhat different from the standard way.
My setup is done following this link: Proxmox on Debian at Hetzner with multiple IP addresses – blog.no-panic.at (no-panic.at)
It works fine for a KVM VM, but for a LXC I don't know how to apply the following config to a CT:
Code:
auto eth0
iface eth0 inet static
address <ONE OF YOUR SUBNET'S IPs>
netmask 255.255.255.255
dns-nameservers 213.133.100.100 213.133.98.98 213.133.99.99
post-up ip route add <YOUR MAIN IP> dev eth0
post-up ip route add default via <YOUR MAIN IP> dev eth0
pre-down ip route del default via <YOUR MAIN IP> dev eth0
pre-down ip route del <YOUR MAIN IP> dev eth0
Any hint please?