In my cable ethernet configuration, a Fedora 35 workstation has 2 network interfaces:
if0 connected to an Internet router via DHCP
if1 connected to the LAN with a static IP
Machines in the LAN are only connected to this Fedora 35 workstation, and all machines in the network can access Internet.
The problem: my Fedora 35 workstation
folio cannot reach machines on the LAN (subnet
192.168.1.0/24). Ping always goes to the Internet router, which can't see my LAN machines. It seems to be a problem with the routing table (some of these entries were mysteriously added after an update):
Destination Gateway Genmask Indic Metric Ref Use Iface
default _gateway 0.0.0.0 UG 101 0 0 if0
default folio 0.0.0.0 UG 20100 0 0 if1
10.0.0.0 0.0.0.0 255.255.0.0 U 101 0 0 if0
192.168.1.0 0.0.0.0 255.255.255.0 U 100 0 0 if1
192.168.1.0 folio 255.255.255.0 UG 100 0 0 if1
192.168.1.0 folio 255.255.255.0 UG 101 0 0 if0
folio 0.0.0.0 255.255.255.255 UH 101 0 0 if0
How can I configure the routing table so that traffic to the subnet goes to
if1 and all other traffic goes to
if0? It seems like this should be simple but I've tried quite a few suggestions and nothing seems to work. If possible, please explain any suggestions in steps, or include a link to reference material, since I don't know much about linux networking.
If there is any way to configure the system to "route the obvious way by netmask", that would really be ideal.