Hi! I have 2 public ip on hetzner. One for host and one for container.
I have vmbr0 where hosted vm behind NAT host ip. And i create vmbr1 for second public ip.
But i not have ping from container to host and host cant ping container.
How i can add ip to CT?
In container configuration:
ip: 156.XXX.XXX.109/26
gateway: 156.XXX.XXX.65
sudo cat /etc/network/interfaces
I have vmbr0 where hosted vm behind NAT host ip. And i create vmbr1 for second public ip.
But i not have ping from container to host and host cant ping container.
How i can add ip to CT?
In container configuration:
ip: 156.XXX.XXX.109/26
gateway: 156.XXX.XXX.65
sudo cat /etc/network/interfaces
Code:
source /etc/network/interfaces.d/*
auto lo
iface lo inet loopback
iface lo inet6 loopback
auto enp5s0
iface enp5s0 inet static
address 156.XXX.XXX.106/26
gateway 156.XXX.XXX.65
up route add -net 156.XXX.XXX.64 netmask 255.255.255.192 gw 156.XXX.XXX.65 dev enp5s0
post-up echo 1 > /proc/sys/net/ipv4/ip_forward
post-up echo 1 > /proc/sys/net/ipv4/conf/enp5s0/proxy_arp
auto vmbr0
iface vmbr0 inet static
address 10.16.1.1/24
bridge-ports none
bridge-stp off
bridge-fd 0
#Local br
auto vmbr1
iface vmbr1 inet static
bridge-ports none
bridge-stp off
bridge-fd 0
Last edited: