On Mon, Oct 30, 2023 at 5:53 PM Mihamina RKTMB <miham...@atscom.io> wrote: > > I rent a dedicated server where I installed an hypervisor and purchased > failover public IPv4 IPs routed to that server. > > When configuring the Debian VMs to use those failover IPs, I have to > > - set the address to /32: "ip addr add $IP/32 dev eth0" > > - set the traffic to the gateway to go through the NIC: "ip route add > $GW dev eth0" > > - set the default route to go via the gateway: "ip route add default via > $GW" > > As I set the IP address to a /32, the gateway is not (never) in the > subnet of the VM. > > When using the Debian installer, at the networking setup, the installer > refuses that setting: the gateway is not in the subnet of the set IP > address. > > The workaround I use is either to > > - finish the installation without network and then at reboot, setup the > network > > - manually setup the network during installation in another console > > But isn't there a way to make the Debian installer accept that the > gateway is not in the subnet of the set IP address?
It should not matter, if I recall correctly. Anything the machine does not know how to route goes out on the default interface. That should be the 0.0.0.0 entry in the routing table. Maybe you need to help the installer along, and set the default route for the machine? Perhaps using an alternate virtual terminal, like FN+F5. I believe the command is `route add default gw {IP-ADDRESS} {INTERFACE-NAME}`. Jeff