--route-nopull When used with --client or --pull, accept options pushed by server EXCEPT for routes and dhcp options like DNS servers. When used on the client, this option effectively bars the server from adding routes to the client's routing table, however note that this option still allows the server to set the TCP/IP properties of the client's TUN/TAP interface.

# Route to router 3 subnet config route option interface lan # remote subnet that route is for (called destination on dd-wrt i think) option target 10.0.1.0 # net mask of subnet on router 3) option netmask 255.255.255.0 # ip address of next hop to destination subnet, router 3 wan option gateway 10.0.3.1 OpenWrt Project: OpenWrt as router device In General Setup tab, in IPv4 address type in the desired static IP address for the LAN interface of your OpenWrt Router, if your main router's address is 192.168.1.1 (most common), set the IP address of your OpenWrt router LAN interface to 192.168.2.1 (or to something that isn't 192.168.1.X, anyway). OpenWrt Forum Archive May 04, 2018 #3356 (add static routes support) – OpenWrt

Apr 01, 2020

OpenWRT Network Configuration - Exterior Memory Static Route To add a static route, run /sbin/route, or set them in /etc/config/network. Let's say you need the routes: Destination Gateway Genmask Flags MSS Window irtt Iface 192.0.2.3 0.0.0.0 255.255.255.255 UH 0 0 0 eth0.1 0.0.0.0 192.0.2.3 0.0.0.0 UG 0 0 0 eth0.1

When the first interface comes up a default route with metric 10 is configured, but when the second interface comes up the default route is removed and replaced by the second interface default route. In my opinion this should not be replaced, but added. Only remove static if it is really from that interface. I really need it for my mwan script.

Static routing is a form of routing that occurs when a router uses a manually-configured routing entry, rather than information from a dynamic routing traffic. In many cases, static routes are manually configured by a network administrator by adding in entries into a routing table, though this may not always be the case. Unlike dynamic routing, static routes are fixed and do not change if the networking - OpenVPN client on OpenWRT not routing traffic add a static route on your ubuntu machine that network 192.168.237.0/24 is reachable via the 10.8.0.x IP of your router. You then have to ensure that the router always gets the very same IP-Address add a routing protocol - e.g. RIP2. You can easily enable this by installing quagga-zebra and quagga-ripd on openwrt and ubuntu. Support for DHCP options (like static routes, alternate I'm now using some custom dnsmasq options in OpenWRT to issue static routes, alternate default gateway and DNS servers. However these options does not exist in odhcpd. Would be nice if these could be supported in order to completely replace the DHCP functions in dnsmasq in OpenWRT.