MikroTik RouterOS v2.9 Reference Manual page 150

Reference manual
Table of Contents

Advertisement

Configuration of the IP addresses:
[admin@PB-Router] ip address> print
Flags: X - disabled, I - invalid, D - dynamic
#
ADDRESS
0
192.168.0.1/24
1
192.168.1.1/24
2
10.0.0.7/24
[admin@PB-Router] ip address>
To achieve the described result, follow these configuration steps:
1.
Mark packets from network 192.168.0.0/24 with a new-routing-mark=net1, and packets from
network 192.168.1.0/24 with a new-routing-mark=net2:
[admin@PB-Router] ip firewall mangle> add src-address=192.168.0.0/24 \
\... action=mark-routing new-routing-mark=net1 chain=prerouting
[admin@PB-Router] ip firewall mangle> add src-address=192.168.1.0/24 \
\... action=mark-routing new-routing-mark=net2 chain=prerouting
[admin@PB-Router] ip firewall mangle> print
Page 136 of 695
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.
NETWORK
BROADCAST
192.168.0.0
192.168.0.255
192.168.1.0
192.168.1.255
10.0.0.0
10.0.0.255
INTERFACE
Local1
Local2
Public

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents