I've got two servers with 3 interfaces between them all on the same VLAN.
Server 1: 1 NIC, 1 IP block (/29) with subnet
Server 2: 2 NICs, 2 IP blocks (one /28 and the other /29) with different gateways and different subnets. The subnet for the /29 block is
255.255.255.248, and the other one is
255.255.255.240. Currently, I have two IP blocks and two gateways added on NIC1 (of Server 2).
So, say I want to move an IP from NIC1 to NIC2 on the same server - Server 2. Do I need to have the gateway corresponding to that IP added on both NICs since I will have IPs from the same block on both interfaces?
Now, if I want to move an IP between two different servers, do I also need to add the corresponding gateways?
Basically what I want to accomplish is this:
Server 1: original /29 block will stay here, additional IPs from Server 2 from the /28 block Server 2: NIC1 - /28 block, NIC2 - original /29 block
Is this a logical and problem free setup? If I have two different gateways on two different interfaces on the same machine, I get the following error:
Warning: Multiple default gateways are intended to provide redundancy to a single network (such as an intranet or the Internet). They will not function properly when the gateways are on two separate, disjoint networks (such as one on your intranet and one on the Internet). Do you want to save this configuration?
All interfaces require internet connectivity.