Can someone please help with adding an extra IP ??? I tried everything :(

Netizen

Member
Aug 16, 2012
88
0
6
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=&amp]# network interface settings[/FONT]
[FONT=&amp]auto lo[/FONT]
[FONT=&amp]iface lo inet loopback[/FONT]

[FONT=&amp]auto eth0[/FONT]
[FONT=&amp]iface eth0 inet static[/FONT]
[FONT=&amp] address 5.9.66.48[/FONT]
[FONT=&amp] netmask 255.255.255.224[/FONT]
[FONT=&amp] broadcast 5.9.66.64[/FONT]
[FONT=&amp] gateway 5.9.65.33[/FONT]

[FONT=&amp]auto vmbr0[/FONT]
[FONT=&amp]iface vmbr0 inet static[/FONT]
[FONT=&amp] address 78.47.219.71[/FONT]
[FONT=&amp] netmask 255.255.255.248[/FONT]
[FONT=&amp] bridge_ports none[/FONT]
[FONT=&amp] bridge_stp off[/FONT]
[FONT=&amp] bridge_fd 0[/FONT]

[FONT=&amp]auto vmbr1[/FONT]
[FONT=&amp]iface vmbr1 inet static[/FONT]
[FONT=&amp] address 192.168.0.1[/FONT]
[FONT=&amp] netmask 255.255.255.0[/FONT]
[FONT=&amp] bridge_ports none[/FONT]
[FONT=&amp] bridge_stp off[/FONT]
[FONT=&amp] bridge_fd 0[/FONT]
[FONT=&amp] post-up echo 1 > /proc/sys/net/ipv4/ip_forward[/FONT]
[FONT=&amp] post-up iptables -t nat -A POSTROUTING -s '192.168.0.0/24' -o eth0 -j MASQUERADE[/FONT]
[FONT=&amp] post-down iptables -t nat -D POSTROUTING -s '192.168.0.0/24' -o eth0 -j MASQUERADE[/FONT]


[FONT=&amp]# bridge for VMs with public IPs (DMZ)[/FONT]
[FONT=&amp]auto vmbr2[/FONT]
[FONT=&amp]iface vmbr2 inet static[/FONT]
[FONT=&amp] address 5.9.66.48[/FONT]
[FONT=&amp] netmask 255.255.255.224[/FONT]
[FONT=&amp] bridge_ports none[/FONT]
[FONT=&amp] bridge_stp off[/FONT]
[FONT=&amp] bridge_fd 0[/FONT]
[FONT=&amp] up ip route add 5.9.66.57/32 dev vmbr2[/FONT]
[FONT=&amp]#[/FONT]
[FONT=&amp]#[/FONT]
[FONT=&amp]#[/FONT]
[FONT=&amp]auto vmbr3[/FONT]

[FONT=&amp]iface vmbr3 inet static[/FONT]
[FONT=&amp] address 5.9.66.48[/FONT]
[FONT=&amp] netmask 255.255.255.248[/FONT]

[FONT=&amp] bridge_ports none[/FONT]
[FONT=&amp] bridge_stp off[/FONT]
[FONT=&amp] bridge_fd 0[/FONT]
[FONT=&amp] up ip route add 5.9.104.60/32 dev vmbr3[/FONT]

+++++++++++++++++++



[FONT=&amp]5.9.66.48 is the main server IP[/FONT]
[FONT=&amp]78.47.219.71 is one of /29 IPs assigned to a bridge to provide connectivity to the remaining IP (Works)[/FONT]
[FONT=&amp]5.9.66.57 is the 1st single extra IP (Works)[/FONT]
[FONT=&amp]5.9.66.48 is the 2nd extra IP which I am having problems getting it to work[/FONT]

[FONT=&amp]
[/FONT]

[FONT=&amp]The IP settings inside the KVM are[/FONT]

[FONT=&amp]IP: 5.9.66.48[/FONT]
[FONT=&amp]Netmask: 255.255.255.248[/FONT]
[FONT=&amp]Gateway: 5.9.66.48[/FONT]
[FONT=&amp]KVM is Bridged to vmbr3[/FONT]



[FONT=&amp]Note: The IP details provided by Hetzner for the 2nd extra IP are:[/FONT]

[FONT=&amp]IP: 5.9.104.60
[/FONT]
[FONT=&amp]Netmask: 255.255.255.248[/FONT]
[FONT=&amp]Gateway: 5.9.104.57[/FONT]
[FONT=&amp]Broadcast: 5.9.66.64[/FONT]


[FONT=&amp]I have tried with and without a MAC address given by Hetzner, however no luck.[/FONT]

[FONT=&amp]What am I doing wrong here?!?!

[/FONT]:([FONT=&amp]
[/FONT]
 
[FONT=&amp]5.9.66.48 is the main server IP[/FONT]
[FONT=&amp]78.47.219.71 is one of /29 IPs assigned to a bridge to provide connectivity to the remaining IP (Works)[/FONT]
[FONT=&amp]5.9.66.57 is the 1st single extra IP (Works)[/FONT]
[FONT=&amp]5.9.66.48 is the 2nd extra IP which I am having problems getting it to work[/FONT]

maybe it's a typo but you really mean
* [FONT=&amp]5.9.66.48 is the main server IP[/FONT]
[FONT=&amp]* 5.9.66.48 is the 2nd extra IP [/FONT]

because they're identical...

Marco
 
Apologies, this is only a typo when I was changing the IPs for the needs of this post.
Of course the IP is NOT identical with the main server IP.