Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
Next revisionBoth sides next revision
docs:guide-user:network:routes_configuration [2021/08/10 16:50] – add links vgaeteradocs:guide-user:network:routing:routes_configuration [2023/05/05 08:25] – avoid unconventional uci management methods vgaetera
Line 1: Line 1:
 ====== Static routes ====== ====== Static routes ======
-See also: 
-[[docs:guide-user:network:routing|Routing]], 
-[[docs:guide-user:network:ip_rules|Routing rules]], 
-[[docs:guide-user:network:pbr|PBR with netifd]] 
- 
 Netifd supports static //IP route// declarations which are required to implement basic routing. Netifd supports static //IP route// declarations which are required to implement basic routing.
  
Line 58: Line 53:
 | ''proto'' | routing protocol | no | ''static'' | Defines the protocol ID to use for the route. The ID can be either a numeric value ranging from 0 to 255 or a symbolic alias declared in ''/etc/iproute2/rt_protos''.| | ''proto'' | routing protocol | no | ''static'' | Defines the protocol ID to use for the route. The ID can be either a numeric value ranging from 0 to 255 or a symbolic alias declared in ''/etc/iproute2/rt_protos''.|
 | ''disabled'' | boolean | no | ''0'' | Specifies if the static route should be set or not, available since OpenWrt >= 21.02. | | ''disabled'' | boolean | no | ''0'' | Specifies if the static route should be set or not, available since OpenWrt >= 21.02. |
- 
-You can disable the route by renaming its config section from ''route'' to ''_route'' and it will be ignored by netifd, only needed for OpenWrt < 21.02: 
- 
-<code bash> 
-config _route 'route_name' 
-</code> 
  
 ===== IPv6 routes ===== ===== IPv6 routes =====
  • Last modified: 2024/11/14 17:48
  • by systemcrash