MikroTik RouterOS v2.9 Reference Manual page 151

Reference manual
Table of Contents

Advertisement

Flags: X - disabled, I - invalid, D - dynamic
0
chain=prerouting src-address=192.168.0.0/24 action=mark-routing
new-routing-mark=net1
1
chain=prerouting src-address=192.168.1.0/24 action=mark-routing
new-routing-mark=net2
[admin@PB-Router] ip firewall mangle>
2.
Route packets from network 192.168.0.0/24 to gateway GW_1 (10.0.0.2), packets from
network 192.168.1.0/24 to gateway GW_2 (10.0.0.3), using the according packet marks. If
GW_1 or GW_2 fails (does not reply to pings), route the respective packets to GW_Main
(10.0.0.1):
[admin@PB-Router] ip route> add gateway=10.0.0.2 routing-mark=net1 \
\... check-gateway=ping
[admin@PB-Router] ip route> add gateway=10.0.0.3 routing-mark=net2 \
\... check-gateway=ping
[admin@PB-Router] ip route> add gateway=10.0.0.1
[admin@PB-Router] ip route> print
Flags: X - disabled, A - active, D - dynamic,
C - connect, S - static, r - rip, b - bgp, o - ospf
#
DST-ADDRESS
0 ADC 10.0.0.0/24
1 ADC 192.168.0.0/24
2 ADC 192.168.1.0/24
3 A S 0.0.0.0/0
4 A S 0.0.0.0/0
5 A S 0.0.0.0/0
[admin@PB-Router] ip route>
Copyright 1999-2007, MikroTik. All rights reserved. Mikrotik, RouterOS and RouterBOARD are trademarks of Mikrotikls SIA.
Other trademarks and registred trademarks mentioned herein are properties of their respective owners.
PREFSRC
G GATEWAY
10.0.0.7
192.168.0.1
192.168.1.1
r 10.0.0.2
r 10.0.0.3
r 10.0.0.1
DISTANCE INTERFACE
Public
Local1
Local2
Public
Public
Public
Page 137 of 695

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents