I have a server on Hetzner and I have successfully added in the past a /29 subnet and an extra single IP.
Now however I am trying to add another extra single IP and whatever I have tried it just doesn’t work.
I usually don’t write into forums without trying all I can so please any help is much appreciated!
This is the contents of my current /etc/network/intefaces file (I have changed slightly the IPs for security reasons).
+++++++++++++++++++
[FONT=&]# network interface settings[/FONT]
[FONT=&]auto lo[/FONT]
[FONT=&]iface lo inet loopback[/FONT]
[FONT=&]auto eth0[/FONT]
[FONT=&]iface eth0 inet static[/FONT]
[FONT=&] address 5.9.66.48[/FONT]
[FONT=&] netmask 255.255.255.224[/FONT]
[FONT=&] broadcast 5.9.66.64[/FONT]
[FONT=&] gateway 5.9.65.33[/FONT]
[FONT=&]auto vmbr0[/FONT]
[FONT=&]iface vmbr0 inet static[/FONT]
[FONT=&] address 78.47.219.71[/FONT]
[FONT=&] netmask 255.255.255.248[/FONT]
[FONT=&] bridge_ports none[/FONT]
[FONT=&] bridge_stp off[/FONT]
[FONT=&] bridge_fd 0[/FONT]
[FONT=&]auto vmbr1[/FONT]
[FONT=&]iface vmbr1 inet static[/FONT]
[FONT=&] address 192.168.0.1[/FONT]
[FONT=&] netmask 255.255.255.0[/FONT]
[FONT=&] bridge_ports none[/FONT]
[FONT=&] bridge_stp off[/FONT]
[FONT=&] bridge_fd 0[/FONT]
[FONT=&] post-up echo 1 > /proc/sys/net/ipv4/ip_forward[/FONT]
[FONT=&] post-up iptables -t nat -A POSTROUTING -s '192.168.0.0/24' -o eth0 -j MASQUERADE[/FONT]
[FONT=&] post-down iptables -t nat -D POSTROUTING -s '192.168.0.0/24' -o eth0 -j MASQUERADE[/FONT]
[FONT=&]# bridge for VMs with public IPs (DMZ)[/FONT]
[FONT=&]auto vmbr2[/FONT]
[FONT=&]iface vmbr2 inet static[/FONT]
[FONT=&] address 5.9.66.48[/FONT]
[FONT=&] netmask 255.255.255.224[/FONT]
[FONT=&] bridge_ports none[/FONT]
[FONT=&] bridge_stp off[/FONT]
[FONT=&] bridge_fd 0[/FONT]
[FONT=&] up ip route add 5.9.66.57/32 dev vmbr2[/FONT]
[FONT=&]#[/FONT]
[FONT=&]#[/FONT]
[FONT=&]#[/FONT]
[FONT=&]auto vmbr3[/FONT]
[FONT=&]iface vmbr3 inet static[/FONT]
[FONT=&] address 5.9.66.48[/FONT]
[FONT=&] netmask 255.255.255.248[/FONT]
[FONT=&] bridge_ports none[/FONT]
[FONT=&] bridge_stp off[/FONT]
[FONT=&] bridge_fd 0[/FONT]
[FONT=&] up ip route add 5.9.104.60/32 dev vmbr3[/FONT]
+++++++++++++++++++
[FONT=&]5.9.66.48 is the main server IP[/FONT]
[FONT=&]78.47.219.71 is one of /29 IPs assigned to a bridge to provide connectivity to the remaining IP (Works)[/FONT]
[FONT=&]5.9.66.57 is the 1st single extra IP (Works)[/FONT]
[FONT=&]5.9.66.48 is the 2nd extra IP which I am having problems getting it to work[/FONT]
[FONT=&]
[/FONT]
[FONT=&]The IP settings inside the KVM are[/FONT]
[FONT=&]IP: 5.9.66.48[/FONT]
[FONT=&]Netmask: 255.255.255.248[/FONT]
[FONT=&]Gateway: 5.9.66.48[/FONT]
[FONT=&]KVM is Bridged to vmbr3[/FONT]
[FONT=&]Note: The IP details provided by Hetzner for the 2nd extra IP are:[/FONT]
[FONT=&]IP: 5.9.104.60
[/FONT][FONT=&]Netmask: 255.255.255.248[/FONT]
[FONT=&]Gateway: 5.9.104.57[/FONT]
[FONT=&]Broadcast: 5.9.66.64[/FONT]
[FONT=&]I have tried with and without a MAC address given by Hetzner, however no luck.[/FONT]
[FONT=&]What am I doing wrong here?!?!
[/FONT][FONT=&]
[/FONT]
Now however I am trying to add another extra single IP and whatever I have tried it just doesn’t work.
I usually don’t write into forums without trying all I can so please any help is much appreciated!
This is the contents of my current /etc/network/intefaces file (I have changed slightly the IPs for security reasons).
+++++++++++++++++++
[FONT=&]# network interface settings[/FONT]
[FONT=&]auto lo[/FONT]
[FONT=&]iface lo inet loopback[/FONT]
[FONT=&]auto eth0[/FONT]
[FONT=&]iface eth0 inet static[/FONT]
[FONT=&] address 5.9.66.48[/FONT]
[FONT=&] netmask 255.255.255.224[/FONT]
[FONT=&] broadcast 5.9.66.64[/FONT]
[FONT=&] gateway 5.9.65.33[/FONT]
[FONT=&]auto vmbr0[/FONT]
[FONT=&]iface vmbr0 inet static[/FONT]
[FONT=&] address 78.47.219.71[/FONT]
[FONT=&] netmask 255.255.255.248[/FONT]
[FONT=&] bridge_ports none[/FONT]
[FONT=&] bridge_stp off[/FONT]
[FONT=&] bridge_fd 0[/FONT]
[FONT=&]auto vmbr1[/FONT]
[FONT=&]iface vmbr1 inet static[/FONT]
[FONT=&] address 192.168.0.1[/FONT]
[FONT=&] netmask 255.255.255.0[/FONT]
[FONT=&] bridge_ports none[/FONT]
[FONT=&] bridge_stp off[/FONT]
[FONT=&] bridge_fd 0[/FONT]
[FONT=&] post-up echo 1 > /proc/sys/net/ipv4/ip_forward[/FONT]
[FONT=&] post-up iptables -t nat -A POSTROUTING -s '192.168.0.0/24' -o eth0 -j MASQUERADE[/FONT]
[FONT=&] post-down iptables -t nat -D POSTROUTING -s '192.168.0.0/24' -o eth0 -j MASQUERADE[/FONT]
[FONT=&]# bridge for VMs with public IPs (DMZ)[/FONT]
[FONT=&]auto vmbr2[/FONT]
[FONT=&]iface vmbr2 inet static[/FONT]
[FONT=&] address 5.9.66.48[/FONT]
[FONT=&] netmask 255.255.255.224[/FONT]
[FONT=&] bridge_ports none[/FONT]
[FONT=&] bridge_stp off[/FONT]
[FONT=&] bridge_fd 0[/FONT]
[FONT=&] up ip route add 5.9.66.57/32 dev vmbr2[/FONT]
[FONT=&]#[/FONT]
[FONT=&]#[/FONT]
[FONT=&]#[/FONT]
[FONT=&]auto vmbr3[/FONT]
[FONT=&]iface vmbr3 inet static[/FONT]
[FONT=&] address 5.9.66.48[/FONT]
[FONT=&] netmask 255.255.255.248[/FONT]
[FONT=&] bridge_ports none[/FONT]
[FONT=&] bridge_stp off[/FONT]
[FONT=&] bridge_fd 0[/FONT]
[FONT=&] up ip route add 5.9.104.60/32 dev vmbr3[/FONT]
+++++++++++++++++++
[FONT=&]5.9.66.48 is the main server IP[/FONT]
[FONT=&]78.47.219.71 is one of /29 IPs assigned to a bridge to provide connectivity to the remaining IP (Works)[/FONT]
[FONT=&]5.9.66.57 is the 1st single extra IP (Works)[/FONT]
[FONT=&]5.9.66.48 is the 2nd extra IP which I am having problems getting it to work[/FONT]
[FONT=&]
[/FONT]
[FONT=&]The IP settings inside the KVM are[/FONT]
[FONT=&]IP: 5.9.66.48[/FONT]
[FONT=&]Netmask: 255.255.255.248[/FONT]
[FONT=&]Gateway: 5.9.66.48[/FONT]
[FONT=&]KVM is Bridged to vmbr3[/FONT]
[FONT=&]Note: The IP details provided by Hetzner for the 2nd extra IP are:[/FONT]
[FONT=&]IP: 5.9.104.60
[/FONT][FONT=&]Netmask: 255.255.255.248[/FONT]
[FONT=&]Gateway: 5.9.104.57[/FONT]
[FONT=&]Broadcast: 5.9.66.64[/FONT]
[FONT=&]I have tried with and without a MAC address given by Hetzner, however no luck.[/FONT]
[FONT=&]What am I doing wrong here?!?!
[/FONT][FONT=&]
[/FONT]