Author
Message
PeterK2003 DD-WRT Novice Joined: 15 Aug 2018 Posts: 8
Posted: Sat Apr 23, 2022 1:22 Post subject: [SOLVED]Static Route not taking affect
I have set a static route but it never show up in the routing table.
How would one troubleshoot this?
Thank you in advance.
Back to top
Sponsor
egc DD-WRT Guru Joined: 18 Mar 2014 Posts: 12837 Location: Netherlands
Posted: Sat Apr 23, 2022 6:16 Post subject:
We can give better support if you tell us the router model and build number (some models have broken builds or maybe you are using an outdated build etc.)
Furthermore did you use the GUI to setup a static route? If so post a screenshot, if you are using the CLI (telnet/Putty) then how did you set up?
If you have not already read them then read the forum guidelines with helpful pointers about how to research your router, where and what firmware to download, where and how to post and many other helpful tips:
https://forum.dd-wrt.com/phpBB2/viewtopic.php?t=324087 _________________ Routers:Netgear R7000, R6400v1, R6400v2, EA6900 (XvortexCFE), E2000, E1200v1, WRT54GS v1.
Install guide R6400v2, R6700v3,XR300:https://forum.dd-wrt.com/phpBB2/viewtopic.php?t=316399
Install guide R7800/XR500: https://forum.dd-wrt.com/phpBB2/viewtopic.php?t=320614
Forum Guide Lines (important read): https://forum.dd-wrt.com/phpBB2/viewtopic.php?t=324087
Back to top
Per Yngve Berg DD-WRT Guru Joined: 13 Aug 2013 Posts: 6856 Location: Romerike, Norway
Posted: Sat Apr 23, 2022 8:45 Post subject:
It will not show up before the destination is up and running, i.e. the destination network may not be reachable because a VPN tunnel is not started.
Back to top
PeterK2003 DD-WRT Novice Joined: 15 Aug 2018 Posts: 8
Posted: Sat Apr 23, 2022 11:10 Post subject:
ASUS RT-AC66U
Firmware: DD-WRT v3.0-r44715 giga (11/03/20)
Added Via GUI but willing to do it via command but despite searching I couldn't find he command to so.
Code: Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
default 100.64.0.1 0.0.0.0 UG 0 0 0 vlan2
100.64.0.0 * 255.192.0.0 U 0 0 0 vlan2
100.96.1.0 100.96.1.17 255.255.255.0 UG 0 0 0 tun1
100.96.1.16 * 255.255.255.240 U 0 0 0 tun1
100.97.0.0 100.96.1.17 255.255.0.0 UG 0 0 0 tun1
127.0.0.0 * 255.0.0.0 U 0 0 0 lo
192.168.10.0 * 255.255.255.0 U 0 0 0 br0
Back to top
egc DD-WRT Guru Joined: 18 Mar 2014 Posts: 12837 Location: Netherlands
Posted: Sat Apr 23, 2022 11:31 Post subject:
First of all you are running an old and outdated build which already has security issues.
It is highly recommended that you upgrade.
Coming from such an old build a reset *after* update is also highly recommended.
After reset put settings in *manually*, never restore from a backup (to a different build)
Now on to your question, as we are talking about a subnet you better use 192.168.100.0
Furthermore the Gateway has to be available on the chosen interface if unsure use ANY as gateway (it looks like 192.168.10.1 is your routers internal IP address so that would be br0)
As we do not know your network and what it is you want to accomplish I cannot comment on the rule itself.
Edit: On newer builds (and perhaps it also works on older builds) you can set the gateway to 0.0.0.0 and then let DDWRT choose the appropriate address with the interface (but it could be that this only works on my build) _________________ Routers:Netgear R7000, R6400v1, R6400v2, EA6900 (XvortexCFE), E2000, E1200v1, WRT54GS v1.
Install guide R6400v2, R6700v3,XR300:https://forum.dd-wrt.com/phpBB2/viewtopic.php?t=316399
Install guide R7800/XR500: https://forum.dd-wrt.com/phpBB2/viewtopic.php?t=320614
Forum Guide Lines (important read): https://forum.dd-wrt.com/phpBB2/viewtopic.php?t=324087
Back to top
PeterK2003 DD-WRT Novice Joined: 15 Aug 2018 Posts: 8
Back to top
egc DD-WRT Guru Joined: 18 Mar 2014 Posts: 12837 Location: Netherlands
Posted: Sat Apr 23, 2022 11:45 Post subject:
From my first answer:
Quote: If you have not already read them then read the forum guidelines with helpful pointers about how to research your router, where and what firmware to download, where and how to post and many other helpful tips:
https://forum.dd-wrt.com/phpBB2/viewtopic.php?t=324087
Current build is 48646 _________________ Routers:Netgear R7000, R6400v1, R6400v2, EA6900 (XvortexCFE), E2000, E1200v1, WRT54GS v1.
Install guide R6400v2, R6700v3,XR300:https://forum.dd-wrt.com/phpBB2/viewtopic.php?t=316399
Install guide R7800/XR500: https://forum.dd-wrt.com/phpBB2/viewtopic.php?t=320614
Forum Guide Lines (important read): https://forum.dd-wrt.com/phpBB2/viewtopic.php?t=324087
Back to top
PeterK2003 DD-WRT Novice Joined: 15 Aug 2018 Posts: 8
Posted: Sat Apr 23, 2022 11:59 Post subject:
Thank you that was very helpful. I have got it working.
I needed that route so that still talk to my dishy.
would be interested in a more recent build however.
Back to top
egc DD-WRT Guru Joined: 18 Mar 2014 Posts: 12837 Location: Netherlands
Back to top
PeterK2003 DD-WRT Novice Joined: 15 Aug 2018 Posts: 8
Posted: Sat Apr 23, 2022 12:12 Post subject:
Yeah I had all the right setting before but not at the same time....
Also on the latest firmware now. I didn't realize that I wasn't suppose to use the router DB. Not sure what the point of that is then...
Back to top
Per Yngve Berg DD-WRT Guru Joined: 13 Aug 2013 Posts: 6856 Location: Romerike, Norway
Back to top
egc DD-WRT Guru Joined: 18 Mar 2014 Posts: 12837 Location: Netherlands
Posted: Sat Apr 23, 2022 12:22 Post subject:
PeterK2003 wrote: Yeah I had all the right setting before but not at the same time....
Also on the latest firmware now. I didn't realize that I wasn't suppose to use the router DB. Not sure what the point of that is then...
Unfortunately there is no point in the router database.
A long long time ago that was a stable build but it is not any more.
There is a disclaimer on the router database page but it is not very obvious, you are not the first "victim" .
Unfortunately the router database is out of our control so not much we can do about it at the moment _________________ Routers:Netgear R7000, R6400v1, R6400v2, EA6900 (XvortexCFE), E2000, E1200v1, WRT54GS v1.
Install guide R6400v2, R6700v3,XR300:https://forum.dd-wrt.com/phpBB2/viewtopic.php?t=316399
Install guide R7800/XR500: https://forum.dd-wrt.com/phpBB2/viewtopic.php?t=320614
Forum Guide Lines (important read): https://forum.dd-wrt.com/phpBB2/viewtopic.php?t=324087
Back to top