Set default gateway to LAN IP

Post Reply
watcher60
Posts: 5
Joined: Sun May 10, 2020 10:17 am

Set default gateway to LAN IP

Post by watcher60 »

All,
outside of my other post, is there anyway to set the default gw to an internal LAN IP on a 7800DXL? I want to do this so I can point to a 4G dongle connected to another access point.

On previous busybox devices I have done this via the SSH interface with the route command (example below), however when I try the SSH connection disconnects but capturing the output gives:

=~=~=~=~=~=~=~=~=~=~=~= PuTTY log 2020.05.10 12:09:50 =~=~=~=~=~=~=~=~=~=~=~=
route add --net default --gw 192.168.1.222 --metric 15 --dev br0
Invalid destination IP address
Aiee, segfault! You should probably report this as a bug to the developer
billion_fan
Posts: 5374
Joined: Tue Jul 19, 2011 4:30 pm

Re: Set default gateway to LAN IP

Post by billion_fan »

watcher60 wrote: Sun May 10, 2020 12:14 pm All,
outside of my other post, is there anyway to set the default gw to an internal LAN IP on a 7800DXL? I want to do this so I can point to a 4G dongle connected to another access point.

On previous busybox devices I have done this via the SSH interface with the route command (example below), however when I try the SSH connection disconnects but capturing the output gives:

=~=~=~=~=~=~=~=~=~=~=~= PuTTY log 2020.05.10 12:09:50 =~=~=~=~=~=~=~=~=~=~=~=
route add --net default --gw 192.168.1.222 --metric 15 --dev br0
Invalid destination IP address
Aiee, segfault! You should probably report this as a bug to the developer
As far as I am aware you can only set the default gateway to the WAN connection eg EWAN >> IP over Ethernet
watcher60
Posts: 5
Joined: Sun May 10, 2020 10:17 am

Re: Set default gateway to LAN IP

Post by watcher60 »

Thanks for the reply - that is unfortunate. I guess I could "hack it" by adding the 254 class A routes to work around it
Post Reply