|
From: Mark D. <mdu...@at...> - 2025-09-11 02:00:21
|
On 9/10/25 3:29 AM, Miro Kropáček wrote: > On Wed, 10 Sept 2025 at 08:44, Thorsten Otto via Freemint-discuss > <fre...@li...> wrote: > > I think you also need to specify a gateway ip. In my scripts, i use > > > exec /bin/route add default eth0 gw 192.168.1.1 > > > where 192.168.1.1 is the router. > > The thing is that I didn't want the router to be involved. As a > workaround, yes, I did use the other computer's IP address as gateway > but that shouldn't be necesarry -- route's help clearly states that > "gw" is optional. > > On route's side everything seems to be OK, it just calls FreeMiNT's > ioctl with the prefilled structure so I'm wondering whether there > isn't some bug or unexpected behaviour on FreeMiNT's side. > A default route necessarily has to involve an IP. Traffic that has no other destination has to route through somewhere. What you are looking for is a subnet route. That would look something more like route add 192.168.1.0 eth0 Which would say that all traffic to 192.168.1.0 goes out eth0. I'm not sure you could set it up so that you directly route to the whole internet but if you could it would look like route add 0.0.0.0 eth0 |