What's new
  • SNBForums Code of Conduct

    SNBForums is a community for everyone, no matter what their level of experience.

    Please be tolerant and patient of others, especially newcomers. We are all here to share and learn!

    The rules are simple: Be patient, be nice, be helpful or be gone!

Where to add ip route add command for static routes?

smcgrath12

Occasional Visitor
I have an OpenVPN server running on a Windows 10 box. This OpenVPN server has the subnet of 10.71.8.0/24. The IP of the Windows 10 box hosting this OpenVPN server is 10.76.5.16 and it is on the main subnet of my router (10.76.5.0/24)

Currently I add the following values in the UI (LAN/Route page). I would like to script it and make it take effect and not use the UI. I am guessing I need to execute the ip route add command, but I am not sure which (jffs ??) script that will go in...

The output of "route" command (for this route) gives me:

Destination Gateway Genmask Flags Metric Ref Use Iface
10.71.8.0 Main_Desktop 255.255.255.0 UG 1 0 0 br0

And in the LAN/Route UI, the values are:

Network/Host IP: 10.71.8.0
Netmask: 255.255.255.0
Gateway: 10.76.5.16
Metric: --Empty--
Interface: LAN

Thanks for your help!
 
Why are you trying to script it rather than doing it I the GUI? You just seem to be making life harder for yourself.:confused:
 

Similar threads

Latest threads

Support SNBForums w/ Amazon

If you'd like to support SNBForums, just use this link and buy anything on Amazon. Thanks!

Sign Up For SNBForums Daily Digest

Get an update of what's new every day delivered to your mailbox. Sign up here!
Back
Top