Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Custom Routing does not survive Save Changes/Reboot sequence #892

Closed
n2mh opened this issue Jul 7, 2023 · 3 comments
Closed

Custom Routing does not survive Save Changes/Reboot sequence #892

n2mh opened this issue Jul 7, 2023 · 3 comments

Comments

@n2mh
Copy link

n2mh commented Jul 7, 2023

Nightly 20230704-eaa5d2f
In /etc/config/network there is a section where custom static routes can be entered.

Static routes

Add extra static routes here.

For details see: https://openwrt.org/docs/guide-user/network/routing/routes_configuration

I have added 2 stanzas to this section as follows

config route 'ampr_low'
option interface 'wan'
option target '44.0.0.0'
option netmask '255.128.0.0'
option gateway '44.64.24.128'

config route 'ampr_high'
option interface 'wan'
option target '44.128.0.0'
option netmask '255.192.0.0'
option gateway '44.64.24.128'

After saving them and issuing a reboot command on the command line, these routes do show up in ip route

44.0.0.0/9 via 44.64.24.128 dev br-wan
44.128.0.0/10 via 44.64.24.128 dev br-wan

However, if I go to the Node's Setup page and do a [Save Changes] followed by a [Reboot] sequence, those custom routes are missing when the node comes back to life.

Since this section of /etc/config/network specifically has a section for adding additional static routes, along with an example, I would have to assume that this custom work would survive the Save Changes/Reboot sequence.

Unless I'm blind, Read-The-Docs is silent on this subject. (Maybe my sight is going? :)

73, Mark, N2MH

@n2mh
Copy link
Author

n2mh commented Jul 7, 2023

This is on a hAP Lite.

@aanon4
Copy link
Contributor

aanon4 commented Jul 8, 2023

Because we blow away the /etc/config/network file when you save changes or reinstall, we provide /etc/aredn_include/static_routes as a place to put your extra routes. I guess we dont document this yet.

@ab7pa
Copy link
Contributor

ab7pa commented Jul 19, 2023

@ab7pa ab7pa closed this as completed Jul 19, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants