MikroTik RouterOS v2.9 Reference Manual page 240

Reference manual
Table of Contents

Advertisement

[admin@MikroTik] ip address> add address 1.1.1.1/32 interface wan \
\... network 1.1.1.2 broadcast 255.255.255.255
[admin@MikroTik] ip address> print
Flags: X - disabled, I - invalid, D - dynamic
#
ADDRESS
0
10.0.0.254/24
1
192.168.0.254/24
2
1.1.1.1/32
[admin@MikroTik] ip address> /ping 1.1.1.2
1.1.1.2 64 byte pong: ttl=255 time=31 ms
1.1.1.2 64 byte pong: ttl=255 time=26 ms
1.1.1.2 64 byte pong: ttl=255 time=26 ms
3 packets transmitted, 3 packets received, 0% packet loss
round-trip min/avg/max = 26/27.6/31 ms
[admin@MikroTik] ip address>
The default route should be set to the gateway router 1.1.1.2:
[admin@MikroTik] ip route> add gateway 1.1.1.2 interface wan
[admin@MikroTik] ip route> print
Flags: X - disabled, I - invalid, D - dynamic, J - rejected,
C - connect, S - static, R - rip, O - ospf, B - bgp
#
DST-ADDRESS
0
S 0.0.0.0/0
1 DC 10.0.0.0/24
2 DC 192.168.0.0/24
3 DC 1.1.1.2/32
[admin@MikroTik] ip route>
The configuration of the MikroTik router at the other end is similar:
[admin@MikroTik] ip address> add address 1.1.1.2/32 interface moxa \
\... network 1.1.1.1 broadcast 255.255.255.255
[admin@MikroTik] ip address> print
Flags: X - disabled, I - invalid, D - dynamic
#
ADDRESS
0
10.1.1.12/24
1
1.1.1.2/32
[admin@MikroTik] ip address> /ping 1.1.1.1
1.1.1.1 64 byte pong: ttl=255 time=31 ms
1.1.1.1 64 byte pong: ttl=255 time=26 ms
1.1.1.1 64 byte pong: ttl=255 time=26 ms
3 packets transmitted, 3 packets received, 0% packet loss
round-trip min/avg/max = 26/27.6/31 ms
[admin@MikroTik] ip address>
MikroTik Router to Cisco Router
Let us consider the following network setup with MikroTik Router connected to a leased line with
baseband modems and a CISCO router at the other end:
The driver for MOXA C502 card should be loaded and the interface should be enabled according to
the instructions given above. The IP addresses assigned to the synchronous interface should be as
follows:
[admin@MikroTik] ip address> add address 1.1.1.1/32 interface wan \
\... network 1.1.1.2 broadcast 255.255.255.255
[admin@MikroTik] ip address> print
Flags: X - disabled, I - invalid, D - dynamic
#
ADDRESS
0
10.0.0.254/24
1
192.168.0.254/24
2
1.1.1.1/32
[admin@MikroTik] ip address> /ping 1.1.1.2
1.1.1.2 64 byte pong: ttl=255 time=31 ms
1.1.1.2 64 byte pong: ttl=255 time=26 ms
Page 226 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
10.0.0.254
10.0.0.255
192.168.0.254
192.168.0.255
1.1.1.2
255.255.255.255 wan
G GATEWAY
r 1.1.1.2
r 10.0.0.254
r 192.168.0.254
r 0.0.0.0
NETWORK
BROADCAST
10.1.1.12
10.1.1.255
1.1.1.1
255.255.255.255 moxa
NETWORK
BROADCAST
10.0.0.254
10.0.0.255
192.168.0.254
192.168.0.255
1.1.1.2
255.255.255.255 wan
INTERFACE
ether2
ether1
DISTANCE INTERFACE
1
wan
1
ether2
0
ether1
0
wan
INTERFACE
Public
INTERFACE
ether2
ether1

Hide quick links:

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the RouterOS v2.9 and is the answer not in the manual?

Questions and answers

Table of Contents

Save PDF