Steve Litt via plug on 12 Jan 2023 13:45:35 -0800 |
[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]
Re: [PLUG] Multi-Interface Networking a PiDP8 Simulator |
Soren Harward via plug said on Thu, 12 Jan 2023 10:37:28 -0500 >On Thu, Jan 12, 2023 at 8:39 AM Casey Bralla (Mail List) via plug ><plug@lists.phillylinux.org> wrote: >> But will this work? Wouldn't the system try to send the telnet/ssh >> via the wireless as the default route? > >Unless you've messed around with the route metrics, Linux will try to >send packets through any more specific route before it sends them >through the default route. So if you have > ># ip route list >default via 10.1.1.1 dev eno1 proto static >10.1.1.0/24 dev eno1 proto kernel scope link src 10.1.1.10 >10.1.2.0/24 dev eno2 proto kernel scope link src 10.1.2.10 > >and you ping 10.1.2.20, Linux will send that packet out eno2 via the >10.1.2.0/24 route instead of the default route on eno1. Nice! SteveT Steve Litt Autumn 2022 featured book: Thriving in Tough Times http://www.troubleshooters.com/bookstore/thrive.htm ___________________________________________________________________________ Philadelphia Linux Users Group -- http://www.phillylinux.org Announcements - http://lists.phillylinux.org/mailman/listinfo/plug-announce General Discussion -- http://lists.phillylinux.org/mailman/listinfo/plug