On Thu, 27 Sep 2018, Louis Kowolowski wrote:
The gateway has to relate to an subnet that is configured on an interface. If you want to make the default route 192.168.55.4, one interface (physical, or logical) must be on the 192.168.xxx.xxx subnet, where 192.168.55.4 is included. For example, if the subnet is 192.168.55.0/24, then your interface would need also be in the 192.168.55.0/24 block. If the gateway is .4, and there are no other hosts/devices, your computer's interface could be configured with any IP between 192.168.55.1-3, 192.168.55.5-254.
Thought I wrote this. The network is 192.168.0.0. This host is 192.168.55.7, and the netmask is 255.255.255.0. The kernel routing table on my current desktop is: # route Kernel IP routing table Destination Gateway Genmask Flags Metric Ref Use Iface default router1.appl-ec 0.0.0.0 UG 1 0 0 eth0 loopback * 255.0.0.0 U 0 0 0 lo 192.168.0.0 * 255.255.0.0 U 0 0 0 eth0 I'm trying to set the default gateway on the new desktop which already has the loopback and network routes as above (except on that host the interface is eth1). Rich _______________________________________________ PLUG mailing list [email protected] http://lists.pdxlinux.org/mailman/listinfo/plug
