How to Add a Static Route on the ASUS RT-AC66U

ASUS_RT-AC66U_newsBased on the popularity of my previous ASUS RT-AC66U post regarding SNMP, I have decided to put together a simple post on how to configure static routing on the home router known as the Dark Knight.

In my humble abode, the RT-AC66U is the core of my home network, providing DHCP and Wireless to a plethora of devices. However, I am also running a small home lab which I need to be able to access from my home desktop. Hence the need for static routes.

Specifically, my home lab hosts the following networks;,, The IP address of my ASUS RT-AC66U is the default one of My desktop is on the network.

In order for me to access my lab from my desktop (and from the rest of my home network), I need to tell my ASUS how to route traffic destined for my 10. networks.

In order to accomplish this, we first need to navigate to LAN on the left pane, and then selecting the Route tab.


As shown in the screenshot above, we first need to select the “YES” radio button to “Enable Static Routes”. Next we enter a network ip (or static ip — if that’s what we are up to) into the “Network/Host IP “field. Then we enter our netmask into the field that is not surprisingly labeled Netmask”. In my case my netmask is

Now we move on to the field labeled “Gateway”. Here we need to enter what the next network hop for that a packet that is needs to route to our lab network. In my environment, this is, which is another router.

Then select “LAN” from the drop down as all our traffic will route to the internal LAN only, and not out to the internet or WAN. Now click the plus sign to add your new route.

Now when a packet destined for one of my lab networks outlined above hits my ASUS router, it will be forwarded to, which is my lab router.

Note that you can also add static routes via the busybox command line, however I am not going to go into that today. Its simple enough to add them in the WebUI.

26 thoughts on “How to Add a Static Route on the ASUS RT-AC66U

  1. Pingback: Configure the Asus RT-AC66U Router as a Caching DNS Server with Bind |

  2. Pingback: Install and Configure SNMP on the Asus RT-AC66U Router |

  3. Pingback: Disk I/O Monitoring on the Asus RT-AC66U Router |

    • You’re a complete asshat. Hopefully that grammar is formed right. This article isn’t a primer on routing, but on how to apply a static route hop to multiple router devices in the same home network. Hiding your ineptness behind a snarky opening comment is still transparent.

  4. I am having trouble getting my static routes to work. After I set them up I can ping the final IP but am unable to connect to the GUI. Is there anything else you have to set in the Asus GUI to allow traffic between the two networks?

    • David, can you elaborate? I read your post a few times, but I am not exactly clear on the exact situation. For example, do you mean that after you add your static route, you can then ping an IP in the address space of the route? What do you mean by you cannot connect to the GUI? Do you mean from your workstation? Or from the IP that you pinged previously?

      Note that you are not actually configuring the router to allow traffic between the two networks, rather you telling the router to redirect certain network traffic (for the designated ip ranges) to take a specific next network hop, instead of the default one that would normally be out to the internet. The next hop needs to know what to do with this traffic and where to send it so that it can get to its destination. The next hop also needs to know how to send traffic back to the asus router. Is your next hop router plugged directly into the asus router?

      • Settings
        Network/Host IP “”
        Netmask “”
        Gateway “”
        I can successfully ping from my computer at 192.168.0.xx
        When I enter into Firefox or Chrome I am unable to connect to the user interface. is connected wireless to the Asus router.

        When i remove the routes on the router and set them up on my computer everything works fine. I want the routes on the router so I can also access with other devices.

  5. I have the same problem as David. My topology:


    I have an ASUS RT-N66U connected to a Cisco router. I have the ASUS set up with a static route such as (for a lab subnet behind the Cisco router) pointing to next hop (Cisco router interface connected to ASUS). Similarly, on the Cisco router I have created a default route pointing to (which is my ASUS router interface). This works great, I can access public DNS servers and ping from my Cisco router. From my laptop I can ping devices in the 100.100.100.x subnet. So basic IP connectivity is fine…. BUT…. from my Laptop I can’t connect to TCP port 80, 443, or 8443, or whatever in the destination subnet 100.100.100.x as long as the traffic must traverse the ASUS. Wireshark shows my outbound requests and no response packets. There are no ACLs on my Cisco router. I verified when directly connected to the 192.168.1.x subnet on the Cisco router- I *can* connect to various TCP ports on my destination servers, which shows they are working fine. This points the finger clearly at ASUS doing the blocking.

    Is there a setting on ASUS to ensure wide open connectivity between wireless and wired Ethernet ports, including for any static routes? I also want to preserve the firewall functionality to protect the LAN and wireless from inbound requests via the WAN.

    • I figured out an ugly hack… telneting in, looking at iptables -L FORWARD -v to see which rules were getting hit, and I verified incrementing counters on the ‘any any INVALID rule’ (it’s the third one in my version of the firmware). As soon as I deleted this rule (e.g. iptables -D FORWARD 3) it enabled my access to webservers on that subnet.

      I don’t think this is a safe long term strategy because the rule is ‘any any’. I’m still trying to figure out where the nonvolatile config is stored so I can modify it, and trying to figure out a more surgical modification, such as a permit rule for ‘br0 br0 INVALID’ ahead of the block rule for ‘any any’ INVALID. That way invalid packets that are attack attempts coming in via eth0 (i.e. “the internet/WAN”) would still be blocked but my traffic between ports on the bridge interface would still get through. Progress though!

      • My final solution (working) that is good enough for me: instead of doing “iptables -D FORWARD 3” to delete the offending drop rule… I insert a rule above that accepts INVALID as long as the input and output interfaces are br0 (i.e. inside of my network- not the Eth0 WAN interface). Just type this after telneting into the router:
        iptables -I FORWARD 3 -i br0 -o br0 -j ACCEPT

        Of course, this presumes the third rule in your list is the offending INVALID line, and you want to open a little hole just in front of it. Note the following output that shows which rules are getting hit before and after, where you can see the INVALID rule dropping packets before the change, then the new rule I added hitting after the change, where the desired packet flow is actually working now.

        username@RT-N66U:/tmp/home/root# iptables -L FORWARD -v
        Chain FORWARD (policy ACCEPT 531 packets, 32018 bytes)
        pkts bytes target prot opt in out source destination
        2081 113K ACCEPT all — any any anywhere anywhere state RELATED,ESTABLISHED
        0 0 DROP all — !br0 eth0 anywhere anywhere
        5 2268 DROP all — any any anywhere anywhere state INVALID
        1 52 ACCEPT all — br0 br0 anywhere anywhere
        0 0 ACCEPT all — any any anywhere anywhere ctstate DNAT
        username@RT-N66U:/tmp/home/root# iptables -I FORWARD 3 -i br0 -o br0 -j ACCEPT
        username@RT-N66U:/tmp/home/root# iptables -L FORWARD -v
        Chain FORWARD (policy ACCEPT 535 packets, 32252 bytes)
        pkts bytes target prot opt in out source destination
        2092 113K ACCEPT all — any any anywhere anywhere state RELATED,ESTABLISHED
        0 0 DROP all — !br0 eth0 anywhere anywhere
        1049 88944 ACCEPT all — br0 br0 anywhere anywhere
        11 4600 DROP all — any any anywhere anywhere state INVALID
        1 52 ACCEPT all — br0 br0 anywhere anywhere
        0 0 ACCEPT all — any any anywhere anywhere ctstate DNAT

      • So now that I have had a chance to think about this, it kinda makes sense. The router only allows http connections from its local network. If I recall there is a setting to allow connections from WAN, I wonder if this will also allow connections from your other internal networks. Not that you want to also allow access from the WAN, but this might be the setting that would allow the access you want.

  6. I am suffering the same issue with an AC68U and routing to another network. I am using raspberry pis as OpenVPN servers with a remote site. When the static route is setup on the router I can ping the other networks devices but I can’t connect via RDP, SAMBA, HTTP etc. I can see the rejected package counter going up when this is happening.

    If I use a little TP-Link WR710N connected to my AC68U via WISP mode and set the route on this; I can fully access the other network.

    I have raised a support ticket with Asus UK and am talking with PeterS about this issue.

    I’ll keep you updated with my findings.

    • I understand the issue has been passed to the next line support team.Fingers crossed we start to get some positive momentum to fixing the issue.

      • I’ve a very similar setup with the same problem as Nathan. AC56U here.

        Waiting for your results. I’m thinking about opening another ticket…

  7. Pingback: Dual-router setup w/ a dedicated VPN Router: A step-by-step tutorial

  8. I am running 2 Asus rRT-AC87U routers and want to get one setup behind the other as a vpn connection, but I need windows devices and a freenas server to be able to communicate and stream media between devices on both routers. I understand network basics and can get the vpn running no problem, but the lan communication is a real problem for me!

    • Well, you should be able to setup both routers on the same lan, but both in separate /24 subnets. For example, router one can have, and router 2 can have On router 1, which let’s assume is internet facing, you could setup port forwarding to forward the vpn port from router 1 to router 2, and setup and instanciate the external VPN connection. This is assuming that you are connecting externally to the vpn. I do not believe that you will need a static route on router 1 to direct lan traffic destined for to router, but you might.

      In my home I have two networks. is the primary network, and is my lab network. I had to add a route on my primary router to route to the lab network. via dev br0 metric 1

      Where is an interface on router 2

      Again, I do not think you will need to do this as you will directly connecting router/network 1 to router/network2.

      Hope this helps.

  9. I tried to forward an IP (printer) to a my iAP where it distributes a new network
    I entered / / Target IP / 1(or nothing) / LAN.

    Looking at the tracert, it still tries to route it to WAN, any idea why?

  10. Christopher or Dave, since you two seem to know a little about this on the ASUS router maybe you can help. I have an RT-AC87U router and I would like to keep that network which is but also have another router that will be another network range. I don’t wan them to be able to talk to one another though. The second one just needs to be able to access the internet and it has a NAT that will be running on it. If I just plug it in (the second one to my ASUS it allows everything on my primary router to be seen even by the guest network that is created on it which I find to be VERY strange.) I know it is a nested NAT but it still doesn’t make sense. Will creating a static route help so that the second network won’t be able to see my first one and what would it look like? I am guessing the network would be something like and the gateway would be but I am not sure what I would put for the gateway. Would I put my main routers LAN address?

  11. Anyone can point me into the right direction, how to save a static routes added via the ssh terminal console? So they don’t disapper, I need some more advanced commands that can only be done via bash (like change the default gate way, while VPN is enabled). Couldn’t achieve this via web management. The route add/del commands are purged when restarting the device.

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.