This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision Next revision Both sides next revision | ||
documentation:configuration:config_files:config_network [2015/05/18 10:25] admin [Sections] |
documentation:configuration:config_files:config_network [2015/05/18 10:37] admin |
||
---|---|---|---|
Line 11: | Line 11: | ||
| [[config_network#interface|interface]] | logical networks | | | [[config_network#interface|interface]] | logical networks | | ||
| [[config_network#route|route]] | static routing | | | [[config_network#route|route]] | static routing | | ||
+ | | [[config_network#rule|rule]] | policy based routing | | ||
==== globals ==== | ==== globals ==== | ||
Line 203: | Line 204: | ||
</file> | </file> | ||
and it will be recognized by the uci parser but not applied by the ''/etc/init.d/network'' script. | and it will be recognized by the uci parser but not applied by the ''/etc/init.d/network'' script. | ||
+ | |||
+ | ===== rule ===== | ||
+ | |||
+ | Rules are required to define policy based routing. | ||
+ | |||
+ | |||
+ | Example: | ||
+ | <code> | ||
+ | config rule | ||
+ | option mark '0xFF' | ||
+ | option in 'lan' | ||
+ | option dest '172.16.0.0/16' | ||
+ | option lookup '100' | ||
+ | </code> | ||
+ | |||
+ | |||