This shows you the differences between two versions of the page.
Both sides previous revision Previous revision | Next revision Both sides next revision | ||
сервисы_gateway_и_routing [2021/07/01 11:54] val [NetFilter iproute2 (Linux)] |
сервисы_gateway_и_routing [2022/01/29 12:31] val [NetFilter iproute2 (Linux)] |
||
---|---|---|---|
Line 281: | Line 281: | ||
# ip route show table all | grep 'table 10[12]' | # ip route show table all | grep 'table 10[12]' | ||
+ | # ip rule show | ||
+ | |||
+ | # ip rule add prio 100 from 192.168.X.0/24 to 192.168.X.0/24 table main | ||
# ip rule add from 192.168.X.0/25 table 101 | # ip rule add from 192.168.X.0/25 table 101 | ||
# ip rule add from 192.168.X.128/25 table 102 | # ip rule add from 192.168.X.128/25 table 102 | ||
- | # ip rule add from 192.168.X.0/24 to 192.168.X.0/24 table main | ||
# ip rule show | # ip rule show | ||
Line 320: | Line 322: | ||
| | ||
post-up ip rule add prio 100 from 192.168.X.0/24 to 192.168.X.0/24 table main | post-up ip rule add prio 100 from 192.168.X.0/24 to 192.168.X.0/24 table main | ||
- | post-up ip rule add prio 200 from 192.168.X.0/25 table 101 | + | post-up ip rule add from 192.168.X.0/25 table 101 |
- | post-up ip rule add prio 200 from 192.168.X.128/25 table 102 | + | post-up ip rule add from 192.168.X.128/25 table 102 |
| | ||
address 192.168.X.1 | address 192.168.X.1 |