This shows you the differences between two versions of the page.
Both sides previous revision Previous revision | Next revision Both sides next revision | ||
documentation:configuration:config_files:config_network [2015/05/18 10:29] admin [Sections] |
documentation:configuration:config_files:config_network [2015/05/18 10:37] admin |
||
---|---|---|---|
Line 204: | 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> | ||
+ | |||
+ | |||