0
I have one physical server with one network interface. IP forwarding is enabled and firewall configured properly.
My provider has assign me one primary IP address and 4 failover IP addresses form a different subnet. The problem is I don't know how to configure them in a way that I won't be wasting ipv4 resources.
(the IP addresses in this example are fake, and only for informative and example of setup, but they are an exact analogy)
Main server (host): Primary IP: 100.0.98.116, gateway 100.0.98.115, netmask 255.255.255.252.
Failover IP addresses: 50.76.102.200 50.76.102.201 50.76.102.202 50.76.102.203
How can I use all of them in virtual machines using bridged networking (assigned directly to the host interface)? At the moment, I have to add 50.76.102.201 to the main server primary interface as secondary address, with netmask 255.255.255.252. In the virtual machine, I use the IP address 50.76.102.202 with netmask 255.255.255.252 and gateway 50.76.102.201. But this allows me less IPv4 addresses to use. What would be a way to use them all, and use the gateway 100.0.98.115?